大网数据广告活动
域与目录服务

Guidance for troubleshooting Active Directory replication

· 52CE 我爱测

Introduces general guidance for troubleshooting scenarios related to Active Directory replication.

<a class="button is-primary" href="https://vsa.services.microsoft.com/v1.0/?partnerId=7d74cf73-5217-4008-833f-87a1a278f2cb&flowId=DMC&initialQuery=31806222" target='_blank'><b>Try our Virtual Agent</b></a> - It can help you quickly identify and fix common Active Directory replication issues

Summary

Active Directory replication ensures that changes to directory objects are distributed across all domain controllers in your environment. When replication fails, directory data becomes inconsistent, which can affect authentication, authorization, and other directory-dependent services.

This article helps you diagnose and fix common Active Directory replication issues. it includes a systematic troubleshooting checklist, descriptions of common issues, and links to detailed solutions.

Before you begin troubleshooting, make sure that you have administrative access to the affected domain controllers and that you know basic Active Directory concepts.

Troubleshooting checklist

Use the following checklist to troubleshoot these replication issues:

  • The error and warning events in the Directory Service event log indicate the specific constraint that's causing replication failure on the source or destination domain controller. If the event message suggests steps for a solution, try the steps that are described in the event.

  • Diagnostic tools such as Repadmin also provide information that can help you resolve replication failures. To help monitor replication and diagnose errors, download and run the Microsoft Support and Recovery Assistant tool.

  • Rule out intentional disruptions or hardware failures.

  • In a scenario: A domain controller is built in a staging site. The domain controller is currently offline, and is waiting for its deployment in the final production site, a remote site such as a branch office.

    When another domain controller is trying to replicate to the domain controller, it reports replication errors. You can account for such replication errors.

  • Replication problems might be caused by hardware failure.

  • Active Directory replication remote procedure calls (RPCs) occur dynamically over an available port through the RPC Endpoint Mapper (RPCSS) on port 135. Make sure that Windows Firewall with Advanced Security and other firewalls are configured correctly to enable replication.

After you rule out intentional disconnections and hardware failures, the replication issues might have one of the following causes:

  • Network connectivity: The network connection might be unavailable, or network settings might not be configured correctly.
  • Name resolution: Domain name system (DNS) misconfigurations are a common cause of replication failures.
  • Replication engine: If intersite replication schedules are too short, replication queues might be too large to process in the time that is required by the outbound replication schedule. In this case, replication of some changes might be stalled indefinitely, or long enough to exceed the tombstone lifetime.
  • Replication topology: Domain controllers must have intersite links in Active Directory Domain Services (AD DS) that map to real wide area network (WAN) or virtual private network (VPN) connections. If you create objects for the replication topology in AD DS that aren't supported by the actual site topology of your network, replication that requires the misconfigured topology fails.
  • Authentication and authorization: Authentication and authorization problems cause "access denied" errors when a domain controller tries to connect to its replication partner.
  • Directory database store: The directory database might not be able to process transactions fast enough to keep up with replication timeouts.

Common solutions for Active Directory replication issues

  • Monitor replication health daily, or use Repadmin to retrieve replication status daily.
  • Try to resolve any reported failure in a timely manner by using the methods that are described in the event messages and this guide. If software is causing the problem, uninstall the software before you continue to try other solutions.
  • If the problem that's causing replication to fail can't be resolved by any known methods, remove AD DS from the server, and then reinstall it. For more information about reinstalling AD DS, see Decommissioning a Domain Controller.
  • If AD DS can't be removed in a typical manner while the server is connected to the network, use one of the following methods to resolve the problem:
    • Force AD DS removal in Directory Services Restore Mode (DSRM), clean up server metadata, and then reinstall AD DS.
    • Reinstall the operating system, and rebuild the domain controller.

Common issues and solutions

Most replication problems are identified in the event messages that are logged in the Directory Service event log. Replication problems might also be identified in the form of error messages in the output of the repadmin /showrepl command.

Event ID 2042

Repadmin message:

The time since last replication with this server has exceeded the tombstone lifetime.

A domain controller failed inbound replication to the named source domain controller long enough for a deletion to have been tombstoned, replicated, and garbage-collected from AD DS. See Active Directory replication Event ID 2042.

Event ID 1925

Repadmin message:

No inbound neighbors

If no items appear in the "Inbound Neighbors" section of the output that repadmin /showrepl generates, the domain controller wasn't able to establish replication links to another domain controller. See Active Directory replication Event ID 1925.

Error code 5

Repadmin message:

Access is denied.

A replication link exists between two domain controllers, but replication can't be done correctly because of an authentication failure. See Active Directory replication fails with error 5: Access is denied.

Error code 49

Repadmin message:

LDAP Error 49.

The domain controller computer account might not be synchronized with the Key Distribution Center (KDC). Fix replication security issues.

Event ID 1925 and event ID 2087

Repadmin message:

Cannot open LDAP connection to local host.

The administration tool couldn't contact AD DS. See the following articles:

Event ID 1925, Event ID 2087, and Event ID 2088

Repadmin message:

Last attempt at <date - time> failed with the "Target account name is incorrect."

This problem can be related to connectivity, DNS, or authentication issues. If this error is a DNS error, the local domain controller couldn't resolve the globally unique identifier (GUID)-based DNS name of its replication partner. See the following articles:

Data collection

If you need assistance from Microsoft support, we recommend you collect the information by following the steps mentioned in Gather information by using TSS for Active Directory replication issues.

Reference

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Server · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。