OUD11g: Replication Dsreplication Initialize or Intialize-all Fails in First Attempt or First Run (Doc ID 2240582.1)

Last updated on MARCH 05, 2017

Applies to:

Oracle Unified Directory - Version 11.1.2.3.1 and later
Information in this document applies to any platform.

Symptoms

OUD 11.1.2.3.1.
Had run command to initialize replication as below

$OUD_INSTANCE/OUD/bin/dsreplication initialize --baseDN "dc=oracle,dc=com" --adminUID replmgr --adminPasswordFile /oracle/local/ps/repl.txt --hostSource raju1.oracle.com --portSource 4444 --hostDestination raju2.oracle.com --portDestination 4444 -X -n

 + Example : part of log file content :

Establishing connections and reading configuration ...... Done.

Initializing base DN dc=oracle,dc=com with the contents from
raju1.oracle.com:4444:
933 entries processed (2.06% complete).
> Time elapsed: 1 seconds.
1588 entries processed (3.51% complete).
> Time elapsed: 17 seconds.
25280 entries processed (55.86% complete).
> Time elapsed: 27 seconds.

.....

SEVERE: org.opends.server.tools.replication.common.ReplicationToolException: Unexpected error during the initialization of suffix dc=oracle,dc=com. Last log details: [13/Feb/2017:20:27:20 -0700] severity="NOTICE" msgCount=0 msgID=9896349 message="Initialize Backend task Initialize server raju2.oracle.com:4444 with server raju1.oracle.com:4444 for base DN dc=oracle,dc=com-6 started execution"
[13/Feb/2017:20:27:20 -0700] severity="NOTICE" msgCount=1 msgID=15138959 message="Local directory server 9868 is starting online full update for exporting 45253 entries from suffix dc=oracle,dc=com to remote directory server 29863"
[13/Feb/2017:20:27:20 -0700] severity="INFORMATION" msgCount=2 msgID=8388850 message="The export will be done in Entry ID Order"
[13/Feb/2017:20:27:30 -0700] severity="NOTICE" msgCount=3 msgID=8847448 message="Exported 952 records and skipped 0 (recent rate 95.2/sec)"
[13/Feb/2017:20:27:40 -0700] severity="NOTICE" msgCount=4 msgID=8847448 message="Exported 4180 records and skipped 0 (recent rate 322.8/sec)"
[13/Feb/2017:20:27:50 -0700] severity="NOTICE" msgCount=5 msgID=8847448 message="Exported 50158 records and skipped 0 (recent rate 4597.8/sec)"
[13/Feb/2017:20:27:52 -0700] severity="NOTICE" msgCount=6 msgID=8847447 message="Exported 55861 entries and skipped 0 in 32 seconds (average rate 1718.3/sec)"
[13/Feb/2017:20:28:25 -0700] severity="NOTICE" msgCount=7 msgID=15138960 message="Local directory server 9868 has finished online full update for exporting suffix data dc=oracle,dc=com to remote directory server 29863. The following servers did not end initialization being connected with the right generation (1467875542). They are potentially stopped or too slow. Servers list: [10047]"
[13/Feb/2017:20:28:25 -0700] severity="SEVERE_ERROR" msgCount=8 msgID=14942402 message="The following servers did not end initialization being connected with the right generation (1467875542). They are potentially stopped or too slow. Servers list: [10047]"

 ...

[13/Feb/2017:20:28:25 -0700] severity="NOTICE" msgCount=7 msgID=15138960 message="Local directory server 9868 has finished online full update for exporting suffix data dc=oracle,dc=com to remote directory server 29863. The following servers did not end initialization being connected with the right generation (1467875542). They are potentially stopped or too slow. Servers list: [10047]"
[13/Feb/2017:20:28:25 -0700] severity="SEVERE_ERROR" msgCount=8 msgID=14942402 message="The following servers did not end initialization being connected with the right generation (1467875542). They are potentially stopped or too slow. Servers list: [10047]"
[13/Feb/2017:20:28:25 -0700] severity="NOTICE" msgCount=9 msgID=9896350 message="Initialize Backend task Initialize server raju2.oracle.com:4444 with server raju1.oracle.com:4444 for base DN dc=oracle,dc=com-6 finished execution". Task state: stopped_by_error. Check the error logs of raju1.oracle.com:4444 for more information.
at org.opends.server.tools.replication.common.AbstractSubcommandExecutor.handleInitializationError(AbstractSubcommandExecutor.java:2012)
at org.opends.server.tools.replication.common.AbstractSubcommandExecutor.initializeSuffix(AbstractSubcommandExecutor.java:2155)
at org.opends.server.tools.replication.common.AbstractSubcommandExecutor.initializeSuffix(AbstractSubcommandExecutor.java:1253)
at org.opends.server.tools.replication.dsreplication.InitializeExecutor.initialize(InitializeExecutor.java:435)

 

 


+. By the way, the initialization of replication finally works after giving a second attempt or second run of the same above failing command.

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms