My Oracle Support Banner

OID 12c oid_setup Command Fails "Error occurred while performing invoke : Realm "dc=<COMPANY>,dc=com" ceation failed" "Unable to establish OID context. Check OID host/port/password" (Doc ID 2579758.1)

Last updated on APRIL 05, 2021

Applies to:

Oracle Internet Directory - Version 12.2.1.3.0 and later
Information in this document applies to any platform.
Error occurred while performing invoke : Realm "dc=,dc=com" ceation failed
Error occurred while performing invoke : Realm "dc=,dc=com" creation failed

Symptoms

Case1

New installation of Oracle Internet Directory (OID) 12c in multiple server High Availability (HA) cluster. (Error can also occur in Stand Alone (non-HA) install of OID)

Attempting to create initial OID instance oid1 using command, for example:

 

Case 2

1. oid_setup fails with:

$ORACLE_HOME/oracle_common/common/bin/wlst.sh

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

wls:/offline> connect('<username>','<password>','t3://<hostname>:<port>')
Connecting to t3://<hostname>:<port> with userid <username> ...
Successfully connected to Admin Server "AdminServer" that belongs to domain "<domain>".

Warning: An insecure protocol was used to connect to the server.
To ensure on-the-wire security, the SSL port or Admin port should be used instead.

wls:/<domain>/serverConfig/> oid_setup(orcladminPassword='<password>',odsPassword='<password>',realmDN='dc=<company>,dc=com',host='<hostname>')
Location changed to edit custom tree. This is a writable tree with No root.
For more help, use help('editCustom')

Starting an edit session ...
Started edit session, be sure to save and activate your changes once you are done.
Saving all your changes ...
Saved all your changes successfully.
Activating all your changes, this may take a while ...
The edit lock associated with this edit session is released once the activation is completed.
Activation completed
Starting an edit session ...
Started edit session, be sure to save and activate your changes once you are done.
Traceback (innermost last):
  File "<console>", line 1, in ?
  File "<ORACLE_HOME>/oid/plugins/wlst/oid-wlst-dependencies.jar!/wlstScriptDir/OidCustomCommands.py", line 14, in oid_setup
  File "<ORACLE_HOME>/oid/plugins/wlst/oid-wlst-dependencies.jar/wlstScriptDir/oid_handler.py", line 292, in oid_doSetup
  File "<ORACLE_HOME>/wlserver/modules/com.oracle.weblogic.management.scripting.jar/weblogic/management/scripting/utils/modules/wlstModule.py", line 38, in invoke
  File "/var/tmp/wlst_module17029903296686226682.py", line 753, in wlstInvoke
  File "/var/tmp/wlst_module39223320159715649080.py", line 240, in raiseWLSTException
WLSTException: Error occurred while performing invoke : Realm "dc=<company>,dc=com" ceation failed for instance "oid1". Error: "Unable to establish OID context. Check OID host/port/password
".
Use dumpStack() to view the full stacktrace :
wls:/<domain>/editCustom/oracle.oid.mbeans/oracle.oid.mbeans:type=OIDSystemComponent,name=OIDComponentManager>


nodemanager output:

<Mar 28, 2021 10:41:01 AM CDT> <INFO> <> <oid1> <Startup configuration properties saved to "<ORACLE_HOME>/user_projects/domains/<domain>/system_components/OID/oid1/data/nodemanager/startup.properties">
<Mar 28, 2021 10:41:03 AM CDT> <INFO> <Starting instance oid1.>
<Mar 28, 2021 10:41:04 AM CDT> <WARNING> <Instance oid1 not found in DB>
<Mar 28, 2021 10:41:14 AM CDT> <WARNING> <Failed to start instance oid1.>
<Mar 28, 2021 10:41:14 AM CDT> <INFO> <Instance oid1 has changed state from STOPPED to FAILED>
<Mar 28, 2021 10:41:14 AM CDT> <WARNING> <Server start command for OID server 'oid1' failed due to: [Failed to start instance oid1]. Please check Node Manager log and/or server 'oid1' log for detailed information.>


The only file created after oid_setup is oidctl.log in $DOMAIN_HOME/OID/logs/oid1 with only one single line in it, as follows:

[2021-03-29T12:52:31.583195-05:00] [OID] [NOTIFICATION:16] [] [] [host: <single hostname>] [pid: <pid>] [tid: 0] OIDCTL:: gsdsiConnect * Completed OCILogon (attempt #1) Time=999345 micro sec "



2. Or, after attempting to adjust/change java home/location, etc, the error may change to:

wls:/<domain>/serverConfig/> oid_setup(orcladminPassword='<password>',odsPassword='<password>',realmDN='dc=<company>,dc=com',host='<hostname>')
Location changed to edit custom tree. This is a writable tree with No root.
For more help, use help('editCustom')

Starting an edit session ...
Started edit session, be sure to save and activate your changes once you are done.
Traceback (innermost last):
  File "<console>", line 1, in ?
  File "<ORACLE_HOME>/oid/plugins/wlst/oid-wlst-dependencies.jar!/wlstScriptDir/OidCustomCommands.py", line 14, in oid_setup
  File "<ORACLE_HOME>/oid/plugins/wlst/oid-wlst-dependencies.jar/wlstScriptDir/oid_handler.py", line 276, in oid_doSetup
  File "<ORACLE_HOME>/wlserver/modules/com.oracle.weblogic.management.scripting.jar/weblogic/management/scripting/utils/modules/wlstModule.py", line 38, in invoke
  File "/var/tmp/wlst_module15800878621188616522.py", line 753, in wlstInvoke
  File "/var/tmp/wlst_module38657608913734244774.py", line 240, in raiseWLSTException
WLSTException: Error occurred while performing invoke : Changing orcladmin password failed. Domain:"<ORACLE_HOME>/user_projects/domains/<domain>". Error: "".
Use dumpStack() to view the full stacktrace :
wls:/<domain>/editCustom/oracle.oid.mbeans/oracle.oid.mbeans:type=OIDSystemComponent,name=OIDComponentManager>


After following "OID 12c Oid_setup Command Fails "Changing orcladmin password failed" (Doc ID 2339603.1)", the error reverts back to the first error above.


Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.