cancel
Showing results for 
Search instead for 
Did you mean: 

socket read failed 23

ndt
Level 4

Hi,

Please help me to solve this problem with error code 23

 

==== netbackup client version====

root@dr3 # cat /usr/openv/netbackup/bin/version
NetBackup-Solaris10 6.5.5

====server version=====================

root@Nbmaster2 # cat /usr/openv/netbackup/bin/version
NetBackup-Solaris10 6.5.5
root@Nbmaster2 #

====bptestbpcd=============

root@Nbmaster2 # ./bptestbpcd -client dr3 -debug
10:07:18.625 [7375] <2> bptestbpcd: VERBOSE = 0
10:07:18.628 [7375] <2> ParseConfigExA: Option (VERBOSE) redefined on line 20, discarding definition on line 8.
10:07:18.706 [7375] <2> vnet_vnetd_service_socket: vnet_vnetd.c.2048: VN_REQUEST_SERVICE_SOCKET: 6 0x00000006
10:07:18.706 [7375] <2> vnet_vnetd_service_socket: vnet_vnetd.c.2062: service: bpcd
10:07:18.774 [7375] <2> logconnections: BPCD CONNECT FROM 10.151.89.172.49549 TO 10.xxx.xx.220.13724
10:07:18.776 [7375] <2> vnet_connect_to_vnetd_extra: vnet_vnetd.c.182: msg: VNETD CONNECT FROM 10.xxx.xx.172.49552 TO 10.xxx.xx.220.13724 fd = 5
10:07:18.853 [7375] <2> vnet_vnetd_connect_forward_socket_begin: vnet_vnetd.c.535: VN_REQUEST_CONNECT_FORWARD_SOCKET: 10 0x0000000a
10:07:18.857 [7375] <2> vnet_vnetd_connect_forward_socket_begin: vnet_vnetd.c.552: ipc_string: /tmp/vnet-05761363316838848138000000000-ahaiql
10:07:18.860 [7375] <2> get_short: (2) premature end of file (byte 1)
10:07:18.860 [7375] <2> bpcr_put_vnetd_forward_socket: get_short failed: 5
10:07:18.860 [7375] <2> local_bpcr_connect: bpcr_put_vnetd_forward_socket failed: 23
10:07:18.869 [7375] <2> ConnectToBPCD: bpcd_connect_and_verify(dr3, dr3) failed: 23
<16>bptestbpcd main: Function ConnectToBPCD(dr3) failed: 23
10:07:18.870 [7375] <16> bptestbpcd main: Function ConnectToBPCD(dr3) failed: 23
<2>bptestbpcd: socket read failed
10:07:18.870 [7375] <2> bptestbpcd: socket read failed
<2>bptestbpcd: EXIT status = 23
10:07:18.870 [7375] <2> bptestbpcd: EXIT status = 23
socket read failed
root@Nbmaster2 #

====bpclntcmd=======================

root@Nbmaster2 # pwd
/usr/openv/netbackup/bin
root@Nbmaster2 # ./bpclntcmd -ip 10.xxx.xx.220
checkhaddr: host   : dr3: dr3 at 10.xxx.xx.220 (0xa9759dc)
checkhaddr: aliases:     dr3.xxx.com.vn
root@Nbmaster2 # ./bpclntcmd -hn dr3          
host dr3: dr3 at 10.xxx.xx.220 (0xa9759dc)
aliases:     dr3.xxx.com.vn
root@Nbmaster2 #

=================

 

Thank you

ndt

1 ACCEPTED SOLUTION

Accepted Solutions

Marianne
Level 6
Partner    VIP    Accredited Certified

You need to check client's /etc/hosts file.

Your client cannot resolve master's IP address to valid hostname.

View solution in original post

5 REPLIES 5

Anshu_Pathak
Level 5

Please check the size of bpcd file, sometimes this issue is caused due to 0KB file for bpcd

/usr/openv/netbackup/bin/bpcd

Also verify netstat on client show port number 13782 or BPCD as listening.

 

ndt
Level 4

root@dr3 # more log.031513
11:13:53.624 [6391] <2> bpcd main: offset to GMT -25200
11:13:53.624 [6391] <2> logconnections: BPCD ACCEPT FROM 10.xxx.xx.172.50121 TO 10.xxx.xx.220.13724
11:13:53.625 [6391] <2> bpcd main: setup_sockopts complete
11:13:53.641 [6391] <8> bpcd peer_hostname: gethostbyaddr failed : HOST_NOT_FOUND (1)
11:13:53.641 [6391] <16> bpcd peer_hostname: gethostbyaddr failed to return peer host, herrno = 1
11:13:53.641 [6391] <16> bpcd main: Couldn't get peer hostname
root@dr3 # pwd
/usr/openv/netbackup/logs/bpcd
root@dr3 #

======================

root@Nbmaster2 # cat /etc/hosts
#
# Internet host table
#
::1     localhost       
127.0.0.1       localhost       
10.xxx.xx.172   Nbmaster2       Nbmaster2.xxx.com.vn    loghost

10.xxx.xx.220   dr3             dr3.xxx.com.vn

======================

root@Nbmaster2 # ping dr3
dr3 is alive

 

ndt
Level 4

Hi Anshu,

 

====on client=====

root@dr3 # ls -la | grep bpcd
-r-x------   1 root     bin      1688848 Nov  7  2009 bpcd
root@dr3 # pwd
/usr/openv/netbackup/bin

=================

root@dr3 # netstat -a | egrep 'bpcd|vnetd'
      *.bpcd               *.*                0      0 49152      0 LISTEN
      *.vnetd              *.*                0      0 49152      0 LISTEN

 

Marianne
Level 6
Partner    VIP    Accredited Certified

You need to check client's /etc/hosts file.

Your client cannot resolve master's IP address to valid hostname.

ndt
Level 4

solution is here

https://www-secure.symantec.com/connect/forums/error-23

 

Thank you