Adam Tauno Williams
2017-Jan-15 19:39 UTC
[Samba] Initial replication halts with "The handle is invalid."
Adding a Windows2008RC to an SerNET S4 4.5.3 (forest level 2008R2) domain hangs at replication CN=Configuration received 1630 out of approximately 1663 objects. Only message I can find in the event log on the 2008R2 server is - Internal event: The local directory service received an exception from a remote procedure call (RPC) connection. Extended error information is not available. directory service: LARKIN27.micore.us Additional Data Error value: The handle is invalid. (6) How can one debug where, or on what object, it is hung up or stops?
Adam Tauno Williams
2017-Jan-16 01:14 UTC
[Samba] Initial replication halts with "The handle is invalid." (msDS-NC-Replica-Locations corrupted?)
On Sun, 2017-01-15 at 14:39 -0500, Adam Tauno Williams via samba wrote:> Adding a Windows2008RC to an SerNET S4 4.5.3 (forest level 2008R2) > domain hangs at replication CN=Configuration received 1630 out of > approximately 1663 objects. > Only message I can find in the event log on the 2008R2 server is - > Internal event: The local directory service received an exception > from a remote procedure call (RPC) connection. Extended error > information is not available. > directory service: > LARKIN27.micore.us > Additional Data > Error value: > The handle is invalid. (6) > How can one debug where, or on what object, it is hung up or stops?samba-tool's dbcheck finds only two errors in cn=Configuration, but it does not repair them. These appear to be references to an original, long since demoted, DC. But these values appear in neither the results of an ldbsearch or via ADSI edit. [root at larkin27 ~]# ldbsearch --cross-ncs -H /var/lib/samba/private/sam.ldb -b "CN=Configuration,DC=micore,DC=US" - s sub CN=3ad6381a-9725-4e28-8157-a5a3fde68a43 msDS-NC-Replica-Locations # record 1 dn: CN=3ad6381a-9725-4e28-8157- a5a3fde68a43,CN=Partitions,CN=Configuration,DC=micore,DC=us msDS-NC- Replica-Locations: CN=NTDS Settings,CN=LARKIN26,CN=Servers,CN=Default- First-Site-Name,CN=Sites,CN=Configuration,DC=micore,DC=us msDS-NC-Replica-Locations: CN=NTDS Settings,CN=LARKIN28,CN=Servers,CN=Default- First-Site-Name,CN=Sites,CN=Configuration,DC=micore,DC=us msDS-NC-Replica-Locations: CN=NTDS Settings,CN=LARKIN27,CN=Servers,CN=Default- First-Site-Name,CN=Sites,CN=Configuration,DC=micore,DC=us [root at larkin27 ~]# samba-tool dbcheck --cross-ncs --fix --yes Checking 8411 objects ERROR: no target object found for GUID component for msDS-NC-Replica- Locations in object CN=3ad6381a-9725-4e28-8157- a5a3fde68a43,CN=Partitions,CN=Configuration,DC=micore,DC=us - <GUID=7d3f95a5cdfa1246b1fb2fcd16e5f877>;<RMD_ADDTIME=130000065100000000>;<RMD_CHANGETIME=130000065100000000>;<RMD_FLAGS=0>;<RMD_INVOCID=01db57fd8d4ddd469aee9cbd36abb3e1>;<RMD_LOCAL_USN=5160>;<RMD_ORIGINATING_USN=3 630>;<RMD_VERSION=0>;CN=NTDS Settings,CN=BARBEL,CN=Servers,CN=Default- First-Site-Name,CN=Sites,CN=Configuration,DC=micore,DC=us Not removing dangling forward link ERROR: no target object found for GUID component for msDS-NC-Replica- Locations in object CN=55b4d7f1-b1b1-4843-ae00- 7908adf44ffa,CN=Partitions,CN=Configuration,DC=micore,DC=us - <GUID=7d3f95a5cdfa1246b1fb2fcd16e5f877>;<RMD_ADDTIME=130000065100000000>;<RMD_CHANGETIME=130000065100000000>;<RMD_FLAGS=0>;<RMD_INVOCID=01db57fd8d4ddd469aee9cbd36abb3e1>;<RMD_LOCAL_USN=5134>;<RMD_ORIGINATING_USN=3 629>;<RMD_VERSION=0>;CN=NTDS Settings,CN=BARBEL,CN=Servers,CN=Default- First-Site-Name,CN=Sites,CN=Configuration,DC=micore,DC=us Not removing dangling forward link
Rowland Penny
2017-Jan-16 09:18 UTC
[Samba] Initial replication halts with "The handle is invalid." (msDS-NC-Replica-Locations corrupted?)
On Sun, 15 Jan 2017 20:14:12 -0500 Adam Tauno Williams via samba <samba at lists.samba.org> wrote:> On Sun, 2017-01-15 at 14:39 -0500, Adam Tauno Williams via samba > wrote: > > Adding a Windows2008RC to an SerNET S4 4.5.3 (forest level 2008R2) > > domain hangs at replication CN=Configuration received 1630 out of > > approximately 1663 objects. > > Only message I can find in the event log on the 2008R2 server is - > > Internal event: The local directory service received an exception > > from a remote procedure call (RPC) connection. Extended error > > information is not available. > > directory service: > > LARKIN27.micore.us > > Additional Data > > Error value: > > The handle is invalid. (6) > > How can one debug where, or on what object, it is hung up or stops? > > samba-tool's dbcheck finds only two errors in cn=Configuration, but it > does not repair them. These appear to be references to an original, > long since demoted, DC. But these values appear in neither the > results of an ldbsearch or via ADSI edit. > > [root at larkin27 ~]# ldbsearch --cross-ncs -H > /var/lib/samba/private/sam.ldb -b > "CN=Configuration,DC=micore,DC=US" - s sub > CN=3ad6381a-9725-4e28-8157-a5a3fde68a43 msDS-NC-Replica-Locations > > # record 1 > dn: CN=3ad6381a-9725-4e28-8157- > a5a3fde68a43,CN=Partitions,CN=Configuration,DC=micore,DC=us > msDS-NC- > Replica-Locations: CN=NTDS Settings,CN=LARKIN26,CN=Servers,CN=Default- > First-Site-Name,CN=Sites,CN=Configuration,DC=micore,DC=us > msDS-NC-Replica-Locations: CN=NTDS > Settings,CN=LARKIN28,CN=Servers,CN=Default- > First-Site-Name,CN=Sites,CN=Configuration,DC=micore,DC=us > msDS-NC-Replica-Locations: CN=NTDS > Settings,CN=LARKIN27,CN=Servers,CN=Default- > First-Site-Name,CN=Sites,CN=Configuration,DC=micore,DC=us > > > [root at larkin27 ~]# samba-tool dbcheck --cross-ncs --fix --yes > Checking 8411 objects > ERROR: no target object found for GUID component for msDS-NC-Replica- > Locations in object CN=3ad6381a-9725-4e28-8157- > a5a3fde68a43,CN=Partitions,CN=Configuration,DC=micore,DC=us - > <GUID=7d3f95a5cdfa1246b1fb2fcd16e5f877>;<RMD_ADDTIME=130000065100000000 > >;<RMD_CHANGETIME=130000065100000000>;<RMD_FLAGS=0>;<RMD_INVOCID=01db57 > fd8d4ddd469aee9cbd36abb3e1>;<RMD_LOCAL_USN=5160>;<RMD_ORIGINATING_USN=3 > 630>;<RMD_VERSION=0>;CN=NTDS Settings,CN=BARBEL,CN=Servers,CN=Default- > First-Site-Name,CN=Sites,CN=Configuration,DC=micore,DC=us > Not removing dangling forward link > ERROR: no target object found for GUID component for msDS-NC-Replica- > Locations in object CN=55b4d7f1-b1b1-4843-ae00- > 7908adf44ffa,CN=Partitions,CN=Configuration,DC=micore,DC=us - > <GUID=7d3f95a5cdfa1246b1fb2fcd16e5f877>;<RMD_ADDTIME=130000065100000000 > >;<RMD_CHANGETIME=130000065100000000>;<RMD_FLAGS=0>;<RMD_INVOCID=01db57 > fd8d4ddd469aee9cbd36abb3e1>;<RMD_LOCAL_USN=5134>;<RMD_ORIGINATING_USN=3 > 629>;<RMD_VERSION=0>;CN=NTDS Settings,CN=BARBEL,CN=Servers,CN=Default- > First-Site-Name,CN=Sites,CN=Configuration,DC=micore,DC=us > Not removing dangling forward link > > >Have a look at this bug report: https://bugzilla.samba.org/show_bug.cgi?id=12385 Rowland
Possibly Parallel Threads
- Initial replication halts with "The handle is invalid." (msDS-NC-Replica-Locations corrupted?)
- Initial replication halts with "The handle is invalid." (msDS-NC-Replica-Locations corrupted?)
- Initial replication halts with "The handle is invalid." (msDS-NC-Replica-Locations corrupted?)
- Initial replication halts with "The handle is invalid."
- Initial replication halts with "The handle is invalid." (msDS-NC-Replica-Locations corrupted?)