Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-249

dsreplication disable --disableAll error removing contents of "cn=admin data"

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.6.0
    • Component/s: replication
    • Labels:
    • Environment:
      linux 32 bit Java 1.6.0_26
    • Support Ticket IDs:

      Description

      Doing dsreplication disable --disableAll is throwing a javax.naming.CommunicationException when removing contents of "cn=admin data".

      [1] Enable replication:
      dsreplication enable -n -X --host1 localhost --port1 2444 --bindDN1 cn=Directory Manager --bindPassword1 secret12 --replicationPort1 2989 --host2 localhost --port2 1444 --BindDN2 cn=Directory Manager --bindPassword2 secret12 --replicationPort2 1989 --baseDN dc=europe,dc=com --adminUID admin --adminPassword admin

      Establishing connections ..... Done.
      Checking registration information ..... Done.
      Updating remote references on server localhost:2444 ..... Done.
      Configuring Replication port on server localhost:1444 ..... Done.
      Updating replication configuration for baseDN dc=europe,dc=com on server localhost:2444 ..... Done.
      Updating replication configuration for baseDN dc=europe,dc=com on server localhost:1444 ..... Done.
      Updating registration configuration on server localhost:2444 ..... Done.
      Updating registration configuration on server localhost:1444 ..... Done.
      Updating replication configuration for baseDN cn=schema on server localhost:2444 ..... Done.
      Updating replication configuration for baseDN cn=schema on server localhost:1444 ..... Done.
      Initializing registration information on server localhost:1444 with the contents of server localhost:2444 ..... Done.
      Initializing schema on server localhost:1444 with the contents of server localhost:2444 ..... Done.

      Replication has been successfully enabled. Note that for replication to work you must initialize the contents of the base DN's that are being replicated (use dsreplication initialize to do so).

      See /tmp/opends-replication-603748233450726491.log for a detailed log of this
      operation.

      [2] Init replication
      dsreplication initialize -n -X -h localhost -p 1444 -O localhost --portDestination 2444 -b dc=europe,dc=com -I admin -w admin

      Initializing base DN dc=europe,dc=com with the contents from localhost:1444:
      29 entries processed (100 % complete).
      Base DN initialized successfully.

      See /tmp/opends-replication-7173846912925534621.log for a detailed log of this
      operation.

      [3] Disable replication
      dsreplication disable -n -X -h localhost -p 1444 -I admin -w admin --disableAll
      Establishing connections ..... Done.
      You have decided to disable the replication server (replication changelog).
      After disabling the replication server only one replication server will be
      configured for the following suffixes:
      dc=europe,dc=com
      To avoid a single point of failure at least two replication servers must be
      configured.
      Disabling replication on base DN cn=admin data of server localhost:1444 ..... Done.
      Disabling replication on base DN dc=europe,dc=com of server localhost:1444 ..... Done.
      Disabling replication on base DN cn=schema of server localhost:1444 ..... Done.
      Removing references on base DN cn=admin data of server localhost:2444 ..... Done.
      Removing references on base DN cn=schema of server localhost:2444 ..... Done.
      Removing references on base DN dc=europe,dc=com of server localhost:2444 ..... Done.
      Disabling replication port 1989 of server localhost:1444 ..... Done.
      Removing registration information .....
      Error updating registration information. Details: Registration information
      error. Error type: 'ERROR_UNEXPECTED'. Details:
      javax.naming.CommunicationException: connection closed [Root exception is
      java.io.IOException: connection closed]; remaining name 'cn=Servers,cn=admin
      data'
      See /tmp/opends-replication-1899648229310201681.log for a detailed log of this
      operation.

      Attached /tmp/opends-replication-1899648229310201681.log

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                matthew Matthew Swift
                Reporter:
                gary.williams Gary Williams
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: