Having problem setting a read only replica (different database generation ID)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I had an DS instance with data. I had problem setting a read only replica.
The master server can connect to the slave but it had problem initialize the slave.

I had tried to use the same method to create another slave instance in the master server (using a different port)
Replication does not start. The error message is the same.

For both cases,  the slave instances are brand new, it is empty without any data.

slapd-cms1 (master)
[21/Aug/2018:16:12:16.362357876 +0800] - DEBUG - NSMMReplicationPlugin - repl5_inc_run - agmt="cn=Replication Agreement cms1 to cms1b" (cms1:2389): State: backoff -> backoff
[21/Aug/2018:16:12:16.367449793 +0800] - DEBUG - NSMMReplicationPlugin - conn_connect - agmt="cn=Replication Agreement cms1 to cms1b" (cms1:2389) - Trying non-secure slapi_ldap_init_ext
[21/Aug/2018:16:12:16.369104649 +0800] - DEBUG - NSMMReplicationPlugin - conn_connect - agmt="cn=Replication Agreement cms1 to cms1b" (cms1:2389) - binddn = cn=replicator,cn=config,  passwd = <REDICATED>
[21/Aug/2018:16:12:16.372538122 +0800] - INFO - NSMMReplicationPlugin - bind_and_check_pwp - agmt="cn=Replication Agreement cms1 to cms1b" (cms1:2389): Replication bind with SIMPLE auth resumed
[21/Aug/2018:16:12:16.374333105 +0800] - DEBUG - NSMMReplicationPlugin - conn_cancel_linger - agmt="cn=Replication Agreement cms1 to cms1b" (cms1:2389) - No linger to cancel on the connection
[21/Aug/2018:16:12:16.378484502 +0800] - DEBUG - _csngen_adjust_local_time - gen state before 5b7bc8c70001:1534838983:0:0
[21/Aug/2018:16:12:16.379573648 +0800] - DEBUG - _csngen_adjust_local_time - gen state after 5b7bc9600000:1534839136:0:0
[21/Aug/2018:16:12:16.398745479 +0800] - DEBUG - NSMMReplicationPlugin - acquire_replica - agmt="cn=Replication Agreement cms1 to cms1b" (cms1:2389): Replica was successfully acquired.
[21/Aug/2018:16:12:16.399914497 +0800] - DEBUG - NSMMReplicationPlugin - repl5_inc_run - agmt="cn=Replication Agreement cms1 to cms1b" (cms1:2389): State: backoff -> sending_updates
[21/Aug/2018:16:12:16.402441965 +0800] - WARN - NSMMReplicationPlugin - repl5_inc_run - agmt="cn=Replication Agreement cms1 to cms1b" (cms1:2389): The remote replica has a different database generation ID than the local database.  You may have to reinitialize the remote replica, or the local replica.
[21/Aug/2018:16:12:16.412642556 +0800] - DEBUG - NSMMReplicationPlugin - release_replica - agmt="cn=Replication Agreement cms1 to cms1b" (cms1:2389): Successfully released consumer
[21/Aug/2018:16:12:16.413664186 +0800] - DEBUG - NSMMReplicationPlugin - conn_start_linger -agmt="cn=Replication Agreement cms1 to cms1b" (cms1:2389) - Beginning linger on the connection
[21/Aug/2018:16:12:16.416302958 +0800] - DEBUG - NSMMReplicationPlugin - repl5_inc_run - agmt="cn=Replication Agreement cms1 to cms1b" (cms1:2389): State: sending_updates -> start_backoff
[21/Aug/2018:16:12:19.418319466 +0800] - DEBUG - NSMMReplicationPlugin - repl5_inc_run - agmt="cn=Replication Agreement cms1 to cms1b" (cms1:2389): State: start_backoff -> backoff
[21/Aug/2018:16:12:19.419789083 +0800] - DEBUG - NSMMReplicationPlugin - repl5_inc_run - agmt="cn=Replication Agreement cms1 to cms1b" (cms1:2389): State: backoff -> wait_for_changes
[21/Aug/2018:16:12:45.421513358 +0800] - DEBUG - replication - multimaster_mmr_postop - error 0 for oparation 561.
[21/Aug/2018:16:13:15.436245528 +0800] - DEBUG - replication - multimaster_mmr_postop - error 0 for oparation 561.
[21/Aug/2018:16:13:16.437671170 +0800] - DEBUG - NSMMReplicationPlugin - linger_timeout - agmt="cn=Replication Agreement cms1 to cms1b" (cms1:2389) - Linger timeout has expired on the connection
[21/Aug/2018:16:13:16.438990759 +0800] - DEBUG - NSMMReplicationPlugin - close_connection_internal - agmt="cn=Replication Agreement cms1 to cms1b" (cms1:2389) - Disconnected from the consumer

slapd-cms1b (slave)
[21/Aug/2018:16:11:48.532245798 +0800] - INFO - slapd_daemon - slapd started.  Listening on All Interfaces port 2389 for LDAP requests
[21/Aug/2018:16:11:48.534478125 +0800] - INFO - slapd_daemon - Listening on /var/run/slapd-cms1b.socket for LDAPI requests
[21/Aug/2018:16:11:50.617214069 +0800] - DEBUG - replication - multimaster_mmr_postop - error 0 for oparation 561.
[21/Aug/2018:16:12:16.383019206 +0800] - DEBUG - NSMMReplicationPlugin - consumer_connection_extension_acquire_exclusive_access - conn=1 op=3 Acquired consumer connection extension
[21/Aug/2018:16:12:16.385344779 +0800] - DEBUG - NSMMReplicationPlugin - multimaster_extop_StartNSDS50ReplicationRequest - conn=1 op=3 repl="dc=local,dc=nonet": Begin incremental protocol
[21/Aug/2018:16:12:16.387493146 +0800] - DEBUG - csngen_adjust_time - gen state before 5b7bc9440001:1534839108:0:0
[21/Aug/2018:16:12:16.388905774 +0800] - DEBUG - _csngen_adjust_local_time - gen state before 5b7bc9440001:1534839108:0:0
[21/Aug/2018:16:12:16.390557696 +0800] - DEBUG - _csngen_adjust_local_time - gen state after 5b7bc9600000:1534839136:0:0
[21/Aug/2018:16:12:16.392326474 +0800] - DEBUG - csngen_adjust_time - gen state after 5b7bc9600001:1534839136:0:0
[21/Aug/2018:16:12:16.394008974 +0800] - DEBUG - NSMMReplicationPlugin - replica_get_exclusive_access - conn=1 op=3 repl="dc=local,dc=nonet": Acquired replica
[21/Aug/2018:16:12:16.395846688 +0800] - DEBUG - NSMMReplicationPlugin - multimaster_extop_StartNSDS50ReplicationRequest - conn=1 op=3 repl="dc=local,dc=nonet": StartNSDS90ReplicationRequest: response=0 rc=0
[21/Aug/2018:16:12:16.397719862 +0800] - DEBUG - NSMMReplicationPlugin - consumer_connection_extension_relinquish_exclusive_access - conn=1 op=3 Relinquishing consumer connection extension
[21/Aug/2018:16:12:16.404985230 +0800] - DEBUG - NSMMReplicationPlugin - consumer_connection_extension_acquire_exclusive_access - conn=1 op=4 Acquired consumer connection extension
[21/Aug/2018:16:12:16.407091172 +0800] - DEBUG - replication - multimaster_mmr_postop - error 0 for oparation 561.
[21/Aug/2018:16:12:16.409703770 +0800] - DEBUG - NSMMReplicationPlugin - replica_relinquish_exclusive_access - conn=1 op=4 repl="dc=local,dc=nonet": Released replica held by locking_purl=conn=1 id=3
[21/Aug/2018:16:12:16.411965844 +0800] - DEBUG - NSMMReplicationPlugin - consumer_connection_extension_relinquish_exclusive_access - conn=1 op=4 Relinquishing consumer connection extension

Thanks.
_______________________________________________
389-users mailing list -- 389-users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to 389-users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/389-users@xxxxxxxxxxxxxxxxxxxxxxx/message/YZZWK7PBRPRQIQFUGURHKHPDMWBFFFDE/




[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux