11.25. Troubleshooting Replication-Related Problems
8192, which is replication debugging. See Section 15.3.5, “Configuring Log Levels”.
ldapmodify -D "cn=directory manager" -W -p 389 -h server.example.com -x dn: cn=config changetype: modify replace: nsslapd-errorlog-level nsslapd-errorlog-level: 8192
cl-dump.plscript, which is explained in detail in the Directory Server Configuration and Command-Line Tool Reference can also help troubleshoot replication-related problems. Depending on the usage options, the script can selectively dump a particular replica:
- Dump the contents of a
replication-change-logfile and in-memory variables
- Grep and interpret change state numbers (CSNs) in the changelog.
- Get the base-64 encoded changelog from the Directory Server, and then decode the changelog.
Table 11.7. Replication Errors
|agmt=%s (%s:%d) Replica has a different generation ID than the local data||The consumer specified at the beginning of this message has not been (successfully) initialized yet, or it was initialized from a different root supplier.||The local supplier will not replicate any data to the consumer.||Ignore this message if it occurs before the consumer is initialized. Otherwise, reinitialize the consumer if the message is persistent. In a multi-master environment, all the servers should be initialized only once from a root supplier, directly or indirectly. For example, M1 initializes M2 and M4, M2 then initializes M3, and so on. The important thing to note is that M2 must not start initializing M3 until M2's own initialization is done (check the total update status from the M1's Console or M1 or M2's error log). Also, M2 should not initialize M1 back.|
|Warning: data for replica's was reloaded, and it no longer matches the data in the changelog. Recreating the changelog file. This could affect replication with replica's consumers, in which case the consumers should be reinitialized.||This message may appear only when a supplier is restarted. It indicates that the supplier was unable to write the changelog or did not flush out its RUV at its last shutdown. The former is usually because of a disk-space problem, and the latter because a server crashed or was ungracefully shut down.|| The server will not be able to send the changes to a consumer if the consumer's ||Check the disk space and the possible core file (under the server's logs directory). If this is a single-master replication, reinitialize the consumers. Otherwise, if the server later complains that it can not locate some CSN for a consumer, see if the consumer can get the CSN from other suppliers. If not, reinitialize the consumer.|
|agmt=%s(%s:%d): Cannot locate CSN %s in the changelog (DB rc=%d). The consumer may need to be reinitialized.||Most likely the changelog was recreated because of the disk is full or the server ungracefully shutdown.||The local server will not be able to send any more change to that consumer until the consumer is reinitialized or gets the CSN from other suppliers.||If this is a single-master replication, reinitialize the consumers. Otherwise, see if the consumer can get the CSN from other suppliers. If not, reinitialize the consumer.|
|Too much time skew||The system clocks on the host machines are extremely out of sync.||The system clock is used to generate a part of the CSN. In order to reflect the change sequence among multiple suppliers, suppliers would forward-adjust their local clocks based on the remote clocks of the other suppliers. Because the adjustment is limited to a certain amount, any difference that exceeds the permitted limit will cause the replication session to be aborted.|| Synchronize the system clocks on the Directory Server host machines. If applicable, run the network time protocol (|
|agmt=%s(%s:%d): Warning: Unable to send endReplication extended operation (%s)||The consumer is not responding.||If the consumer recovers without being restarted, there is a chance that the replica on the consumer will be locked forever if it did not receive the release lock message from the supplier.||Watch if the consumer can receive any new change from any of its suppliers, or start the replication monitor, and see if all the suppliers of this consumer warn that the replica is busy. If the replica appears to be locked forever and no supplier can get in, restart the consumer.|
|Changelog is getting too big.||Either changelog purge is turned off, which is the default setting, or changelog purge is turned on, but some consumers are way behind the supplier.|| By default changelog purge is turned off. To turn it on from the command line, run |
ldapmodify -D "cn=directory manager" -W -p 389 -h server.example.com -x dn: cn=changelog5,cn=config changetype: modify add: nsslapd-changelogmaxage nsslapd-changelogmaxage: 1d
With changelog purge turned on, a purge thread that wakes up every five minutes will remove a change if its age is greater than the value of
If it appears that the changelog is not purged when the purge threshold is reached, check the maximum time lag from the replication monitor among all the consumers. Irrespective of what the purge threshold is, no change will be purged before it is replayed by all the consumers.
|The Replication Monitor is not responding. (For information on Replication Monitor, see Section 11.22, “Monitoring Replication Status”.)||The SSL port is specified in some replication agreement, but the certificate database is not specified or not accessible by the Replication Monitor. If there is no SSL port problem, one of the servers in the replication topology might hang.|| Map the SSL port to a non-SSL port in the configuration file of the Replication Monitor. For example, if 636 is the SSL port and 389 is the non-SSL port, add the following line in the |
|In the Replication Monitor, some consumers show just the header of the table. (For information on Replication Monitor, see Section 11.22, “Monitoring Replication Status”.)|| No change has originated from the corresponding suppliers. In this case, the ||There is nothing wrong if there is no change originated from a supplier.|