SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
netbackup 6.5: socket read failed ??
Author Message
Post netbackup 6.5: socket read failed ?? 
Hi folks,

Back again with my problems!
I've got a solaris 5.10 server with Netbackup 6.5 (which hostname is master_server for the example) on which I'm trying to configure the clients!

I've got one client , called for instance win2003_client1 under windows 2003 on which I installed the netbackup client.

From the NB java console in the host properties, I can see in the client properties that server win2003_client1 but I can't establish a communication.
I get error:

socket read failed (status 23)

Yet, from the Netbackup master server, I can ping win2003_client1! The hostname of the client is well resolved!
I followed alos the instructions given by Netbackup on possible dns issues:
I added in /etc/hosts on the master server the hostname and ip address of the client, and on the client, I added in %SystemRoot%\system32\drivers\etc\hosts the master server ip address and hostname

From the master server:
- when I do a bpclntcmd -hn win2003_client1, it returns the correct information on ip address and name
- a telnet win2003_client1 13782 does connect (is it normal however that the telnet session ends after 5 sec?ie connection closed by foreign host)

From the windows client:
- a telnet master_server 13782 does connect well
- command bpclntcmd -pn returns
'expected response from server master_server
win2003_client1 win2003_client1 192.168.x.y 1267


Any other suggestion to look at why the connection can't be done?

Thanks in advance!

View user's profile Send private message
Post netbackup 6.5: socket read failed ?? 
Assuming you're using the standard "vnetd" communication, port 13782 is no longer required as it was with version 5/5.1 ... just port 13724.

From your NetBackup server(s), run "bptestbpcd -client< clientname>" for each client.  Telnet on port 13724 will work, too, but the response is not as clear (as you have found ... the connection will NOT drop in 5 seconds if all is OK).

If there are problems, I look at these

  • Are the firewalls of server and client open in both directions for port 13724?
  • If using DNS (why aren't you using DNS?!), make sure forward and reverse DNS lookups work.
  • Ensure the NetBackup server(s) is/are properly  listed in the client configuration.
  • For Windows, ensure the NetBackup Client Service is started on the client.
  • For Windows, does the domain controller know of the NetBackup servers?
  • If multiple paths (IP addresses) are available, ensure NetBackup uses the path you want



This catches nearly all setup problems I have.

Cheers, Wayne


On Wed, Nov 16, 2011 at 11:55 AM, rico78 <nbu-forum < at > backupcentral.com ([email]nbu-forum < at > backupcentral.com[/email])> wrote:
Hi folks,

Back again with my problems!
I've got a solaris 5.10 server with Netbackup 6.5 (which hostname is master_server for the example) on which I'm trying to configure the clients!

I've got one client , called for instance win2003_client1 under windows 2003 on which I installed the netbackup client.

From the NB java console in the host properties,  I can see in the client properties that server win2003_client1 but I can't establish a communication.
I get error:

socket read failed (status 23)

Yet, from the Netbackup master server, I can ping  win2003_client1! The hostname of the client is well resolved!
I followed alos the instructions (http://www.symantec.com/business/support/index?page=content&id=TECH54563&key=15143&actp=LIST) given by Netbackup on possible dns issues:
I added in /etc/hosts on the master server the hostname and ip address of the client, and on the client, I added in %SystemRoot%system32driversetchosts the master server ip address and hostname

From the master server:
- when I do a bpclntcmd -hn win2003_client1, it returns the correct information on ip address and name
- a telnet win2003_client1 13782 does connect (is it normal however that the telnet session ends after 5 sec?ie connection closed by foreign host)

From the windows client:
- a telnet master_server 13782 does connect well
- command bpclntcmd -pn returns
 'expected response from server master_server
 win2003_client1 win2003_client1 192.168.x.y 1267

Any other suggestion to look at why the connection can't be done?

Thanks in advance!

+----------------------------------------------------------------------
|This was sent by eDesamore < at > opentv.com ([email]eDesamore < at > opentv.com[/email]) via Backup Central.
|Forward SPAM to abuse < at > backupcentral.com ([email]abuse < at > backupcentral.com[/email]).
+----------------------------------------------------------------------


_______________________________________________
Veritas-bu maillist  -  Veritas-bu < at > mailman.eng.auburn.edu ([email]Veritas-bu < at > mailman.eng.auburn.edu[/email])
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


Post  
Hey!

Well I would love to run the command from your NetBackup server
"bptestbpcd -client< clientname>" but the command isn't available in
/opentv/netbackup/bin?

Is there an additionnal package to install?


Are the firewalls of server and client open in both directions for port 13724?

Well to be sure no firewall was causing any blocking issues, I ran the command
svcadm disable svc:/network/ipfilter:default on the solaris sever
and also disable completely the windows firewall on the windows server 2003 client!

If using DNS (why aren't you using DNS?!), make sure forward and reverse DNS lookups work.

After, I do use DNS, but I also added the host/IP in the host files of each client/server.
dns lookup works well

Ensure the NetBackup server(s) is/are properly listed in the client configuration.

How do you check that? Just looking in the backup, Archive and REstore interface? If yes, the netbackup server is ok!

For Windows, ensure the NetBackup Client Service is started on the client.

Checked it, and it's ok!

For Windows, does the domain controller know of the NetBackup servers?

in term of IP ? or in term of user authorization,

If multiple paths (IP addresses) are available, ensure NetBackup uses the path you want
I've got only one nic enable for the moment


One thing however: on the windows client, when I run the bpcd command, it generates the following log:

18:37:59.550 [3396.3636] <2> bpcd main: offset to GMT -3600
18:37:59.550 [3396.3636] <2> bpcd main: Got socket for input 3
18:37:59.550 [3396.3636] <2> logconnections: getsockname(3) failed: 10038
18:37:59.550 [3396.3636] <16> bpcd setup_sockopts: setsockopt 2 failed: h_errno 10038
18:37:59.550 [3396.3636] <2> bpcd main: setup_sockopts complete
18:37:59.550 [3396.3636] <2> vauth_acceptor: ..\libvlibs\vauth_comm.c.307: Function failed: 17 0x00000011
18:37:59.550 [3396.3636] <16> bpcd main: authentication failed: 17



What to think about this?

View user's profile Send private message
Post netbackup 6.5: socket read failed ?? 
<Master Server> 2.6.16.60-0.21-smp Linux# which bptestbpcd
/usr/openv/netbackup/bin/admincmd/bptestbpcd

-----Original Message-----
From: veritas-bu-bounces < at > mailman.eng.auburn.edu [mailto:veritas-bu-bounces < at > mailman.eng.auburn.edu] On Behalf Of rico78
Sent: Wednesday, November 16, 2011 11:54 AM
To: VERITAS-BU < at > MAILMAN.ENG.AUBURN.EDU
Subject: [Veritas-bu] netbackup 6.5: socket read failed ??

Hey!

Well I would love to run the command from your NetBackup server
"bptestbpcd -client< clientname>" but the command isn't available in
/opentv/netbackup/bin?

Is there an additionnal package to install?


Are the firewalls of server and client open in both directions for port 13724?

Well to be sure no firewall was causing any blocking issues, I ran the command
svcadm disable svc:/network/ipfilter:default on the solaris sever
and also disable completely the windows firewall on the windows server 2003 client!

If using DNS (why aren't you using DNS?!), make sure forward and reverse DNS lookups work.

After, I do use DNS, but I also added the host/IP in the host files of each client/server.
dns lookup works well

Ensure the NetBackup server(s) is/are properly listed in the client configuration.

How do you check that? Just looking in the backup, Archive and REstore interface? If yes, the netbackup server is ok!

For Windows, ensure the NetBackup Client Service is started on the client.

Checked it, and it's ok!

For Windows, does the domain controller know of the NetBackup servers?

in term of IP ? or in term of user authorization,

If multiple paths (IP addresses) are available, ensure NetBackup uses the path you want
I've got only one nic enable for the moment


One thing however: on the windows client, when I run the bpcd command, it generates the following log:

18:37:59.550 [3396.3636] <2> bpcd main: offset to GMT -3600
18:37:59.550 [3396.3636] <2> bpcd main: Got socket for input 3
18:37:59.550 [3396.3636] <2> logconnections: getsockname(3) failed: 10038
18:37:59.550 [3396.3636] <16> bpcd setup_sockopts: setsockopt 2 failed: h_errno 10038
18:37:59.550 [3396.3636] <2> bpcd main: setup_sockopts complete
18:37:59.550 [3396.3636] <2> vauth_acceptor: ..\libvlibs\vauth_comm.c.307: Function failed: 17 0x00000011
18:37:59.550 [3396.3636] <16> bpcd main: authentication failed: 17


What to think about this?

+----------------------------------------------------------------------
|This was sent by eDesamore < at > opentv.com via Backup Central.
|Forward SPAM to abuse < at > backupcentral.com.
+----------------------------------------------------------------------


_______________________________________________
Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
_______________________________________________
Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

Post  
oh thanks Michael ! Very Happy

ok That's what I get:

#./bptestbpcd -client win2003_client1
<16>bptestbpcd main: Function ConnectToBPCD(win2003_client1) failed: 23
socket read failed




View user's profile Send private message
Post  
Also, I ran again a bpcd command form the client, and I get this:

18:58:41.753 [3328.2604] <16> bpcd peer_hostname: gethostbyaddr failed to return peer host, herrno = 0
18:58:41.753 [3328.2604] <16> bpcd main: Couldn't get peer hostname
19:01:53.774 [3572.2728] <2> bpcd main: offset to GMT -3600
19:01:53.774 [3572.2728] <2> bpcd main: Got socket for input 472
19:01:53.789 [3572.2728] <2> logconnections: BPCD ACCEPT FROM 192.168.0.x.56646 TO 192.168.0.y.13724
19:01:53.789 [3572.2728] <2> bpcd main: setup_sockopts complete
19:01:58.305 [3572.2728] <8> bpcd peer_hostname: gethostbyaddr failed : The requested name is valid, but no data of the requested type was found.

(0)
19:01:58.305 [3572.2728] <16> bpcd peer_hostname: gethostbyaddr failed to return peer host, herrno = 0
19:01:58.305 [3572.2728] <16> bpcd main: Couldn't get peer hostname
19:16:30.196 [3876.3880] <2> bpcd main: offset to GMT -3600
19:16:30.212 [3876.3880] <2> bpcd main: Got socket for input 3
19:16:30.212 [3876.3880] <2> logconnections: getsockname(3) failed: 10038
19:16:30.212 [3876.3880] <16> bpcd setup_sockopts: setsockopt 2 failed: h_errno 10038
19:16:30.212 [3876.3880] <2> bpcd main: setup_sockopts complete
19:16:30.212 [3876.3880] <2> vauth_acceptor: ..\libvlibs\vauth_comm.c.307: Function failed: 17 0x00000011
19:16:30.212 [3876.3880] <16> bpcd main: authentication failed: 17


So it seems taht at one stage, the bpcd connection worked, but fails after! (ps: 192.168.0.x is the ip address of the nb master server)

yet, what this error means:
<8> bpcd peer_hostname: gethostbyaddr failed : The requested name is valid, but no data of the requested type was found.

bad dns resolution?


View user's profile Send private message
Post netbackup 6.5: socket read failed ?? 
Bingo you have a reverse lookup failing for the incoming IP address 192.168.x.x.
On the client run the command-
C:\Program files\VERITAS\netbackup\bin:bpclntcmd -ip 192.168.x.x (The actual IP address I assume not x's)

It will fail. Then in the client's host file add that IP and the master server hostname. So long as that hostname in defined as a server on the client you should be able to connect. If you get a status 59 or 46 then the master server hostname is not defined correctly on the client.

-----Original Message-----
From: veritas-bu-bounces < at > mailman.eng.auburn.edu [mailto:veritas-bu-bounces < at > mailman.eng.auburn.edu] On Behalf Of rico78
Sent: Wednesday, November 16, 2011 12:24 PM
To: VERITAS-BU < at > MAILMAN.ENG.AUBURN.EDU
Subject: [Veritas-bu] netbackup 6.5: socket read failed ??

Also, I ran again a bpcd command form the client, and I get this:

18:58:41.753 [3328.2604] <16> bpcd peer_hostname: gethostbyaddr failed to return peer host, herrno = 0
18:58:41.753 [3328.2604] <16> bpcd main: Couldn't get peer hostname
19:01:53.774 [3572.2728] <2> bpcd main: offset to GMT -3600
19:01:53.774 [3572.2728] <2> bpcd main: Got socket for input 472
19:01:53.789 [3572.2728] <2> logconnections: BPCD ACCEPT FROM 192.168.0.x.56646 TO 192.168.0.y.13724
19:01:53.789 [3572.2728] <2> bpcd main: setup_sockopts complete
19:01:58.305 [3572.2728] <8> bpcd peer_hostname: gethostbyaddr failed : The requested name is valid, but no data of the requested type was found.

(0)
19:01:58.305 [3572.2728] <16> bpcd peer_hostname: gethostbyaddr failed to return peer host, herrno = 0
19:01:58.305 [3572.2728] <16> bpcd main: Couldn't get peer hostname
19:16:30.196 [3876.3880] <2> bpcd main: offset to GMT -3600
19:16:30.212 [3876.3880] <2> bpcd main: Got socket for input 3
19:16:30.212 [3876.3880] <2> logconnections: getsockname(3) failed: 10038
19:16:30.212 [3876.3880] <16> bpcd setup_sockopts: setsockopt 2 failed: h_errno 10038
19:16:30.212 [3876.3880] <2> bpcd main: setup_sockopts complete
19:16:30.212 [3876.3880] <2> vauth_acceptor: ..\libvlibs\vauth_comm.c.307: Function failed: 17 0x00000011
19:16:30.212 [3876.3880] <16> bpcd main: authentication failed: 17

So it seems taht at one stage, the bpcd connection worked, but fails after! (ps: 192.168.0.x is the ip address of the nb master server)

yet, what this error means:
<8> bpcd peer_hostname: gethostbyaddr failed : The requested name is valid, but no data of the requested type was found.

bad dns resolution?

+----------------------------------------------------------------------
|This was sent by eDesamore < at > opentv.com via Backup Central.
|Forward SPAM to abuse < at > backupcentral.com.
+----------------------------------------------------------------------


_______________________________________________
Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
_______________________________________________
Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

Post  
ok folks!

Thanks for all the commands that allowed me to troubleshoot this issue!

In fact, it was an FQDN name issue!
The netbackup server was in a bad dns domain. it was put in dnsdomain2 where it shall have been put in dnsdomain1

I think the last line of the bpcd log helped me:
<8> bpcd peer_hostname: gethostbyaddr failed : The requested name is valid, but no data of the requested type was found.


Thanks for all your help! Very Happy

View user's profile Send private message
Post  
yep!

I think Daniel you summarize exatly the problem:reverse lookup failing
Smile

A big thankful thanks

View user's profile Send private message
Post netbackup 6.5: socket read failed ?? 
Two comments I'd like to add:

1) Putting path statements in your environment to all the different
directories of NBU commands (and other commands) just makes your life so
much easier.
2) The bptestbpcd command has an undocumented option: -debug
Using bptestbpcd -client <clientname> -debug will print out a ton
of information and will better help you pinpoint the problem without
having to run a testbackup, at least from a communication between
master/media and client standpoint.


-----Original Message-----
From: veritas-bu-bounces < at > mailman.eng.auburn.edu
[mailto:veritas-bu-bounces < at > mailman.eng.auburn.edu] On Behalf Of rico78
Sent: Wednesday, November 16, 2011 12:47 PM
To: VERITAS-BU < at > MAILMAN.ENG.AUBURN.EDU
Subject: [Veritas-bu] netbackup 6.5: socket read failed ??

yep!

I think Daniel you summarize exatly the problem:reverse lookup failing
Smile

A big thankful thanks

+----------------------------------------------------------------------
|This was sent by eDesamore < at > opentv.com via Backup Central.
|Forward SPAM to abuse < at > backupcentral.com.
+----------------------------------------------------------------------


_______________________________________________
Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
_______________________________________________
Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

View user's profile Send private message
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB