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

Error when adding a new server in replicated topology

    Details

      Description

      Found with OpenDJ 4.0.0 rev bc494fc6543

      We setup 2 servers, encrypt database and indexes, enable replication for 2 suffixes and check everything is in sync.

      Afterwards we add a new server with database and indexes encrypted in the topology, enabling replication for the first suffix.
      We create the second suffix, enable replication for this new suffix and initialize-all:

      ./DJ1/opendj/bin/dsreplication initialize-all -h openam.example.com -p 4444 -b dc=com -I admin -w password  -X -n
      
      20160607 12:05:39.225 - FAIL - CmdException: ERROR:
      -- rc --
      returned 12, expected 0
      -- stdout --
      
      Initializing base DN dc=com with the contents from openam.example.com:4444:
      0 entries processed (0 % complete).
      
      -- stderr --
      
      Error during the initialization with contents from server
      openam.example.com:4444. Last log details: [07/Jun/2016:12:05:37 +0200]
      severity="NOTICE" msgCount=0 msgID=org.opends.messages.backend-413
      message="Initialize Backend task dsreplication-initialize-2 started
      execution". Task state: STOPPED_BY_ERROR. Check the error logs of
      openam.example.com:4444 for more information.
      See /tmp/opendj-replication-5804135451769034679.log for a detailed log of this
      operation.
      Details: com.forgerock.opendj.cli.ClientException: Error during the
      initialization with contents from server openam.example.com:4444. Last log
      details: [07/Jun/2016:12:05:37 +0200] severity="NOTICE" msgCount=0
      msgID=org.opends.messages.backend-413 message="Initialize Backend task
      dsreplication-initialize-2 started execution". Task state: STOPPED_BY_ERROR.
      Check the error logs of openam.example.com:4444 for more information.
      

      we got errors in logs:

      [ WARN ] (ERROR) [07/Jun/2016:12:05:38 +0200] category=TASK severity=ERROR msgID=org.opends.messages.backend.99 msg=An error occurred while executing the task defined in entry ds-task-id=dsreplication-initialize-2,cn=Scheduled Tasks,cn=Tasks:  DirectoryException: The following servers did not acknowledge initialization in the expected time for domain dc=com. They are potentially down or too slow. Servers list: [31063] (ReplicationDomain.java:1530 LDAPReplicationDomain.java:1518 ReplicationDomain.java:1430 InitializeTargetTask.java:111 Task.java:965 TaskThread.java:179)
      

      see script in attachment

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fabiop Fabio Pistolesi
                Reporter:
                cforel carole forel
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: