[Pkg-openldap-devel] Bug#487211: slapd: upgrade from 2.3.35 fails looking for ldif

Steve Langasek vorlon at debian.org
Sat Jun 28 08:37:22 UTC 2008


tags 487211 moreinfo
thanks

Hi Nigel,

On Fri, Jun 20, 2008 at 07:30:21PM +1000, Nigel Sim wrote:
> Package: slapd
> Version: 2.4.9-1
> Severity: important

> Upgrading fails as the ldif file is not created as expected. To overcome
> this I restored the backup into /var/lib/ldap, then did
> slapcat > /var/backups/slapd-2.3.35-2/dc=localdomain.ldif, removed the
> /var/backup/dc=localdomain-2.3.35-2.ldapdb folder which was created during
> upgrade, and again ran apt-get -f install.

> Output follows:

> Setting up slapd (2.4.9-1) ...
>   Backing up /etc/ldap/slapd.conf in /var/backups/slapd-2.3.35-2... done.
>   Upgrading BDB 'checkpoint' options... .
>   Moving old database directories to /var/backups:
>   - directory dc=localdomain... done.
>   Loading from /var/backups/slapd-2.3.35-2: 
>   - directory dc=localdomain... failed.

> Loading the database from the LDIF dump failed with the following
> error while running slapadd:
>     /var/backups/slapd-2.3.35-2/dc=localdomain.ldif: No such file or directory
> dpkg: error processing slapd (--configure):
>  subprocess post-installation script returned error exit status 1
> Errors were encountered while processing:
>  slapd
> E: Sub-process /usr/bin/dpkg returned an error code (1)

Missing from this transcript is the output of the slapd preinst, which runs
before slapd has been unpacked.  This is the maintainer script that's
supposed to create the LDIF for you on upgrades; it did for me, and I don't
see any obvious bugs in the code that would explain why it wouldn't have for
you.

You also seem to have all the right debconf settings to make this happen:

>   slapd/move_old_database: true
>   slapd/dump_database_destdir: /var/backups/slapd-VERSION
>   slapd/dump_database: when needed

Is there any chance you would be able to provide the logs from the earlier
part of the upgrade, to show what went wrong?

-- 
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





More information about the Pkg-openldap-devel mailing list