Hi, ok, now join(with samba 4.10.6) was ok, but same original error :-/ smbclient //localhost/netlogon -UAdministrator -c 'ls' Enter XXXXXXX\Administrator's password: session setup failed: NT_STATUS_INTERNAL_DB_CORRUPTION Regards; On 24/07/2019 10:17, Rowland penny via samba wrote:> On 24/07/2019 12:53, Carlos via samba wrote: >> HI >> >> As the reported problem occurred, it follows logs of the join attempt >> in DC with version 4.8.3. >> >> =====>> > Your starts here: > > Committing SAM database > Adding 1 remote DNS records for DC-SAMBA-09.interno.XXXXXX.com.br > Adding DNS A record DC-SAMBA-09.interno.XXXXXX.com.br for IPv4 IP: > 192.168.9.240 > Adding DNS CNAME record > 05d6c868-de73-4899-affa-a934228cc186._msdcs.interno.XXXXXX.com.br for > DC-SAMBA-09.interno.XXXXXX.com.br > Join failed - cleaning up > > Anything after this point can be ignored. > > It looks like it cannot add a CNAME record, something similar to this > has happened recently, but with Windows DCs. > > Perhaps the fix is the same, stop the join from trying to create the > DNS records. > > You need to comment out three lines in join.py: > > open 'join.py in your favourite editor > (/usr/lib/python2.7/dist-packages/samba/join.py on my DC), > find these lines: > > ???????????? if ctx.dns_backend != "NONE": > ???????????????? ctx.join_add_dns_records() > ???????????????? ctx.join_replicate_new_dns_records() > > Line 1405 in my version, under '??? def do_join(ctx):' > > just comment out those three lines, save & close, then try the join > again. > > Rowland > > >
Rowland penny
2019-Jul-24 14:36 UTC
[Samba] Error after upgrade NT_STATUS_INTERNAL_DB_CORRUPTION
On 24/07/2019 15:02, Carlos via samba wrote:> Hi, ok, now join(with samba 4.10.6) was ok, but same original error :-/ > > smbclient //localhost/netlogon -UAdministrator -c 'ls' > Enter XXXXXXX\Administrator's password: > session setup failed: NT_STATUS_INTERNAL_DB_CORRUPTIONAll I can suggest is to try and run 'samba-tool dbcheck' Rowland
Hi samba-tool dbcheck ERROR(<class 'KeyError'>): uncaught exception - 'No such element' ? File "/opt/samba/lib/python3.6/site-packages/samba/netcmd/__init__.py", line 185, in _run ??? return self.run(*args, **kwargs) ? File "/opt/samba/lib/python3.6/site-packages/samba/netcmd/dbcheck.py", line 141, in run ??? check_expired_tombstones=selftest_check_expired_tombstones) ? File "/opt/samba/lib/python3.6/site-packages/samba/dbchecker.py", line 221, in __init__ ??? self.tombstoneLifetime = int(res[0]["tombstoneLifetime"][0]) == samba-tool dbcheck --cross-ncs --fix --yes ERROR(<class 'KeyError'>): uncaught exception - 'No such element' ? File "/opt/samba/lib/python3.6/site-packages/samba/netcmd/__init__.py", line 185, in _run ??? return self.run(*args, **kwargs) ? File "/opt/samba/lib/python3.6/site-packages/samba/netcmd/dbcheck.py", line 141, in run ??? check_expired_tombstones=selftest_check_expired_tombstones) ? File "/opt/samba/lib/python3.6/site-packages/samba/dbchecker.py", line 221, in __init__ ??? self.tombstoneLifetime = int(res[0]["tombstoneLifetime"][0]) --- But strange that with samba 4.6.10 or 4.8.3 this problem does not occur NT_STATUS_INTERNAL_DB_CORRUPTION, I have not tried with versions of samba 4.9.X, is it something in version 4.10.6? Regards; On 24/07/2019 11:36, Rowland penny via samba wrote:> On 24/07/2019 15:02, Carlos via samba wrote: >> Hi, ok, now join(with samba 4.10.6) was ok, but same original error :-/ >> >> smbclient //localhost/netlogon -UAdministrator -c 'ls' >> Enter XXXXXXX\Administrator's password: >> session setup failed: NT_STATUS_INTERNAL_DB_CORRUPTION > > All I can suggest is to try and run 'samba-tool dbcheck' > > Rowland > > >
Tested with samba version 4.9.X, after comment 3 lines in join.py, join was ok, but erro is same... smbclient //localhost/netlogon -UAdministrator -c 'ls' Enter XXXXXXX\Administrator's password: session setup failed: NT_STATUS_INTERNAL_DB_CORRUPTION Regards; On 24/07/2019 11:44, Carlos wrote:> > Hi > > samba-tool dbcheck > ERROR(<class 'KeyError'>): uncaught exception - 'No such element' > ? File > "/opt/samba/lib/python3.6/site-packages/samba/netcmd/__init__.py", > line 185, in _run > ??? return self.run(*args, **kwargs) > ? File > "/opt/samba/lib/python3.6/site-packages/samba/netcmd/dbcheck.py", line > 141, in run > ??? check_expired_tombstones=selftest_check_expired_tombstones) > ? File "/opt/samba/lib/python3.6/site-packages/samba/dbchecker.py", > line 221, in __init__ > ??? self.tombstoneLifetime = int(res[0]["tombstoneLifetime"][0]) > > ==> > samba-tool dbcheck --cross-ncs --fix --yes > ERROR(<class 'KeyError'>): uncaught exception - 'No such element' > ? File > "/opt/samba/lib/python3.6/site-packages/samba/netcmd/__init__.py", > line 185, in _run > ??? return self.run(*args, **kwargs) > ? File > "/opt/samba/lib/python3.6/site-packages/samba/netcmd/dbcheck.py", line > 141, in run > ??? check_expired_tombstones=selftest_check_expired_tombstones) > ? File "/opt/samba/lib/python3.6/site-packages/samba/dbchecker.py", > line 221, in __init__ > ??? self.tombstoneLifetime = int(res[0]["tombstoneLifetime"][0]) > > --- > > But strange that with samba 4.6.10 or 4.8.3 this problem does not > occur NT_STATUS_INTERNAL_DB_CORRUPTION, I have not tried with versions > of samba 4.9.X, is it something in version 4.10.6? > > > Regards; > > > > On 24/07/2019 11:36, Rowland penny via samba wrote: >> On 24/07/2019 15:02, Carlos via samba wrote: >>> Hi, ok, now join(with samba 4.10.6) was ok, but same original error :-/ >>> >>> smbclient //localhost/netlogon -UAdministrator -c 'ls' >>> Enter XXXXXXX\Administrator's password: >>> session setup failed: NT_STATUS_INTERNAL_DB_CORRUPTION >> >> All I can suggest is to try and run 'samba-tool dbcheck' >> >> Rowland >> >> >>