KMS Failed to create a new Key Group Exit Error: Cannot connect on socket
Hi Guys,
I have Netbackup 7.1.0.4 master server. I just installed KMS. The problem is after i created Key Group i got this error message:
E:\Veritas\NetBackup\bin\admincmd>nbkmsutil.exe -createkg -kgname ENCR_offsite
Failed to create a new Key Group
EXIT error: cannot connect on socket
EXIT status = 25
Please see the logs:
11:11:02.685 [4940.4944] <2> logparams: nbkmsutil.exe -createkg -kgname ENCR_offsite
11:11:02.701 [4940.4944] <2> nbconf_create_authentication_domain_rec: ../../libvlibs/nbconf_private.c.261: AT Domain Name: <domain>
11:11:02.701 [4940.4944] <2> nbconf_create_authentication_domain_rec: ../../libvlibs/nbconf_private.c.262: AT Domain Type: 4 4 0x00000004
11:11:02.701 [4940.4944] <2> nbconf_create_authentication_domain_rec: ../../libvlibs/nbconf_private.c.261: AT Domain Name: NBUSVR
11:11:02.701 [4940.4944] <2> nbconf_create_authentication_domain_rec: ../../libvlibs/nbconf_private.c.262: AT Domain Type: 4 4 0x00000004
11:11:02.701 [4940.4944] <2> nbconf_create_authorization_service_rec: ../../libvlibs/nbconf_private.c.384: AZ Service Host: nbusvr.domain.com
11:11:02.701 [4940.4944] <2> nbconf_create_authorization_service_rec: ../../libvlibs/nbconf_private.c.385: AZ Service Port: 0 0 0x00000000
11:11:02.701 [4940.4944] <2> nbkmsutil.::NbKMSUtilCLI::ProcessRequest: Entering function...
11:11:02.701 [4940.4944] <2> nbkmsutil.::ValidateCmdStr: Cmd: -createkg
11:11:02.701 [4940.4944] <2> nbkmsutil.::NbKMSUtilCLI::ParseArgs: Entering function...
11:11:02.701 [4940.4944] <2> nbkmsutil.::NbKMSUtilCLI::IsDuplicateOption: Option: 2
11:11:02.701 [4940.4944] <2> nbkmsutil.::NbKMSUtilCLI::GetOptValueFromArgsList: Arg count: 2
11:11:02.701 [4940.4944] <2> nbkmsutil.::IsValidName: Name: ENCR_offsite
11:11:02.701 [4940.4944] <2> nbkmsutil.::NbKMSUtilCLI::ProcessRequest: Cmd bitmap: = 2
11:11:02.701 [4940.4944] <2> nbkmsutil.::NbKMSUtilCLI::CreateKG: Entering function...
11:11:02.701 [4940.4944] <2> nbkmsutil.::NbKMSUtilCLI::InitModifyFacetInstance: Entering function...
11:11:02.701 [4940.4944] <2> nbkmsutil.::NbKMSUtilCLI::ConnectToKMS: Entering function...
11:11:02.701 [4940.4944] <2> nbkmsutil.::NbKMSUtilCLI::ConnectToKMS: Trying to initialize the Orb
11:11:02.701 [4940.4944] <2> nbconf_create_authentication_domain_rec: ../../libvlibs/nbconf_private.c.261: AT Domain Name: DOMAIN
11:11:02.701 [4940.4944] <2> nbconf_create_authentication_domain_rec: ../../libvlibs/nbconf_private.c.262: AT Domain Type: 4 4 0x00000004
11:11:02.701 [4940.4944] <2> nbconf_create_authentication_domain_rec: ../../libvlibs/nbconf_private.c.261: AT Domain Name: NBUSVR
11:11:02.701 [4940.4944] <2> nbconf_create_authentication_domain_rec: ../../libvlibs/nbconf_private.c.262: AT Domain Type: 4 4 0x00000004
11:11:02.701 [4940.4944] <2> nbconf_create_authorization_service_rec: ../../libvlibs/nbconf_private.c.384: AZ Service Host: nbusvr.domain.com
11:11:02.701 [4940.4944] <2> nbconf_create_authorization_service_rec: ../../libvlibs/nbconf_private.c.385: AZ Service Port: 0 0 0x00000000
11:11:02.748 [4940.4944] <2> Orb::init: initializing ORB Default_CLIENT_Orb with: Unknown -ORBSvcConfDirective "-ORBDottedDecimalAddresses 0" -ORBSvcConfDirective "static VxSSIOP_Factory '-enable_keepalive -session_id_string_only NBUSSLSessionIDStr -qop NoProtection -eat_home_dir E:\Veritas\NETBAC~1\sec\at -eat_data_dir E:\Veritas\NETBAC~1\var\vxss\at'" -ORBSvcConfDirective "static EndpointSelectorFactory ''" -ORBSvcConfDirective "static Resource_Factory '-ORBProtocolFactory VxSSIOP_Factory'" -ORBSvcConfDirective "static Resource_Factory '-ORBProtocolFactory IIOP_Factory'" -ORBDefaultInitRef '' -ORBSvcConfDirective "static PBXIOP_Evaluator_Factory '-orb Default_CLIENT_Orb'" -ORBSvcConfDirective "static Resource_Factory '-ORBConnectionCacheMax 1024 '" -ORBSvcConf nul -ORBSvcConfDirective "static Server_Strategy_Factory '-ORBMaxRecvGIOPPayloadSize 268435456'"(../Orb.cpp:823)
11:11:02.748 [4940.4944] <2> Orb::init: caching EndpointSelectorFactory(../Orb.cpp:838)
11:11:02.748 [4940.4944] <2> Orb::setOrbRequestTimeout: timeout seconds: 14400(../Orb.cpp:1487)
11:11:02.748 [4940.4944] <2> nbkmsutil.::NbKMSUtilCLI::ConnectToKMS: Orb initialization is succesful
11:11:02.748 [4940.4944] <2> nbkmsutil.::NbKMSUtilCLI::ConnectToKMS: Trying to connect to NBSL on: localhost
11:11:02.764 [4940.4944] <2> nbkmsutil.::NbKMSUtilCLI::ConnectToKMS: Trying establish a session with NBSL
11:11:02.780 [4940.4944] <2> nbkmsutil.::NbKMSUtilCLI::ConnectToKMS: Trying to get KMS manager
11:11:02.780 [4940.4944] <2> nbkmsutil.::NbKMSUtilCLI::InitModifyFacetInstance: Trying to get an instance of KMS modifyable facet
11:11:02.780 [4940.4944] <2> nbkmsutil.::NbKMSUtilCLI::CreateKG: Get defaults seeded Key Group Object
11:11:02.796 [4940.4944] <16> nbkmsutil.::NbKMSUtilCLI::CreateKG: Failed to create a new Key Group
11:11:02.796 [4940.4944] <16> nbkmsutil.::NbKMSUtilCLI::CreateKG: CORBA Exception caught as user exception, ID 'IDL:Symantec/NetBackup/SL/NBSLOpException:1.0'
11:11:02.796 [4940.4944] <16> nbkmsutil.::NbKMSUtilCLI::CreateKG: Error: [EC= 25] cannot connect on socket
Any idea will appreaciate.
Thanks.
Yes I think it has something to do with NBAC.
We know nbkms is working. We can see ksstat return information as administrator. This matches the information provided in the link below exactly. Browse allowed - create not allowed.
http://www.symantec.com/docs/HOWTO46974
You need to add Administrator to the "NBU_KMS admin" group.
See Netbackup Security and encryption guide page 257.