附录 B. 复制协议状态
在每个复制协议的只读 nsds5replicaLastUpdateStatus 属性中,Directory 服务器会显示协议的最新状态。以下是可能的状态列表:
- 禁用的协议
如果禁用了复制协议,nsds
5replicaLastUpdateStatus参数将不再更新,并可以显示以下状态:当服务器启动时,复制协议已被禁用:
Error (0) No replication sessions started since server startup该协议在运行时被禁用。
Error (0) Replica acquired successfully: agreement disabled
- 常规协议状态
{blank}复制协议已停止:
Error (0) Replica acquired successfully: Protocol stopped启动增量更新:
Error (0) Replica acquired successfully: Incremental update started增量更新成功:
Error (0) Replica acquired successfully: Incremental update succeeded复制成功,但消费者终止了会话,以便能够被其他供应商获取:
Error (0) Replica acquired successfully: Incremental update succeeded and yielded
ACQUIRING_REPLICA状态中的错误消息在复制会话的第一个部分,供应商获取消费者,建立连接,绑定到消费者,验证消费者是否尚未由其他供应商更新,并执行额外的检查。以下错误代码可在此状态中显示:
在与消费者建立连接过程中失败:
Error (result_code) Problem connecting to replica - LDAP error: ldap_error_messageError (result_code) Problem connecting to replica (SSL not enabled) - LDAP error: ldap_error_message结果代码和错误消息指示无法建立连接的原因。
消费者中发生了内部错误:
Error (8) :Failed to acquire replica: Internal error occurred on the remote replica此错误是由消费者中更改序列号(CSN)生成器相关的故障造成的。详情请查看消费者日志文件。
用于向消费者进行身份验证的身份既不是有效的复制绑定区分名称(DN),也不是绑定 DN 组的成员:
Error (3) :Unable to acquire replica: permission denied. The bind dn does not have permission to supply replication updates to the replica. Will retry later.对于消费者上的后缀,没有定义有效的副本:
Error (6) :Unable to acquire replica: there is no replicated area on the consumer server. Replication is aborting.解码发送到消费者的复制控制错误:
Error (4) :Unable to acquire replica: the consumer was unable to decode the startReplicationRequest extended operation sent by the supplier. Replication is aborting.副本目前由不同的供应商更新:
Error (1) :Unable to acquire replica: the replica is currently being updated by another supplier.供应商和消费者使用相同的副本 ID:
Error (11) :Unable to aquire replica: the replica has the same Replica ID as this one. Replication is aborting.供应商或消费者被错误地配置。在复制配置中设置唯一副本 ID 以修复问题。
供应商被设置为
backoff模式:Error (14) :Unable to acquire replica: the replica instructed us to go into backoff mode. Will retry later.只有在实施了自定义复制 hook 时,才会显示此状态。
解码从消费者接收的复制控制错误:
Error (extop_result) :Unable to acquire replicaError (4) Unable to parse the response to the startReplication extended operation. Replication is aborting.Error (16) Unable to receive the response for a startReplication extended operation to consumer. Will retry later.Error (0) Unable to obtain current CSN. " "Replication is aborting.
- 处于
SENDING_UPDATES状态的错误消息 成功获取副本后,会话开始发送更新。在这个状态中,以下信息可在相应的步骤中显示:
检查副本更新向量(RUV):
副本没有配置更新向量,或在消费者上没有启用复制:
Error (19) : Replica is not initialized消费者没有使用与供应商相同的数据库生成初始化:
Error (19) : Replica has different database generation ID, remote replica may need to be initialized要解决这个问题,请初始化供应商或消费者。
更新更改状态号(CSN)生成器:
本地和删除服务器之间的时间差太大:
Error (2) : fatal error - too much time skew between replicas目录服务器无法更新 CSN 生成器:
Error (2) : fatal internal error updating the CSN generator
初始更改日志位置:
无法处理 changelog 的一般错误:
Error (15) : Unexpected format encountered in changelog database例如,当 changelog 文件的路径不存在时,会记录此错误。
解析 changelog 中的条目失败:
Error (15) : Unexpected format encountered in changelog database与更改日志的数据库层相关的错误:
Error (15) : Changelog database was in an incorrect stateError (15) : Incorrect dbversion found in changelog databaseError (15) : Changelog database error was encountered详情请查看
/var/log/dirsrv/slapd-instance_name/errors日志文件。目录服务器无法分配内存:
Error (15) : changelog memory allocation error occurred例如,如果 changelog 缓冲区或更改日志器无法分配内存,则这个错误会被记录。
供应商早于消费者,希望发送更新,但不能在更改日志中找到起点:
Error (15) : Data required to update replica has been purged from the changelog. " "The replica must be reinitialized.Error (15) : Changelog data is missing目录服务器将这些错误视为致命,但如果消费者从不同供应商接收更新,则可以解决这个问题。在这种情况下,它被视为临时。
发送下一次更新:
创建结果线程失败:
Error (result_code) : Failed to create result thread结果代码表示线程没有创建的原因。
无法处理 changelog 的一般错误:
Error (15) : Invalid parameter passed to cl5GetNextOperationToReplay例如,当 changelog 文件的路径不存在时,会记录此错误。
读取更改日志时出现数据库错误:
Error (15) : Database error occurred while getting the next operation to replay此事件会被记录,例如,如果 Directory Server 访问锁定的数据库页面。
目录服务器退出创建 :
Error (15) : Memory allocation error occurred (cl5GetNextOperationToReplay)
子条目更新:
创建
副本会保持实时条目失败:Error (-1) : Agreement is corrupted: missing suffixSEND_UPDATES状态的一般状态:在处理 changelog 时,本地服务器中会出现非严重错误:
Error (18) : Incremental update transient error. Backing off, will retry update later.详情请查看
/var/log/dirsrv/slapd-instance_name/errors文件。建立连接在建立连接后断开连接:
Error (16) : Incremental update connection error. Backing off, will retry update later.在现有复制连接中会出现超时:
Error (17) : Incremental update timeout error. Backing off, will retry update later.复制会自动尝试稍后恢复。