Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article describes an issue where Active Directory Replications fail with error 8333: Directory object not found (ERROR_DS_OBJ_NOT_FOUND).
Original KB number: 2703708
Symptoms
This article describes the symptoms, cause, and resolution steps when Active Directory replication fails with error 8333: Directory object not found (ERROR_DS_OBJ_NOT_FOUND).
Possible formats for the error include:
Decimal Hex Symbolic Error string 8333 0x208d ERROR_DS_OBJ_NOT_FOUND Directory object not found. The following events could be logged
Event Source Event ID Event String NTDS Replication 2108 This event contains REPAIR PROCEDURES for the 1084 event that has previously been logged. This message indicates a specific issue with the consistency of the Active Directory database on this replication destination. A database error occurred while applying replicated changes to the following object. The database had unexpected contents, preventing the change from being made. Object: OU=TestOU,DC=contoso,DC=com Object GUID: <GUID> Source domain controller: A52b57e3-92b9-4264-822b-72963eaf1030._msdcs.contoso.com Additional Data Primary Error value: 8333 Directory object not found. Secondary Error value: -1601 JET_errRecordNotFound, The key was not found
NTDS General2031 The DS Service Configuration object is not found. It might have been accidentally deleted. The Active Directory will be able to operate normally, but you will not be able to set certain service parameters, such as LDAP limits, default query policies, and SPN mappings. DS Service Configuration object: CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration,DC=contoso,DC=com Error: 8333 (Directory object not found.) User Action: Try to restore the DS Service Configuration object. There may be output from
repadmin /replsumDC-1-03 03h:14m:11s 1 / 52 1 (8333) Directory object not found.
DC-2-01 03h:13m:39s 1 / 26 3 (8333) Directory object not found.
DC-3-09 03h:08m:45s 2 / 103 1 (8333) Directory object not found.
DC-4-03 03h:05m:52s 1 / 13 7 (8333) Directory object not found.DCPromo may fail while promoting a new domain controller and you'll see the following errors in the DCPROMO log
<DateTime> [INFO] Creating new domain users, groups, and computer objects
<DateTime> [INFO] Error - Active Directory is missing critical information after installation and cannot continue. If this is a replica domain controller, rejoin this server to the domain. (8333)
<DateTime> [INFO] NtdsInstall forcontoso.comreturned 8333
<DateTime> [INFO] DsRolepInstallDs returned 8333
<DateTime> [ERROR] Failed to install to Directory Service (8333)Note
Error 8333 translates to ERROR_DS_OBJ_NOT_FOUND or "Directory object not found."
While trying to rehost a partition on the Global catalog
repadmin /rehost \<dc-name>\<partition to rehost>\<good source>repadmin /rehost failed with DsReplicaAdd failed with status 8333 (0x208d)
Cause
The error status 8333 "Directory Object Not Found" has multiple root causes including:
Database corruption with additional associated errors logged in the event log of the source domain controller:
Source Event ID Description NTDS Replication 2108 This event contains REPAIR PROCEDURES for the 1084 event that has previously been logged. This message indicates a specific issue with the consistency of the Active Directory Domain Services database on this replication destination. A database error occurred while applying replicated changes to the following object. The database had unexpected contents, preventing the change from being made.Object: CN=chduffey,OU=IT,OU=Corp,DC=contoso,DC=com
Object GUID: <GUID>
Source domain controller: c4efaf4e-d652-4630-8623-afec5ebc8532._msdcs.contso.comAdditional Data
Primary Error value: 8333 Directory Object Not Found.NTDS General 1168 Error -1073741790(c0000022) has occurred (Internal ID 3000b3a). Please contact Microsoft Product Support Services for assistance. Microsoft-Windows-
ActiveDirectory_DomainService1084 Internal event: Active Directory could not update the following object with changes received from the following source domain controller. This is because an error occurred during the application of the changes to Active Directory on the domain controller. NTDS Replication 1699 The local domain controller failed to retrieve the changes requested for the following directory partition. As a result, it was unable to send the change requests to the domain controller at the following network address. 8446 The replication operation failed to allocate memory Additionally you may see replication status code:
Code Sources Additional Information 8451 Repadmin, DcPromo, as subcode in Database Corruption Events Refer to the troubleshooting guide for 8451 in the first instance if this error is identified.
2645996Lingering Objects with associated errors logged:
Source Event ID Description NTDS Replication 1988 Active Directory Replication encountered the existence of objects in the following partition that have been deleted from the local domain controllers (DCs) Active Directory database. Not all direct or transitive replication partners replicated in the deletion before the tombstone lifetime number of days passed. Objects that have been deleted and garbage collected from an Active Directory partition but still exist in the writable partitions of other DCs in the same domain, or read-only partitions of global catalog servers in other domains in the forest are known as "lingering objects". NTDS Replication 1388 Another domain controller (DC) has attempted to replicate into this DC an object that's not present in the local Active Directory database. The object may have been deleted and already garbage collected (a tombstone lifetime or more has past since the object was deleted) on this DC. The attribute set included in the update request isn't sufficient to create the object. The object will be re-requested with a full attribute set and re-created on this DC. Additionally you may see the following replication status codes:
Source Sources Description 8606 Repadmin, DCPromo, sub code in NTDS Replication events Refer to the troubleshooting guide for 8606 in the first instance if this error is identified. 2028495 1722 Repadmin, DCPromo, sub code in NTDS Replication events Refer to the troubleshooting guide for 1722 in the first instance if this error is identified. 2102154 Conflict Objects
Third-Party process
- Antivirus
- Directory synchronization software
Resolution
Investigation of the 8333 "Directory Object Not Found" error message should begin on the source domain controller in the replication partnership. Referring to each of the possible causes of the issue from the "cause" section of this document, a support professional should begin their investigation on the source of the source/destination replication partnership.
Check for indications of Active Directory (JET) Database corruption:
Review the Directory Services event log on the source and destination replication partners for JET database corruption events. Possible events include:
Source Event ID Description NTDS Replication 2108 This event contains REPAIR PROCEDURES for the 1084 event that has previously been logged. This message indicates a specific issue with the consistency of the Active Directory Domain Services database on this replication destination. A database error occurred while applying replicated changes to the following object. The database had unexpected contents, preventing the change from being made.Object: CN=chduffey,OU=IT,OU=Corp,DC=contoso,DC=com
Object GUID: <GUID>
Source domain controller: c4efaf4e-d652-4630-8623-afec5ebc8532._msdcs.contso.comAdditional Data
Primary Error value: 8333 Directory Object Not Found.NTDS General 1168 Error -1073741790(c0000022) has occurred (Internal ID 3000b3a). Please contact Microsoft Product Support Services for assistance. Microsoft-Windows-
ActiveDirectory_DomainService1084 Internal event: Active Directory could not update the following object with changes received from the following source domain controller. This is because an error occurred during the application of the changes to Active Directory on the domain controller. NTDS Replication 1699 The local domain controller failed to retrieve the changes requested for the following directory partition. As a result, it was unable to send the change requests to the domain controller at the following network address. 8446 The replication operation failed to allocate memory Additionally you may see replication status code:
Code Sources Additional Information 8451 Repadmin, DcPromo, as subcode in Database Corruption Events Refer to the troubleshooting guide for 8451 in the first instance if this error is identified.
2645996Enable advanced directory services replication logging:
Important
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in WindowsTo increase NTDS diagnostic logging, change the following REG_DWORD values in the registry of the destination domain controller under the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NTDS\Diagnostics
Set the value of the following subkeys to 5:
5 Replication Events
9 Internal Processing
Note Level 5 logging is extremely verbose and the values of both subkeys should be set back to the default of 0 after the problem is resolved. Filtering the Directory Services event log should be performed to isolate and identify these events.Review the event logs for the new events that were generated from the increased logging for error values that will give a definitive view of the Database Corruption.
If database corruption has been detected, ensure that recent backups exist of each domain in the forest.
Restart the domain controller reporting the database corruption in directory services restore mode. (Press F8 while the server is restarting, or if this isn't possible, open msconfig.exe and select Active Directory repair in the Boot options.)
To perform an inspection of the database in Directory Services Restore Mode:
- Open a command prompt
- Type
ntdsutil - Type
activate instance ntds - Type
Semantic database analysis - Type
go
If errors are detected they'll be displayed to the console and written to a log file in the current working directory.
If database corruption errors are detected, you're advised to contact Microsoft Support Services.
Note
To boot the domain controller normally after performing the inspection of the database in Directory Services Restore Mode, type the
bcdedit /deletevalue safebootcommand from an elevated command prompt or open msconfig.exe and clear the Safe boot box in the Boot options.As a last option. You can demote the domain controller, and promote it again to replace the database and replicate the contents from another server in the domain.
Note
If an Active Directory database has been corrupted in your environment, it's important to consider the source of the corruption to avoid issues in the future. Some of the known causes of such corruption are:
- Failing Hardware: Hard Disk or controller
- Caching: Hard Disk controller
- Out-dated Drivers: Hard Disk controller
- Out-dated Firmware: BIOS, Hard Disk controller, Hard Disk
- Sudden power Loss
Check for the existence of and remove Lingering Objects on all domain controllers in the forest.
There are multiple approaches to check for Lingering Objects, including:
Check for the existence of the following Directory Services events on domain controllers in the forest:
Source Event ID Description NTDS Replication 1988 Active Directory Replication encountered the existence of objects in the following partition that have been deleted from the local domain controllers (DCs) Active Directory database. Not all direct or transitive replication partners replicated in the deletion before the tombstone lifetime number of days passed. Objects that have been deleted and garbage collected from an Active Directory partition but still exist in the writable partitions of other DCs in the same domain, or read-only partitions of global catalog servers in other domains in the forest are known as "lingering objects". NTDS Replication 1388 Another domain controller (DC) has attempted to replicate into this DC an object that's not present in the local Active Directory database. The object may have been deleted and already garbage collected (a tombstone lifetime or more has past since the object was deleted) on this DC. The attribute set included in the update request isn't sufficient to create the object. The object will be re-requested with a full attribute set and re-created on this DC. Additionally you may see the following replication status codes:
Code Sources Additional Information 8451 Repadmin, DcPromo, as subcode in Database Corruption Events Refer to the troubleshooting guide for 8451 in the first instance if this error is identified.
2645996Examine the forest for lingering objects.
The preferred method to detect and remove lingering objects is using Lingering Object Liquidator v2 (LoLv2).
For more information about LoLv2, see:
- Lingering Object Liquidator (LoL)
- Introducing Lingering Object Liquidator v2
- Description of the Lingering Object Liquidator tool
In some cases where LoLv2 can't be used, you can use Repadmin.exe. You can do this by running the
repadmin /removelingeringobjectscommand in advisory mode, as described in Identify lingering objects.
Check for the existence of and remove conflict objects:
a. Search the relevant directory partitions for CNF-managed objects and the object that the conflict-mangled object conflicted with the following syntax:repadmin /showattr localhost "dc=parent,dc=com" /subtree /filter:"((&(objectClass=*)(cn=*\0acnf:*)))" /atts:objectclass,whencreated,whenchangedIn this example "dc=parent,dc=com" is the distinguished name for the
parent.comdomain.In most circumstances the 8333 error will indicate which directory partition(s) should be evaluated for conflict objects. It's recommended that the configuration partition is checked in all instances:
repadmin /showattr localhost "cn=configuration,dc=parent,dc=com" /subtree /filter:"((&(objectClass=*)(cn=*\0acnf:*)))" /atts:objectclass,whencreated,whenchangedb. Review the attributes, attribute values and if present, subordinate objects to determine which object should remain and which should be deleted
c. Ensure you have an up-to-date backup of the directory
d. Delete the conflict mangled object/container or the object it conflicted with using LDP.EXE, ADSIEDIT or one of the Active Directory management tools.
Perform testing of the replication partners with third-party components removed.
Multiple third-party products have been found to cause this issue including:- Anti-Virus software
- Directory Synchronization
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.
More information
Lingering Objects:
Clean that Active Directory forest of lingering objects
Database Corruption: