[Samba] Repacking database from v1 to v2 / Samba failed to prime database, error code 22

Arnaud FLORENT aflorent at iris-tech.fr
Mon Oct 3 12:26:24 UTC 2022


Hi,

i have an issue direct with in place upgrade from samba 4.3 to 4.13 
running single AD DC on ubuntu based installation

samba failed to start after upgrade with this log


sept. 28 17:03:09 kwartz samba[1182]: samba version 4.13.12-Debian started.
sept. 28 17:03:09 kwartz samba[1182]: Copyright Andrew Tridgell and the 
Samba Team 1992-2020
sept. 28 17:03:09 kwartz samba[1182]: [2022/09/28 17:03:09.302061, 0] 
../../lib/util/become_daemon.c:147(daemon_status)
sept. 28 17:03:09 kwartz samba[1182]: daemon_status: daemon 'samba' : 
Starting process...
sept. 28 17:03:34 kwartz samba[1182]: [2022/09/28 17:03:34.620437, 0] 
../../lib/ldb-samba/ldb_wrap.c:79(ldb_wrap_debug)
sept. 28 17:03:34 kwartz samba[1182]: ldb: Repacking database from v1 to 
v2 format (first record 
CN=NTDS-DSA,CN=Schema,CN=Configuration,DC=my,DC=domain)
sept. 28 17:03:34 kwartz samba[1182]: [2022/09/28 17:03:34.885923, 0] 
../../lib/ldb-samba/ldb_wrap.c:79(ldb_wrap_debug)
sept. 28 17:03:34 kwartz samba[1182]: ldb: Repacking database from v1 to 
v2 format (first record 
CN=msCOM-PartitionSet-Display,CN=C0A,CN=DisplaySpecifiers,CN=Configuration,DC=my,DC=domain
sept. 28 17:03:35 kwartz samba[1182]: [2022/09/28 17:03:35.508672, 0] 
../../lib/ldb-samba/ldb_wrap.c:79(ldb_wrap_debug)
sept. 28 17:03:35 kwartz samba[1182]: ldb: Repacking database from v1 to 
v2 format (first record 
DC=vm-imp.serveurs,DC=my.domain,CN=MicrosoftDNS,DC=DomainDnsZones,DC=my,DC=domain
sept. 28 17:03:37 kwartz samba[1182]: [2022/09/28 17:03:37.167973, 0] 
../../lib/ldb-samba/ldb_wrap.c:79(ldb_wrap_debug)
sept. 28 17:03:37 kwartz samba[1182]: ldb: Repacking database from v1 to 
v2 format (first record 
DC=_msdcs.my.domain,CN=MicrosoftDNS,DC=ForestDnsZones,DC=my,DC=domain)
sept. 28 17:03:39 kwartz samba[1182]: [2022/09/28 17:03:39.517710, 0] 
../../lib/util/become_daemon.c:121(exit_daemon)
sept. 28 17:03:39 kwartz samba[1182]: exit_daemon: daemon failed to 
start: Samba failed to prime database, error code 22
sept. 28 17:03:39 kwartz systemd[1]: samba-ad-dc.service: Main process 
exited, code=exited, status=1/FAILURE
sept. 28 17:03:39 kwartz systemd[1]: samba-ad-dc.service: Failed with 
result 'exit-code'.
sept. 28 17:03:39 kwartz systemd[1]: Failed to start Samba AD Daemon.


i found this link on the wiki

https://wiki.samba.org/index.php/Downgrading_an_Active_Directory_DC#Samba_failed_to_prime_database.2C_error_code_22

but it is about downgrading Samba not upgrading.


i run samba-tool dbcheck with  4.3 without errors

i also tried to to restore previous state of samba private dir without 
success


what tools could i use to resolve this issue on this directory ?








More information about the samba mailing list