08-12-2014 07:40 AM
I have a host name that I have in dns and in /etc/hosts. I ping it, and get the right ip, I nslookup on it and get the right ip.
I bptestbpcd to the name and it fails 25, if I do to the ip address and it works great. I've cleared the host cache, I've validated dns, host, etc. Ideas?
Sully
fail output. system name replaced with fqdn.name placeholder.
bptestbpcd -host fqdn.name -verbose -debug
08:56:26.128 [21034] <2> bptestbpcd: VERBOSE = 0
08:59:35.131 [21034] <8> async_connect: [vnet_connect.c:1653] getsockopt SO_ERROR returned 110 0x6e
08:59:47.130 [21034] <8> async_connect: [vnet_connect.c:1653] getsockopt SO_ERROR returned 110 0x6e
08:59:59.130 [21034] <8> async_connect: [vnet_connect.c:1653] getsockopt SO_ERROR returned 110 0x6e
<8> async_connect: [vnet_connect.c:1653] getsockopt SO_ERROR returned 110 0x6e09:01:27.134 [21034] <8> async_connect: [vnet_connect.c:1219] ran out of time before connect 301 0x12d
09:01:27.134 [21034] <8> async_connect: [vnet_connect.c:1219] ran out of time before connect 301 0x12d
09:01:27.135 [21034] <8> async_connect: [vnet_connect.c:1219] ran out of time before connect 301 0x12d
09:01:27.135 [21034] <16> connect_to_service: connect failed STATUS (18) CONNECT_FAILED
status: FAILED, (44) CONNECT_TIMEOUT; system: (115) Operation now in progress; FROM 10.204.131.17 TO fqdn.name10.207.147.33 bpcd VIA pbx
status: FAILED, (44) CONNECT_TIMEOUT; system: (115) Operation now in progress; FROM 10.204.131.17 TO fqdn.name 10.207.147.33 bpcd VIA vnetd
status: FAILED, (44) CONNECT_TIMEOUT; system: (115) Operation now in progress; FROM 10.204.131.17 TO fqdn.name 10.207.147.33 bpcd
09:01:27.135 [21034] <8> vnet_connect_to_bpcd: [vnet_connect.c:279] connect_to_service() failed 18 0x12
09:01:27.135 [21034] <2> local_bpcr_connect: Can't connect to client fqdn.name
09:01:27.135 [21034] <2> ConnectToBPCD: bpcd_connect_and_verify(fqdn.name, fqdn.name) failed: 25
<16>bptestbpcd main: Function ConnectToBPCD(fqdn.name) failed: 25
09:01:27.135 [21034] <16> bptestbpcd main: Function ConnectToBPCD(fqdn.name) failed: 25
<2>bptestbpcd: cannot connect on socket
09:01:27.135 [21034] <2> bptestbpcd: cannot connect on socket
<2>bptestbpcd: EXIT status = 25
09:01:27.136 [21034] <2> bptestbpcd: EXIT status = 25
cannot connect on socket
08-12-2014 12:59 PM
And you say
bptestbpcd -host 10.207.147.33 -verbose -debug
is working fine?
Have you create bpcd log on the client?
I would like to see what is logged in client's bpcd log when connection to IP address is working fine.
I assume nothing is logged when the command fails?
What does bpclntcmd commands on the client show?
bpclntcmd -self
bclntcmd -pn
08-13-2014 06:21 AM
Just to confirm, the ip address NB is hitting, 10.207.147.33, is the same one you're testing manually?
If not, perhaps clear the host cache.
bpclntcmd -clear_host_cache
to pick up on your recent changes.
08-13-2014 10:21 PM
Can you try test with netcat / nc (depending on your os version)
netcat -zvv fqdn.name bpcd (or 1556)
netcat -zvv 10.207.147.33 bpcd (or 1556)
It might highlight some lookup or routing issues (even though you can connect using IP)
Also try iptables -F