[Samba] DC upgrade: "Samba failed to prime database" (4.7.6-Ubuntu -> 4.14.6)
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,
> 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
> Jul 31 16:02:43 ad1 samba: [2021/07/31 16:02:43.347737, 0,
> pid=3001, effective(0, 0), real(0, 0)]
> Jul 31 16:02:43 ad1 samba: samba version 4.14.6 started.
> Jul 31 16:02:43 ad1 samba: Copyright Andrew Tridgell and the
> Samba Team 1992-2021
> Jul 31 16:02:43 ad1 samba: [2021/07/31 16:02:43.620010, 0,
> pid=3003, effective(0, 0), real(0, 0)]
> Jul 31 16:02:43 ad1 samba: exit_daemon: daemon failed to
> Samba failed to prime database, error code 22
> I've seen this error documented on a downgrade, not an upgrade (see
> * 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:
Then join this as a new DC, transfer all the FSMO roles to the new DC
and then demote the original DC.
More information about the samba