Video Screencast Help

bptestbpcd: EXIT status = 25 cannot connect on socket

Created: 30 Jan 2013 • Updated: 31 Jan 2013 | 18 comments
This issue has been solved. See solution.

I'm currently runnning NB 7.5.0.4.  I'm getting the "bptestbpcd: EXIT status = 25 cannot connect on socket" error when running the commands as specified by Symantec.

I'm able to resolve from the master/media server (which is the same) see below

 

C:\Program Files\Veritas\NetBackup\bin>bpclntcmd -hn hcndc02
host hcndc02: hcndc02 at 192.168.100.226
aliases:     hcndc02     192.168.100.226
 
However I get the following when running the command and checking the logs
 
16:35:39.583 [3948.3296] <2> bpcd main: accept sock = 380
16:35:39.598 [3660.3528] <2> setup_debug_log: switched debug log file for bpcd
16:35:39.598 [3660.3528] <2> bpcd main: VERBOSE = 0
16:35:39.598 [3660.3528] <2> logparams: C:\Program Files\Veritas\NetBackup\bin\bpcd.exe -standalone 
16:35:39.598 [3660.3528] <2> process_requests: offset to GMT 18000
16:35:39.614 [3660.3528] <2> logconnections: BPCD ACCEPT FROM 192.168.100.226.61837 TO 192.168.100.226.13782 fd = 380
16:35:39.614 [3660.3528] <2> process_requests: setup_sockopts complete
16:35:39.614 [3660.3528] <2> bpcd peer_hostname: Connection from host HCNDC02.hcnetwork.org (192.168.100.226) port 61837
16:35:39.614 [3660.3528] <2> bpcd valid_server: comparing hcntape01 and HCNDC02.hcnetwork.org
16:35:39.614 [3660.3528] <4> bpcd valid_server: HCNDC02.hcnetwork.org is not a master server
16:35:39.614 [3660.3528] <16> bpcd valid_server: HCNDC02.hcnetwork.org is not a media server either
16:35:39.614 [3660.3528] <2> process_requests: output socket port number = 3291
16:35:39.614 [3660.3528] <8> vnet_cached_getaddrinfo_and_update: [vnet_addrinfo.c:1583] in failed file cache ERR=10109 NAME=NULL SVC=testdaemon
16:35:39.614 [3660.3528] <8> vnet_cached_get_service_port: [vnet_addrinfo.c:2387] vnet_cached_getaddrinfo failed STAT=6 RV=10109 NAME=testdaemon
16:35:39.614 [3660.3528] <8> is_pbxable_service: [vnet_connect.c:2159] vnet_cached_get_service_port() failed 6 0x6
16:35:39.614 [3660.3528] <8> is_pbxable_service: [vnet_connect.c:2160] service 3291
16:35:39.614 [3660.3528] <8> file_to_cache_item: [vnet_addrinfo.c:6555] fopen() failed ERRNO=2 FILE=C:\Program Files\Veritas\NetBackup\var\host_cache\189\fcd93f89+3291,1,400,2,1,0+192.168.100.226.txt
16:35:39.614 [3660.3528] <2> process_requests: <---- NetBackup 7.5 0 ------------initiated
16:35:39.614 [3660.3528] <2> process_requests: VERBOSE = 0
16:35:39.614 [3660.3528] <2> bpcd exit_bpcd: exit status 46  ----------->exiting
16:35:39.614 [3660.3528] <4> bpcd exit_bpcd: FTL - BPCD EXIT STATUS 46
 
16:35:39.614 [3660.3528] <16> process_requests: Server access denied
16:35:39.614 [3948.3296] <2> bpcd main: accept sock = 380
16:35:39.645 [2428.3596] <2> setup_debug_log: switched debug log file for bpcd
16:35:39.645 [2428.3596] <2> bpcd main: VERBOSE = 0
16:35:39.645 [2428.3596] <2> logparams: C:\Program Files\Veritas\NetBackup\bin\bpcd.exe -standalone 
16:35:39.645 [2428.3596] <2> process_requests: offset to GMT 18000
16:35:39.645 [2428.3596] <2> logconnections: BPCD ACCEPT FROM 192.168.100.226.61839 TO 192.168.100.226.13782 fd = 380
16:35:39.645 [2428.3596] <2> process_requests: setup_sockopts complete
16:35:39.645 [2428.3596] <2> bpcd peer_hostname: Connection from host HCNDC02.hcnetwork.org (192.168.100.226) port 61839
16:35:39.645 [2428.3596] <2> bpcd valid_server: comparing hcntape01 and HCNDC02.hcnetwork.org
16:35:39.645 [2428.3596] <4> bpcd valid_server: HCNDC02.hcnetwork.org is not a master server
16:35:39.645 [2428.3596] <16> bpcd valid_server: HCNDC02.hcnetwork.org is not a media server either
16:35:39.645 [2428.3596] <2> process_requests: output socket port number = 1224
16:35:39.645 [2428.3596] <8> vnet_cached_getaddrinfo_and_update: [vnet_addrinfo.c:1583] in failed file cache ERR=10109 NAME=NULL SVC=testdaemon
16:35:39.645 [2428.3596] <8> vnet_cached_get_service_port: [vnet_addrinfo.c:2387] vnet_cached_getaddrinfo failed STAT=6 RV=10109 NAME=testdaemon
16:35:39.645 [2428.3596] <8> is_pbxable_service: [vnet_connect.c:2159] vnet_cached_get_service_port() failed 6 0x6
16:35:39.645 [2428.3596] <8> is_pbxable_service: [vnet_connect.c:2160] service 1224
16:35:39.645 [2428.3596] <8> file_to_cache_item: [vnet_addrinfo.c:6555] fopen() failed ERRNO=2 FILE=C:\Program Files\Veritas\NetBackup\var\host_cache\189\fcd93f89+1224,1,400,2,1,0+192.168.100.226.txt
16:35:39.645 [2428.3596] <2> process_requests: <---- NetBackup 7.5 0 ------------initiated
16:35:39.645 [2428.3596] <2> process_requests: VERBOSE = 0
16:35:39.645 [2428.3596] <2> bpcd exit_bpcd: exit status 46  ----------->exiting
16:35:39.645 [2428.3596] <4> bpcd exit_bpcd: FTL - BPCD EXIT STATUS 46
 
16:35:39.645 [2428.3596] <16> process_requests: Server access denied
 
 
 
 
Any help with this will be highly appreciated
 
Thanks

Comments 18 CommentsJump to latest comment

Mark_Solutions's picture

it looks to be a fqdn issue, maybe use hosts file so that everything resolves with short and fqdn names all round

hope this helps

Authorised Symantec Consultant

Don't forget to "Mark as Solution" if someones advice has solved your issue - and please bring back the Thumbs Up!!.

MaykelF0209's picture

Thanks for your prompt response. 

I've added fqdn names to the host files as you mentioned on both the media server and the client and still get cannot connect on socket = 25 error

 

when I run the bpclntcmd -hn command it resolves ok now, showing both aliases now: with fqdn and without

Any other ideas?

 

Thanks

epsilon22222's picture

After making the hosts file changes, did you restart the Netbackup services on the media server? I have had a similar issue and even after making the changes to update the hosts file, the connection would fail until services were restarted. 

MaykelF0209's picture

I did not try that.  I will have to wait until the current queued jobs finish to restart services...

Which of 33 services Netbackup installs do you recommend restarting?

Thanks

Mark_Solutions's picture

The NetBackup client service is enough but as other are dependant on that you are better to use bpdown then bpup (while no jobs are running of course)

Also check for firewalls, Anti-Virus etc. in case anything else is blocking communications

Authorised Symantec Consultant

Don't forget to "Mark as Solution" if someones advice has solved your issue - and please bring back the Thumbs Up!!.

SOLUTION
MaykelF0209's picture

Thanks for the replies guy.  However after reading more troubleshooting steps to take on this Symantec link

http://www.symantec.com/business/support/index?pag...

I ran the netstat command as specified but I am unabled to find the ports listed or as in listening mode, maybe this is the problem.  I uninstalled the client and re-installed it with the recommended version. I'm running 7.5 M4

Thanks

epsilon22222's picture

I wonder, do you have the bp.conf file updated with correct server access? It will be able to resolve using bpclntcmd but won't be able to connect until it is allowed. 

Mark_Solutions's picture

as pointed out by epsilon your client does need to know the Master and Media server names

Initially i put this down to FQDN as there were those options

Re-reading your first post the client only seems to have hcntape01 in its server list and doesnt know the other server

edit its bp.conf file (assuming it is unix - BAR GUI if not) with the Master at the top and any other valid servers below it and it should be OK

Authorised Symantec Consultant

Don't forget to "Mark as Solution" if someones advice has solved your issue - and please bring back the Thumbs Up!!.

MaykelF0209's picture

Ok, it is on Windows so I looked into the BAR Gui and the sourc client for restores was not populated 

I selected it and ran the command from the media server and it still gives me error 25 sock.

See screenshot attached, I have not been able to restart the services on the media server as backup to take library it is still running.  I restarted the services on the client with the issues.  Other servers are communicating ok with the media server.  

 

net.jpg
Mark_Solutions's picture

OK - the answer is on that screen - the server line shows hcntape01

This means that client believes that server is the Master Server

The quickest way to get this right is as follows:

On the client open regedit and go to HKLM\Software\Veritas\NetBackup\CurrentVersion\Config

Look at the Browser key and Client_Name key - these should both be set to the name of the client

Next look at the Server key - double click to open it up

You should see a different servers on each line - or maybe just hcntape01?

Edit the list with the Masters name first, hit <Return> and add in a media server (if you have one)

Do this until you have the Master at the top and the Media Server below

Next re-start the client service

You should now be able to connect to it

Let me know how you get on

Authorised Symantec Consultant

Don't forget to "Mark as Solution" if someones advice has solved your issue - and please bring back the Thumbs Up!!.

Marianne's picture

 

16:35:39.645 [2428.3596] <2> bpcd valid_server: comparing hcntape01 and HCNDC02.hcnetwork.org
16:35:39.645 [2428.3596] <4> bpcd valid_server: HCNDC02.hcnetwork.org is not a master server
16:35:39.645 [2428.3596] <16> bpcd valid_server: HCNDC02.hcnetwork.org is not a media server either
Your client has a SERVER entry for  hcntape01. 
Client has NO Server entry for HCNDC02.hcnetwork.org.
Use same Backup Archive and Restore GUI on the Client, click on ''Edit Server list' and add HCNDC02.hcnetwork.org.
 

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

MaykelF0209's picture

Ok thanks for the prompt response again guys.

It was setup as you indicated, I didn't have to make any changes.

My Master and Media server is one and the same: hcntape01

See attached screenshots of the registry ... 

 

 

Marianne, I have already done as you indicated.  see screenshot 3

 

Thank you again for your help so far...

clients.jpg server.jpg 3.jpg
Mark_Solutions's picture

Your very first log on the thread says:

16:35:39.614 [3660.3528] <2> bpcd valid_server: comparing hcntape01 and HCNDC02.hcnetwork.org
16:35:39.614 [3660.3528] <4> bpcd valid_server: HCNDC02.hcnetwork.org is not a master server
16:35:39.614 [3660.3528] <16> bpcd valid_server: HCNDC02.hcnetwork.org is not a media server either

So where ever you had that from believes it is being conected to by a server named hcndc02.hcnetwork.org - it compares this to the only server it knows, hcntape01 and refuses connection

So what where is it getting that name from, because it is that name that it is rejecting - does it have a bad hosts file entry or is your DNS playing up.

The error 25 that this thread is about comes down to that client rejecting a connection from hcndc02 - it is that which needs to be corrected

Authorised Symantec Consultant

Don't forget to "Mark as Solution" if someones advice has solved your issue - and please bring back the Thumbs Up!!.

MaykelF0209's picture

Ok so I did noticed a difference on my registry entries for different clients.  The first client everything is working perfectly (both servers are 2008 R2)

I only have a few items on the config key (see pic 1)

Why do I have so many more entries on the config of the server giving me the problems?

(see pic 2 for the problematic server)

 

 

Never mind... what creates the extra entries is selecting the client server in the BAR gui.

Once I deselect it the entries in the registries go away, I select and they come back

 

1.jpg 2.jpg
Mark_Solutions's picture

Maybe you have installed it as a Media Server (or worse still a Master) - do you only have the BAR GUI available on the Start Menu or do you have an admin console as well - if so what happens when you open that up?

Authorised Symantec Consultant

Don't forget to "Mark as Solution" if someones advice has solved your issue - and please bring back the Thumbs Up!!.

MaykelF0209's picture

No, not a media or master server. Just a client with the latest maint release

I need to mention is a domain controller btw.  We have 5 and all other 4 are working correctly

No admin console installed.

I'm having to go back to not having the vnetd and bcpd ports show as open or listening

When I run a netstat -a those ports do not show up as active ports 

I think the problem lies there ....

How do I make sure those ports are open and enabled.  Firewall is turned off btw... same as the other 4 DC servers that are working

 

Marianne's picture

You have showed 'Browser' and 'Client' entry. Not Server entries.

bpcd log shows connection request from IP address 192.168.100.226 TO 192.168.100.226.

 

16:35:39.614 [3660.3528] <2> logconnections: BPCD ACCEPT FROM 192.168.100.226.61837 TO 192.168.100.226.13782 fd = 380
.....
16:35:39.614 [3660.3528] <2> bpcd peer_hostname: Connection from host HCNDC02.hcnetwork.org (192.168.100.226) port 61837

 

So - SAME IP address?
This means SERVER software is installed on HCNDC02 and it now wants to backup itself? 

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

MaykelF0209's picture

Issue resolved.  

 

Windows firewall was turned off.  I enabled Windows firewall and perform the test and it continued to fail.

I went ahead an disabled it immediately after I performed the command it started working.

 

For some reason when the domain setting on the firewall was turned off it didnt really "turn itself off" I guess.

A enabled/disable of the firewall and VOILA !

 

Thanks for your help on this matter guys !!!