Hey guys, here is an annoying problem that again can be very easily fixed. I noticed that most of the fixes are very simple, right?
I was running a project for this client where he wanted two domain controllers in Azure to replicate with their on-premises domain controllers over a site-to-site link. Everything was beautiful and fashionable. We run cross-site, run a couple of VMs in Azure, install the ADDS role, and run DC promotion.
Everything is going well, we are happy, we drink coffee and donuts and then we get, yeah, brace yourself, mistake !!
Next error:
An error occurred while trying to configure this computer as a domain controller.
Active Directory Domain Services was unable to replicate directory partition XX from a remote Active Directory domain controller. The remote procedure call was canceled.
So now it’s time to put on the coffee and start digging, as the error is very ambiguous.
We go into the event viewer and see that we have an error with ID 1818.
Now I’m going to save you a lot of time searching on Google and try to dig further by explaining what the problem is. The problem is high latency between the two sites and timeouts when the configuration schema is first replicated.
Now a simple solution: we need to increase the RPC connection timeout.
To do this, we need to enter regedit , then go to
HKLM SYSTEM CurrentControlSet Services NTDS .
Then create a new key named Options .
Then create a new DWORD named RPC Replication Timeout (min) and set it to, say, 45 minutes.
Now we restart the server, give dcpromo another chance and surprise, surprise! Completes without problems.
Hope you enjoyed the article. If so, come back for more information.