[Pkg-openldap-devel] Bug#594711: slapd: Migration of DB format fails during upgrade

Julien Cristau jcristau at debian.org
Fri Sep 3 13:09:49 UTC 2010


On Sat, Aug 28, 2010 at 17:34:37 +0200, Stefan Fritsch wrote:

> Package: slapd
> Version: 2.4.23-4
> Severity: grave
> 
> When upgrading from 2.4.23-2 to 2.4.23-4, I get a debconf message that
> tells me that slapcat failed during upgrade. dpkg then aborts with a
> failure.
> 
> Also, contrary to the debconf message, the database files are not moved
> into /var/backup.
> 
> I am guessing that the problem could have to do with slapd not being
> started on boot on my system.
> 
> #593550 has some info about how to resolve the problem, but I think this
> information should be in slapd's README.Debian.
> 
> Here is the log from the attempted upgrade:
> 
> Preconfiguring packages ...
> (Reading database ... 261556 files and directories currently installed.)
> Preparing to replace slapd 2.4.23-2 (using .../slapd_2.4.23-4_i386.deb) ...
> Stopping OpenLDAP: slapd.
>   Dumping to /var/backups/slapd-2.4.23-2: 
>   - directory dc=loglevel,dc=info... bdb(dc=loglevel,dc=info): Program version 4.8 doesn't match environment version 4.7
> hdb_db_open: database "dc=loglevel,dc=info" cannot be opened, err -30971. Restore from backup!
> backend_startup_one (type=hdb, suffix="dc=loglevel,dc=info"): bi_db_open failed! (-30971)
> slap_startup failed

Could that be due to trying to do the dump with a version of slapcat
(2.4.23-2) which already used db4.8, whereas the db was from 4.7?  In
that case this was a transitional issue only affecting sid, I think?

Cheers,
Julien
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-openldap-devel/attachments/20100903/0ea1d5a9/attachment.pgp>


More information about the Pkg-openldap-devel mailing list