Problem
The NetBackup Java Administration console on Windows won't open due to invalid or corrupt credentials.
Error Message
Socket connection to the NB-Java user service has been broken.
Exception:java.io.IOException: Unexpected end-of-stream while reading first line from socket.
[2/28/23 10:54:59 AM EST {1677599699763}] [-1] [Session] shutdown SI, siShutdown:false, initialLoginRequired:true
##shutdown:Closing socket on 0 for appadmin on <PrimaryServer>
Failed to get connecting server version. Ignore this and proceed with CRL verification flow.
ServerInterface:Logon:Exception encountered null
[2/28/23 10:54:59 AM EST {1677599699778}] [-1] [Session] shutdown SI, siShutdown:false, initialLoginRequired:true
Can not connect to the NB-Java authentication service on <PrimaryServer> on port 1556. Exception:
java.lang.NullPointerException
ServerInterface:Logon - Initial host:null, Current host:<PrimaryServer>, MS port:0, PBX port:1556, VNETD:13724, m_intPort:0, localPort:0, range use:false
Can not connect to the NB-Java authentication service on <PrimaryServer> on port 1556. Exception:
java.lang.NullPointerException
[2/28/23 10:54:59 AM EST {1677599699794}] [-1] [Session] abort: closing all bpjava-sessions
[2/28/23 10:54:59 AM EST {1677599699794}] [-1] [Session] nothing to deinitialize
Cause
The credentials for the java console is corrupt or no longer valid.
bpjava-msvc logs:
00:41:02.993 [119896] <16> nb_tls_accept: Failed in tls accept.
00:41:02.993 [119896] <16> tls_accept: FAILED!! while performing SSL/TLS handshake. This would result in NetBackup Admin Console failing to establish connection with this host.
00:41:02.993 [119896] <16> tlsFinish: Failed in TLS finish with error Error - (336462231: error:140E0197:SSL routines:SSL_shutdown:shutdown while in init), Error - (336462231: error:140E0197:SSL routines:SSL_shutdown:shutdown while in init), Error - (336462231: error:140E0197:SSL routines:SSL_shutdown:shutdown while in init)
00:41:02.993 [119896] <16> cmncrypto_tlsFinish: cmncrypto_tlsFinish function failed. Error:Failed in TLS Finish
00:41:02.993 [119896] <16> nb_tls_fin: Failed in tls finish.
00:41:02.993 [119896] <16> session_secure_lookup: Unexpected error occurred while establishing TLS session.Possibly this could be a NetBackup Console establishing trust with the broker or User opted not to trust issuer of Machine certificate.This may also occur due to network blip or due to expired or invalid Machine certificate.
00:41:02.993 [119896] <16> session_dispatch: session_secure_lookup FAILED!!! fd = 0
01:13:34.363 [127404] <2> poll_mainloop: switch default.., poll/select result = 1
01:13:34.364 [127404] <2> poll_mainloop: ...........invoking session_dispatch (start a session on the socket) ... with fd = job = 0
01:13:34.364 [127404] <16> tlsRead: Failed in TLS read with error No error details available.
01:13:34.364 [127404] <16> cmncrypto_tlsRead: cmncrypto_tlsRead function failed. Error:Failed in TLS read
01:13:34.364 [127404] <16> nb_tls_read: Failed in tls read.
01:13:34.364 [127404] <16> readCharByChar: read failed(?), sockFd = 0, count = 0 (want = 3072), errno = 107 = Transport endpoint is not connected
01:13:34.364 [127404] <2> session_dispatch: fd = 0, currentObj.currSocket = 0
01:13:34.364 [127404] <2> session_dispatch: tag = -1 = <Unknown Protocol>, lines = -1
01:13:34.364 [127404] <2> session_dispatch: Permission granted for protocol: <Unknown Protocol>
01:13:34.364 [127404] <16> session_dispatch: recv failed, sockFd = 0, errno = 107 = Transport endpoint is not connected
Solution
- Attempt to renew your credentials. If this is unsuccessful, proceed to the next step.
- Clear the Java cache to force it to retrieve a new set of credentials.
- To clear the Java cache, move the contents of the following folders
C:\Users\<username>\AppData\Roaming\Veritas
C:\Users\<username>\AppData\Roaming\VxSS
e.g.
C:\Users\Administrator\AppData\Roaming\Veritas
C:\Users\Administrator\AppData\Roaming\VxSS