[Samba] DC upgrade: "Samba failed to prime database" (4.7.6-Ubuntu -> 4.14.6)
Rowland Penny
rpenny at samba.org
Sat Jul 31 14:58:35 UTC 2021
On Sat, 2021-07-31 at 16:18 +0200, Daan Nusman via samba wrote:
> Hi everyone,
>
> I am in the procress of trying to upgrade a DC from a packaged
> "4.7.6-Ubuntu" to a self-compiled 4.14.6.
Why upgrade like that ?
>
> I copied a self-compiled version of Samba over to /usr/local/samba,
> and
> copied the config files, databases (private folder etc) from their
> typical debian locations too.
I cannot recommend doing that.
>
> When I try to start the new samba with debug level 10, the syslog
> says:
>
> Jul 31 16:02:43 ad1 samba[3001]: [2021/07/31 16:02:43.347737, 0,
> pid=3001, effective(0, 0), real(0, 0)]
> ../../source4/samba/server.c:646(binary_smbd_main)
> Jul 31 16:02:43 ad1 samba[3001]: samba version 4.14.6 started.
> Jul 31 16:02:43 ad1 samba[3001]: Copyright Andrew Tridgell and the
> Samba Team 1992-2021
> Jul 31 16:02:43 ad1 samba[3003]: [2021/07/31 16:02:43.620010, 0,
> pid=3003, effective(0, 0), real(0, 0)]
> ../../lib/util/become_daemon.c:122(exit_daemon)
> Jul 31 16:02:43 ad1 samba[3003]: exit_daemon: daemon failed to
> start:
> Samba failed to prime database, error code 22
>
> I've seen this error documented on a downgrade, not an upgrade (see
> https://wiki.samba.org/index.php/Downgrading_an_Active_Directory_DC#Samba_failed_to_prime_database.2C_error_code_22).
>
>
> * Should this work or should I give up and go for a scary DC rejoin?
No, I don't think it will work and joining a new DC isn't scary :-)
Ubuntu and Samba 4.7.6 means 18.04, so I suggest you create a new
computer running 20.04, then install Samba from here:
https://apt.van-belle.nl/
Then join this as a new DC, transfer all the FSMO roles to the new DC
and then demote the original DC.
Rowland
More information about the samba
mailing list