Failure adding the master server to the vCenter plugin; com.Veritas.nbu.netbackup4j.model.NBException
Problem
A com.Veritas.nbu.netbackup4j.model.NBException occurs when attempting to add the master server to the vCenter plugin.
Error Message
The following dialog box is presented when the error occurs.
Failed to communicate with server using supplied auth token. Error: com.symantec.nbu.netbackup4j.model.NBException: EC:0. Please verify that NetBackup Master Server name, port and auth token are valid
[OK]
The recoveryportal.log will also record the failure.
[http-9445-5] 09 Jan 2015 13:36:25 INFO com.symantec.nbu.netbackup4j.http.NBHttpClient : GET method url:https://myhost.com:8443/nbwebservice/server/master/myhost.com/timezone
[http-9445-5] 09 Jan 2015 13:36:25 INFO com.symantec.nbu.netbackup4j.http.NBHttpClient : Setting socket timeout to 300000 mili seconds
[http-9445-5] 09 Jan 2015 13:36:25 ERROR com.symantec.nbu.netbackup4j.http.NBHttpClient : Failed to parse NetBackup Error Code from the response due to JsonParseException:
org.codehaus.jackson.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source: java.io.StringReader@526b9ccc; line: 1, column: 2]
[http-9445-5] 09 Jan 2015 13:36:25 ERROR RecoveryPortal : Application threw exception java.lang.Exception: Failed to communicate with server using supplied auth token.
Error: com.symantec.nbu.netbackup4j.model.NBException: EC:0. Please verify that NetBackup Master Server name, port and auth token are valid
at com.symantec.nbu.recoveryplugin.controller.NetBackupMgr.validateServer(Unknown Source)
Cause
This issue occurs when a valid but incorrectly generated authentication token certificate has been provided to the vCenter plugin. For example, this could happen when using manageClientCerts to create the certificate, but specifying the wrong hostname.
Solution
Create a new authentication token following the procedure to “Create an Authentication Token” in the “Veritas NetBackupTM Plug-in for VMware vCenter Guide”.
When executing manageClientCerts, ensure the correct hostname is used. It should be the hostname of the VM where the vCenter plugin is installed, which will not be the same as the vCenter host itself.
Applies To
Any version of NetBackup