com.sun.identity.setup.ConfiguratorException: Cannot connect to Directory Server. at com.sun.identity.setup.ServicesDefaultValues.setServiceConfigValues (ServicesDefaultValues.java:141)

Oracle Community | 955737 | 4 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    openSSO version 9.5.2 installation from response file

    Oracle Community | 4 years ago | 955737
    com.sun.identity.setup.ConfiguratorException: Cannot connect to Directory Server. at com.sun.identity.setup.ServicesDefaultValues.setServiceConfigValues (ServicesDefaultValues.java:141)
  2. 0

    hi all, i am trying to setup openam cluster with ssoConfiguratorTools. Environment Details : openam Release 9.0 , glassfish V3 , centOS 5, OpenLDAP 2.4. and able to configure primary node with balancer ( HAproxy ). master Details :: dns name : master.sso.com opends listen port : 50389 opends replication port : 50889 working fine !! as i move to configure secondary openam that joins primary openam for replication : following are configuration error log :: Checking configuration directory /usr/local/applications/openam....Success. Installing OpenSSO configuration store...Success RSA/ECB/OAEPWithSHA1AndMGF1Padding. Installing OpenSSO configuration store in /usr/local/applications/openam/opends...Success. Tag swapping schema files....Success. Loading Schema opends_config_schema.ldif...Success. Loading Schema opends_user_schema.ldif...Success. Loading Schema opends_embinit.ldif...Success. Loading Schema opends_user_index.ldif...Success. Loading Schema opends_plugin.ldif...Success. ...Success. Creating OpenSSO configuration store replicaReplication command: enable --no-prompt --host1 master.sso.com --port1 50389 --bindDN1 cn=Directory Manager --bindPassword1 xxxxxxxx --replicationPort1 50889 --host2 opens-7 --port2 50389 --bindDN2 cn=Directory Manager --bindPassword2 xxxxxxxx --replicationPort2 50889 --adminUID admin --adminPassword xxxxxxxx --baseDN dc=opensso,dc=java,dc=net %0AEstablishing+connections+.....+Done.%0AThe+following+errors+were+encountered+reading+the+configuration+of+the%0Aexisting+servers%3A%0AError+on+opens-3%3A50389%3A+An+error+occurred+connecting+to+the+server.++Details%3A%0Ajavax.naming.CommunicationException%3A+opens-3%3A50389+%5BRoot+exception+is%0Ajava.net.UnknownHostException%3A+opens-3%5D%0AError+on+opens-5%3A50389%3A+An+error+occurred+connecting+to+the+server.++Details%3A%0Ajavax.naming.CommunicationException%3A+opens-5%3A50389+%5BRoot+exception+is%0Ajava.net.UnknownHostException%3A+opens-5%5D%0AError+on+opens-7%3A50389%3A+An+error+occurred+connecting+to+the+server.++Details%3A%0Ajavax.naming.AuthenticationException%3A+%5BLDAP%3A+error+code+49+-+Invalid%0ACredentials%5D%0AThe+replication+tool+will+to+try+to+update+the+configuration+of+all+the%0Aservers+in+a+best-effort+mode.++However+it+cannot+guarantee+that+the+servers%0Athat+are+generating+errors+will+be+updated.%0AChecking+Registration+information+.....+Done.%0AUpdating+remote+references+on+server+master.sso.com%3A50389+.....+Done.%0AConfiguring+Replication+port+on+server+opens-7%3A50389+.....+Done.%0AUpdating+replication+configuration+for+baseDN+dc%3Dopensso%2Cdc%3Djava%2Cdc%3Dnet+on+server+master.sso.com%3A50389+.....+Done.%0AUpdating+replication+configuration+for+baseDN+dc%3Dopensso%2Cdc%3Djava%2Cdc%3Dnet+on+server+opens-7%3A50389+.....+Done.%0AUpdating+Registration+configuration+on+server+master.sso.com%3A50389+.....+Done.%0AUpdating+Registration+configuration+on+server+opens-7%3A50389+.....+Done.%0AUpdating+replication+configuration+for+baseDN+cn%3Dschema+on+server+master.sso.com%3A50389+.....+Done.%0AUpdating+replication+configuration+for+baseDN+cn%3Dschema+on+server+opens-7%3A50389+.....+Done.%0AInitializing+Registration+information+on+server+opens-7%3A50389+with+the+contents+of+server+master.sso.com%3A50389+.....+%0AError+during+the+initialization+with+contents+from+server%0Amaster.sso.com%3A50389.++Last+log+details%3A+%5B20%2FApr%2F2011%3A10%3A41%3A57+%2B0000%5D%0Aseverity%3D%22INFORMATION%22+msgCount%3D0+msgID%3D-1+message%3D%22No+reachable+peer+in+the%0Adomain+In+Replication+Server%3DReplication+Server+50889+28607+domain+%3Dcn%3Dadmin%0Adata+unroutable+message+%3DInitializeRequestMessage%3A+baseDn%3Dcn%3Dadmin+data%0AsenderId%3D27225+destination%3D14329+routing+table+is+empty%22.++Task+state%3A%0ASTOPPED_BY_ERROR.++Check+the+error+logs+of+master.sso.com%3A50389+for+more%0Ainformation.%0ASee+%2Ftmp%2Fopends-replication-5666254545645155741.log+for+a+detailed+log+of+this%0Aoperation.%0A...Failed. ...Failed 12. Configuration failed! if i repeat same process with same configuration , some thing it fails with previous error message , and some times its completes with following success message : Checking configuration directory /usr/local/applications/openam....Success. Installing OpenSSO configuration store...Success RSA/ECB/OAEPWithSHA1AndMGF1Padding. Installing OpenSSO configuration store in /usr/local/applications/openam/opends...Success. Tag swapping schema files....Success. Loading Schema opends_config_schema.ldif...Success. Loading Schema opends_user_schema.ldif...Success. Loading Schema opends_embinit.ldif...Success. Loading Schema opends_user_index.ldif...Success. Loading Schema opends_plugin.ldif...Success. ...Success. Creating OpenSSO configuration store replicaReplication command: enable --no-prompt --host1 master.sso.com --port1 50389 --bindDN1 cn=Directory Manager --bindPassword1 xxxxxxxx --replicationPort1 50889 --host2 opens-5 --port2 50389 --bindDN2 cn=Directory Manager --bindPassword2 xxxxxxxx --replicationPort2 50889 --adminUID admin --adminPassword xxxxxxxx --baseDN dc=opensso,dc=java,dc=net %0AEstablishing+connections+.....+Done.%0AThe+following+errors+were+encountered+reading+the+configuration+of+the%0Aexisting+servers%3A%0AError+on+opens-7%3A50389%3A+An+error+occurred+connecting+to+the+server.++Details%3A%0Ajavax.naming.CommunicationException%3A+opens-7%3A50389+%5BRoot+exception+is%0Ajava.net.UnknownHostException%3A+opens-7%5D%0AError+on+opens-3%3A50389%3A+An+error+occurred+connecting+to+the+server.++Details%3A%0Ajavax.naming.CommunicationException%3A+opens-3%3A50389+%5BRoot+exception+is%0Ajava.net.UnknownHostException%3A+opens-3%5D%0AError+on+opens-5%3A50389%3A+An+error+occurred+connecting+to+the+server.++Details%3A%0Ajavax.naming.AuthenticationException%3A+%5BLDAP%3A+error+code+49+-+Invalid%0ACredentials%5D%0AThe+replication+tool+will+to+try+to+update+the+configuration+of+all+the%0Aservers+in+a+best-effort+mode.++However+it+cannot+guarantee+that+the+servers%0Athat+are+generating+errors+will+be+updated.%0AChecking+Registration+information+.....+Done.%0AUpdating+remote+references+on+server+master.sso.com%3A50389+.....+Done.%0AConfiguring+Replication+port+on+server+opens-5%3A50389+.....+Done.%0AUpdating+replication+configuration+for+baseDN+dc%3Dopensso%2Cdc%3Djava%2Cdc%3Dnet+on+server+master.sso.com%3A50389+.....+Done.%0AUpdating+replication+configuration+for+baseDN+dc%3Dopensso%2Cdc%3Djava%2Cdc%3Dnet+on+server+opens-5%3A50389+.....+Done.%0AUpdating+Registration+configuration+on+server+master.sso.com%3A50389+.....+Done.%0AUpdating+Registration+configuration+on+server+opens-5%3A50389+.....+Done.%0AUpdating+replication+configuration+for+baseDN+cn%3Dschema+on+server+master.sso.com%3A50389+.....+Done.%0AUpdating+replication+configuration+for+baseDN+cn%3Dschema+on+server+opens-5%3A50389+.....+Done.%0AInitializing+Registration+information+on+server+opens-5%3A50389+with+the+contents+of+server+master.sso.com%3A50389+.....+Done.%0AInitializing+schema+on+server+opens-5%3A50389+with+the+contents+of+server+master.sso.com%3A50389+.....+Done.%0A%0AReplication+has+been+successfully+enabled.++Note+that+for+replication+to+work+you+must+initialize+the+contents+of+the+base+DNs+that+are+being+replicated+%28use+dsreplication+initialize+to+do+so%29.%0A...Success. Replication command: initialize --no-prompt --baseDN dc=opensso,dc=java,dc=net --adminUID admin --adminPassword xxxxxxxx --hostSource master.sso.com --portSource 50389 --hostDestination opens-5 --portDestination 50389 --trustAll %0AInitializing+base+DN+dc%3Dopensso%2Cdc%3Djava%2Cdc%3Dnet+with+the+contents+from+master.sso.com%3A50389%3A%0A679+entries+processed+%2899+%25+complete%29.%0A682+entries+processed+%28100+%25+complete%29.%0ABase+DN+initialized+successfully.%0A%0ASee+%2Ftmp%2Fopends-replication-567451395307101900.log+for+a+detailed+log+of+this%0Aoperation.%0A%0A...Success. ...Success. Reinitializing system properties....Done Configuring server instance....Done Setting up registration files....Done Configuration complete! mostly problem comes when i increase no of node in openam cluster . as I read out opends replication creates problem with version jdk1.6.0_21 , in my configuration using jdk1.6.0_19. what could be the issue ???? following are openam error log :: amSetupServlet:04/20/2011 10:51:08:094 AM UTC: Thread[http-thread-pool-8060-(1),10,Grizzly] ********************************************** amSetupServlet:04/20/2011 10:51:08:088 AM UTC: Thread[http-thread-pool-8060-(1),10,Grizzly] ERROR: EmbeddedOpenDS.setupReplication. Error setting up replication amSetupServlet:04/20/2011 10:51:08:095 AM UTC: Thread[http-thread-pool-8060-(1),10,Grizzly] ERROR: AMSetupServlet.configure: error com.sun.identity.setup.ConfiguratorException: configurator.embreplfailed at com.sun.identity.setup.EmbeddedOpenDS.setupReplication(Unknown Source) at com.sun.identity.setup.AMSetupServlet.setupEmbeddedDS(Unknown Source) at com.sun.identity.setup.AMSetupServlet.setupSMDatastore(Unknown Source) at com.sun.identity.setup.AMSetupServlet.configure(Unknown Source) at com.sun.identity.setup.AMSetupServlet.processRequest(Unknown Source) at com.sun.identity.setup.AMSetupServlet.doPost(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215) at com.sun.identity.setup.AMSetupFilter.doFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) at com.sun.grizzly.ContextTask.run(ContextTask.java:69) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309) at java.lang.Thread.run(Thread.java:619)

    ForgeRock JIRA | 6 years ago | sanjivsingh
    com.sun.identity.setup.ConfiguratorException: configurator.embreplfailed

    Root Cause Analysis

    1. com.sun.identity.setup.ConfiguratorException

      Cannot connect to Directory Server. at com.sun.identity.setup.ServicesDefaultValues.setServiceConfigValues (ServicesDefaultValues.java:141)

      at com.sun.identity.setup.AMSetupServlet.processRequest()
    2. com.sun.identity
      AMSetupServlet.doPost
      1. com.sun.identity.setup.AMSetupServlet.processRequest(AMSetupServlet.java:438)
      2. com.sun.identity.setup.AMSetupServlet.doPost(AMSetupServlet.java:398)
      2 frames
    3. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      2 frames