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
Adam Tauno Williams
2017-Jan-16 16:15 UTC
[Samba] Initial replication halts with "The handle is invalid." (msDS-NC-Replica-Locations corrupted?)
Quoting Rowland Penny via samba <samba at lists.samba.org>:>> 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. > Have a look at this bug report: > https://bugzilla.samba.org/show_bug.cgi?id=12385Thanks. I have checked out master and built it [**1]; Bug#12297 [**2] indicates I can run samba-tool from the build of the checkout. I assume tombstone expunge, even for CN=Configuration, runs against sam.ldb??? So the correct syntax is - [ADC28 samba]# bin/samba-tool domain tombstones expunge -H /var/lib/samba/private/sam.ldb ??? [**1] git clone https://git.samba.org/samba.git cd samba/ yum install gcc libacl-devel python-devel gnutls-devel openldap-devel ./configure make ls bin/samba-tool [**2] https://bugzilla.samba.org/show_bug.cgi?id=12297>> [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
Adam Tauno Williams
2017-Jan-16 19:03 UTC
[Samba] Initial replication halts with "The handle is invalid." (msDS-NC-Replica-Locations corrupted?)
Quoting Adam Tauno Williams via samba <samba at lists.samba.org>:> Quoting Rowland Penny via samba <samba at lists.samba.org>: >>> 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. >> Have a look at this bug report: >> https://bugzilla.samba.org/show_bug.cgi?id=12385 > Thanks. I have checked out master and built it [**1]; Bug#12297 > [**2] indicates I can run samba-tool from the build of the checkout. > I assume tombstone expunge, even for CN=Configuration, runs against > sam.ldb??? So the correct syntax is - > [ADC28 samba]# bin/samba-tool domain tombstones expunge -H > /var/lib/samba/private/sam.ldbThis does not appear to have reaped any links. [root at larkin28 samba]# bin/samba-tool domain tombstones expunge -d 10 -H /var/lib/samba/private/sam.ldb ... lpcfg_servicenumber: couldn't find ldb Initial schema load needed, as we have no existing schema, seq_num: 64 schema_fsmo_init: we are master[no] updates allowed[no] Initial schema load needed, as we have no existing schema, seq_num: 64 schema_fsmo_init: we are master[no] updates allowed[no] gendb_search_v: CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration,DC=micore,DC=us objectClass=nTDSService -> 1 Doing a full scan on CN=Configuration,DC=micore,DC=us and looking for deleted objects Doing a full scan on DC=micore,DC=us and looking for deleted objects Doing a full scan on DC=DomainDnsZones,DC=micore,DC=us and looking for deleted objects Doing a full scan on DC=ForestDnsZones,DC=micore,DC=us and looking for deleted objects Removed 0 objects and 0 links successfully
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." (msDS-NC-Replica-Locations corrupted?)
- Initial replication halts with "The handle is invalid." (msDS-NC-Replica-Locations corrupted?)