org.opends.server.tools.dsreplication.ReplicationCliException: Error updating registration information. Details: Registration information error. Error type: 'ERROR_UNEXPECTED'. Details: javax.naming.CommunicationException: Request: 151 cancelled; remaining name 'cn=Servers,cn=admin data'

ForgeRock JIRA | Mark Craig | 6 years ago
  1. 0

    This has happened with a build on my system from Revision: 6994. Looks like you cannot use the global administrator to do dsreplication disable -a. Steps to reproduce: 1. Quick Setup install replA, admin port 4444, configuring for secure repl for dc=example,dc=com. (See attached Example.ldif.) 2. Quick Setup install replB, admin port 5444, configuring for secure repl for dc=example,dc=com with replA. Global admin, admin:password. Quick Setup seemed to initialize replication, no complaints. 3. Go do something else for a couple of minutes, but no operations on either server. 4. $ dsreplication disable -a -p 5444 -h `hostname` -D "cn=admin,cn=Administrators,cn=admin data" -w password You can choose to disable all the replication on the server. If you choose 'yes' the changelog and the replication port (if defined) will be disabled; if this server contains replicated data, the data will not be replicated with other servers any more; all the registration information will be deleted. Do you want to disable all the replication configuration? (yes / no) [yes]: yes Establishing connections ..... Done. Disabling replication on base DN dc=example,dc=com of server Mark-Craigs-MacBook-Pro.local:5444 ..... Done. Disabling replication on base DN cn=admin data of server Mark-Craigs-MacBook-Pro.local:5444 ..... Done. Disabling replication on base DN cn=schema of server Mark-Craigs-MacBook-Pro.local:5444 ..... Done. Disabling replication port 9989 of server Mark-Craigs-MacBook-Pro.local:5444 ..... Done. Removing registration information ..... Error updating registration information. Details: Registration information error. Error type: 'ERROR_UNEXPECTED'. Details: javax.naming.CommunicationException: Request: 151 cancelled; remaining name 'cn=Servers,cn=admin data' See /var/folders/-i/-irO4lsAFKOxVhjx6vF8tU+++TI/-Tmp-/opends-replication-3395976836088428094.log for a detailed log of this operation. Here's the log: $ more /var/folders/-i/-irO4lsAFKOxVhjx6vF8tU+++TI/-Tmp-/opends-replication-3395976836088428094.log Jun 10, 2011 11:58:01 AM org.opends.guitools.controlpanel.util.ControlPanelLog initLogFileHandler INFO: Application launched June 10, 2011 11:58:01 AM CEST Jun 10, 2011 11:58:15 AM org.opends.server.tools.dsreplication.ReplicationCliMain updateConfiguration SEVERE: Error removing contents of cn=admin data: ADSContextException: error type ERROR_UNEXPECTED. Root cause: javax.naming.CommunicationException: Request: 151 cancelled; remaining name 'cn=Servers,cn=admin data' ADSContextException: error type ERROR_UNEXPECTED. Root cause: javax.naming.CommunicationException: Request: 151 cancelled; remaining name 'cn=Servers,cn=admin data' at org.opends.admin.ads.ADSContext.createEntry(ADSContext.java:2357) at org.opends.admin.ads.ADSContext.createContainerEntry(ADSContext.java:2305) at org.opends.admin.ads.ADSContext.removeAdminData(ADSContext.java:1260) at org.opends.server.tools.dsreplication.ReplicationCliMain.updateConfiguration(ReplicationCliMain.java:7010) at org.opends.server.tools.dsreplication.ReplicationCliMain.disableReplication(ReplicationCliMain.java:4507) at org.opends.server.tools.dsreplication.ReplicationCliMain.disableReplication(ReplicationCliMain.java:684) at org.opends.server.tools.dsreplication.ReplicationCliMain.execute(ReplicationCliMain.java:486) at org.opends.server.tools.dsreplication.ReplicationCliMain.mainCLI(ReplicationCliMain.java:352) at org.opends.server.tools.dsreplication.ReplicationCliMain.main(ReplicationCliMain.java:283) Caused by: javax.naming.CommunicationException: Request: 151 cancelled; remaining name 'cn=Servers,cn=admin data' at com.sun.jndi.ldap.LdapRequest.getReplyBer(LdapRequest.java:60) at com.sun.jndi.ldap.Connection.readReply(Connection.java:414) at com.sun.jndi.ldap.LdapClient.processReply(LdapClient.java:857) at com.sun.jndi.ldap.LdapClient.add(LdapClient.java:1008) at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(LdapCtx.java:784) at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_createSubcontext(ComponentDirContext.java:319) at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(PartialCompositeDirContext.java:248) at javax.naming.directory.InitialDirContext.createSubcontext(InitialDirContext.java:183) at org.opends.admin.ads.ADSContext.createEntry(ADSContext.java:2352) ... 8 more Jun 10, 2011 11:58:15 AM org.opends.server.tools.dsreplication.ReplicationCliMain disableReplication SEVERE: Complete error stack: org.opends.server.tools.dsreplication.ReplicationCliException: Error updating registration information. Details: Registration information error. Error type: 'ERROR_UNEXPECTED'. Details: javax.naming.CommunicationException: Request: 151 cancelled; remaining name 'cn=Servers,cn=admin data' at org.opends.server.tools.dsreplication.ReplicationCliMain.updateConfiguration(ReplicationCliMain.java:7029) at org.opends.server.tools.dsreplication.ReplicationCliMain.disableReplication(ReplicationCliMain.java:4507) at org.opends.server.tools.dsreplication.ReplicationCliMain.disableReplication(ReplicationCliMain.java:684) at org.opends.server.tools.dsreplication.ReplicationCliMain.execute(ReplicationCliMain.java:486) at org.opends.server.tools.dsreplication.ReplicationCliMain.mainCLI(ReplicationCliMain.java:352) at org.opends.server.tools.dsreplication.ReplicationCliMain.main(ReplicationCliMain.java:283) Caused by: ADSContextException: error type ERROR_UNEXPECTED. Root cause: javax.naming.CommunicationException: Request: 151 cancelled; remaining name 'cn=Servers,cn=admin data' at org.opends.admin.ads.ADSContext.createEntry(ADSContext.java:2357) at org.opends.admin.ads.ADSContext.createContainerEntry(ADSContext.java:2305) at org.opends.admin.ads.ADSContext.removeAdminData(ADSContext.java:1260) at org.opends.server.tools.dsreplication.ReplicationCliMain.updateConfiguration(ReplicationCliMain.java:7010) ... 5 more Caused by: javax.naming.CommunicationException: Request: 151 cancelled; remaining name 'cn=Servers,cn=admin data' at com.sun.jndi.ldap.LdapRequest.getReplyBer(LdapRequest.java:60) at com.sun.jndi.ldap.Connection.readReply(Connection.java:414) at com.sun.jndi.ldap.LdapClient.processReply(LdapClient.java:857) at com.sun.jndi.ldap.LdapClient.add(LdapClient.java:1008) at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(LdapCtx.java:784) at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_createSubcontext(ComponentDirContext.java:319) at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(PartialCompositeDirContext.java:248) at javax.naming.directory.InitialDirContext.createSubcontext(InitialDirContext.java:183) at org.opends.admin.ads.ADSContext.createEntry(ADSContext.java:2352) ... 8 more $ grep -v SEARCH ../logs/access ... [10/Jun/2011:11:58:11 +0200] CONNECT conn=6 from=10.10.0.185:52040 to=10.10.0.185:5444 protocol=LDAPS [10/Jun/2011:11:58:11 +0200] BIND REQ conn=6 op=0 msgID=1 version=3 type=SIMPLE dn="cn=admin,cn=Administrators,cn=admin data" [10/Jun/2011:11:58:11 +0200] BIND RES conn=6 op=0 msgID=1 result=0 authDN="cn=admin,cn=Administrators,cn=admin data" etime=0 [10/Jun/2011:11:58:11 +0200] DELETE REQ conn=6 op=38 msgID=39 dn="ds-cfg-key-id=EDF57F838A717A10FA6739BD108C8E43,cn=instance keys,cn=admin data" [10/Jun/2011:11:58:11 +0200] DELETE RES conn=6 op=38 msgID=39 result=0 etime=7 [10/Jun/2011:11:58:11 +0200] MODIFY REQ conn=6 op=40 msgID=41 dn="cn=all-servers,cn=Server Groups,cn=admin data" [10/Jun/2011:11:58:11 +0200] MODIFY RES conn=6 op=40 msgID=41 result=0 etime=7 [10/Jun/2011:11:58:11 +0200] DELETE REQ conn=6 op=41 msgID=42 dn="cn=Mark-Craigs-MacBook-Pro.local:5444,cn=Servers,cn=admin data" [10/Jun/2011:11:58:11 +0200] DELETE RES conn=6 op=41 msgID=42 result=0 etime=2 [10/Jun/2011:11:58:12 +0200] MODIFY REQ conn=-1 op=107 msgID=108 dn="cn=admin data" type=synchronization [10/Jun/2011:11:58:12 +0200] MODIFY RES conn=-1 op=107 msgID=108 result=0 etime=1 [10/Jun/2011:11:58:13 +0200] DELETE REQ conn=6 op=74 msgID=75 dn="cn=external changelog,cn=dc\=example\,dc\=com,cn=domains,cn=Multimaster Synchronization,cn=Synchronization Providers,cn=config" [10/Jun/2011:11:58:13 +0200] DELETE RES conn=6 op=74 msgID=75 result=0 etime=8 [10/Jun/2011:11:58:13 +0200] DELETE REQ conn=6 op=75 msgID=76 dn="cn=dc\=example\,dc\=com,cn=domains,cn=Multimaster Synchronization,cn=Synchronization Providers,cn=config" [10/Jun/2011:11:58:13 +0200] DELETE RES conn=6 op=75 msgID=76 result=0 etime=64 [10/Jun/2011:11:58:13 +0200] DELETE REQ conn=6 op=95 msgID=96 dn="cn=external changelog,cn=cn\=admin data,cn=domains,cn=Multimaster Synchronization,cn=Synchronization Providers,cn=config" [10/Jun/2011:11:58:13 +0200] DELETE RES conn=6 op=95 msgID=96 result=0 etime=12 [10/Jun/2011:11:58:13 +0200] DELETE REQ conn=6 op=96 msgID=97 dn="cn=cn\=admin data,cn=domains,cn=Multimaster Synchronization,cn=Synchronization Providers,cn=config" [10/Jun/2011:11:58:13 +0200] DELETE RES conn=6 op=96 msgID=97 result=0 etime=21 [10/Jun/2011:11:58:13 +0200] DELETE REQ conn=6 op=122 msgID=123 dn="cn=external changelog,cn=cn\=schema,cn=domains,cn=Multimaster Synchronization,cn=Synchronization Providers,cn=config" [10/Jun/2011:11:58:13 +0200] DELETE RES conn=6 op=122 msgID=123 result=0 etime=11 [10/Jun/2011:11:58:13 +0200] DELETE REQ conn=6 op=123 msgID=124 dn="cn=cn\=schema,cn=domains,cn=Multimaster Synchronization,cn=Synchronization Providers,cn=config" [10/Jun/2011:11:58:14 +0200] DELETE RES conn=6 op=123 msgID=124 result=0 etime=866 [10/Jun/2011:11:58:14 +0200] DELETE REQ conn=6 op=141 msgID=142 dn="cn=replication server,cn=Multimaster Synchronization,cn=Synchronization Providers,cn=config" [10/Jun/2011:11:58:14 +0200] DELETE RES conn=6 op=141 msgID=142 result=0 etime=190 [10/Jun/2011:11:58:14 +0200] DELETE REQ conn=6 op=143 msgID=144 dn="cn=Servers,cn=admin data" [10/Jun/2011:11:58:14 +0200] DELETE RES conn=6 op=143 msgID=144 result=0 etime=1 [10/Jun/2011:11:58:14 +0200] DELETE REQ conn=6 op=145 msgID=146 dn="cn=Server Groups,cn=admin data" [10/Jun/2011:11:58:14 +0200] DELETE RES conn=6 op=145 msgID=146 result=0 etime=0 [10/Jun/2011:11:58:14 +0200] DELETE REQ conn=6 op=147 msgID=148 dn="cn=instance keys,cn=admin data" [10/Jun/2011:11:58:14 +0200] DELETE RES conn=6 op=147 msgID=148 result=0 etime=1 [10/Jun/2011:11:58:14 +0200] DELETE REQ conn=6 op=149 msgID=150 dn="cn=Administrators,cn=admin data" [10/Jun/2011:11:58:14 +0200] DELETE RES conn=6 op=149 msgID=150 result=0 etime=1 [10/Jun/2011:11:58:14 +0200] DISCONNECT conn=6 reason="Unknown Closure Reason" msg="Terminating the client connection because its associated authentication or authorization entry cn=Administrators,cn=admin data has been deleted" [10/Jun/2011:12:15:43 +0200] CONNECT conn=7 from=10.10.0.185:55085 to=10.10.0.185:5444 protocol=LDAPS [10/Jun/2011:12:15:43 +0200] DISCONNECT conn=7 reason="Protocol Error" msg="The client sent a request to the Directory Server that could not be properly decoded as an LDAP message: javax.net.ssl.SSLException: Received fatal alert: certificate_unknown"

    ForgeRock JIRA | 6 years ago | Mark Craig
    org.opends.server.tools.dsreplication.ReplicationCliException: Error updating registration information. Details: Registration information error. Error type: 'ERROR_UNEXPECTED'. Details: javax.naming.CommunicationException: Request: 151 cancelled; remaining name 'cn=Servers,cn=admin data'
  2. 0

    dsreplication failure - ForgeRock Community

    forgerock.org | 1 year ago
    org.opends.server.tools.dsreplication.ReplicationCliException: Error launching initialization with contents from server localhost:4444. Details: javax.naming.NamingException: [LDAP: error code 80 – On domain dc=unfpa,dc=org, initialization of server with serverId:13770 has been requested from a server with an invalid serverId:13770. ]; remaining name ‘ds-task-id=quicksetup-initialize1,cn=Scheduled Tasks,cn=Tasks’

    Root Cause Analysis

    1. org.opends.server.tools.dsreplication.ReplicationCliException

      Error updating registration information. Details: Registration information error. Error type: 'ERROR_UNEXPECTED'. Details: javax.naming.CommunicationException: Request: 151 cancelled; remaining name 'cn=Servers,cn=admin data'

      at org.opends.server.tools.dsreplication.ReplicationCliMain.updateConfiguration()
    2. org.opends.server
      ReplicationCliMain.main
      1. org.opends.server.tools.dsreplication.ReplicationCliMain.updateConfiguration(ReplicationCliMain.java:7029)
      2. org.opends.server.tools.dsreplication.ReplicationCliMain.disableReplication(ReplicationCliMain.java:4507)
      3. org.opends.server.tools.dsreplication.ReplicationCliMain.disableReplication(ReplicationCliMain.java:684)
      4. org.opends.server.tools.dsreplication.ReplicationCliMain.execute(ReplicationCliMain.java:486)
      5. org.opends.server.tools.dsreplication.ReplicationCliMain.mainCLI(ReplicationCliMain.java:352)
      6. org.opends.server.tools.dsreplication.ReplicationCliMain.main(ReplicationCliMain.java:283)
      6 frames