My Oracle Support Banner

OUD11g: Replication Command "dsreplication" with "initialize" or "initialize-all" Fails in First Attempt or First Run (Doc ID 2240582.1)

Last updated on MARCH 29, 2023

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 "<Suffix_DN>" --adminUID replmgr --adminPasswordFile /oracle/local/ps/repl.txt --hostSource <HOSTNAME1> --portSource <admin_port> --hostDestination <HOSTNAME2> --portDestination <admin_port> -X -n

 + Example : part of log file content :

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

Initializing base DN <Suffix_DN> with the contents from
<HOSTNAME1>:<admin_port>:
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 <Suffix_DN>. Last log details: [13/Feb/2017:20:27:20 -0700] severity="NOTICE" msgCount=0 msgID=9896349 message="Initialize Backend task Initialize server <HOSTNAME2>:<admin_port> with server <HOSTNAME1>:<admin_port> for base DN <Suffix_DN>-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 <Suffix_DN> 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 <Suffix_DN> 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 <HOSTNAME2>:<admin_port> with server <HOSTNAME1>:<admin_port> for base DN <Suffix_DN>-6 finished execution". Task state: stopped_by_error. Check the error logs of <HOSTNAME1>:<admin_port> 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

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.