[Pkg-openldap-devel] Bug#595464: slapd: migration to new setup fails
Steve Langasek
vorlon at debian.org
Tue Sep 7 16:53:03 UTC 2010
severity 595464 minor
thanks
On Sat, Sep 04, 2010 at 09:04:04AM +0200, Vincent Danjean wrote:
> The only working tip has been to manually edit /var/cache/debconf/config.dat
> and set slapd/move_old_database to true.
> And then:
> root at ogmios:/home/vdanjean# dpkg -a --configure
> Paramétrage de slapd (2.4.23-4) ...
> Backing up /etc/ldap/slapd.conf in /var/backups/slapd-2.4.17-2.1... done.
> Moving old database directories to /var/backups:
> - directory dc=danjean,dc=fr... done.
> Loading from /var/backups/slapd-2.4.17-2.1:
> - directory dc=danjean,dc=fr... done.
> - chowning database directory (openldap:openldap)... done
> Migrating slapd.conf to slapd.d configuration style... done.
> Starting OpenLDAP: slapd.
> You should really propose easiest way to upgrade slapd when non standard
> configuration is found (at least, a way to leave the package in a installed
> state even if the config migration is not completed).
> Perhaps, reasking the slapd/move_old_database question can be a solution (at
> least for interactive upgrade)
This has nothing to do with non-standard configurations, and everything to
do with the fact that you had set slapd/move_old_database to 'false' in
debconf. Why did you do this? This is a low-priority debconf question that
defaults to 'true'.
It is possible to handle this migration by hand if you choose (not a good
idea IMHO, but possible). You just need to leave the directory in place, so
slapadd has somewhere to write since it won't create the path for you.
Marking the package as "installed" when the maintainer scripts have failed
to upgrade the directory to a DB version that will actually run with the
current slapd would be an error.
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer http://www.debian.org/
slangasek at ubuntu.com vorlon at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-openldap-devel/attachments/20100907/ec868a64/attachment.pgp>
More information about the Pkg-openldap-devel
mailing list