[Bug 218311] [NEW] upgrade from slapd from dapper to hardy fails on DB conversion
Martin Emrich
emme at emmes-world.de
Wed Apr 16 19:06:03 BST 2008
Public bug reported:
I just tried to upgrade a server with openldap from dapper to hardy (I
pulled an image from the dapper server and am doing a dry-run in a
virtualbox now).
During the upgrade, the slapd postinst script somehow crashed in an
intermediate state, and the upgrade aborted shortly after that.
When I try "dpkg --configure slapd" now, I get this:
root at newsauron:/var/lib/ldap# LANG=C dpkg --configure slapd
Setting up slapd (2.4.7-6ubuntu3) ...
Backing up /etc/ldap/slapd.conf in /var/backups/slapd-2.2.26-5ubuntu2.6... done.
Upgrading BDB 'checkpoint' options... .
Moving old database directories to /var/backups:
Backup path /var/backups/dc=darkzone-2.2.26-5ubuntu2.6.ldapdb exists. Giving up...
dpkg: error processing slapd (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
slapd
After removing the mentioned backup, I get this:
root at newsauron:/var/lib/ldap# LANG=C dpkg --configure slapd
Setting up slapd (2.4.7-6ubuntu3) ...
Backing up /etc/ldap/slapd.conf in /var/backups/slapd-2.2.26-5ubuntu2.6... done.
Upgrading BDB 'checkpoint' options... .
Moving old database directories to /var/backups:
- directory dc=darkzone... done.
Loading from /var/backups/slapd-2.2.26-5ubuntu2.6:
- directory dc=darkzone... failed.
Loading the database from the LDIF dump failed with the following
error while running slapadd:
/var/backups/slapd-2.2.26-5ubuntu2.6/dc=darkzone.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
When I remove both, I get this:
Setting up slapd (2.4.7-6ubuntu3) ...
Backing up /etc/ldap/slapd.conf in /var/backups/slapd-2.2.26-5ubuntu2.6... done.
Upgrading BDB 'checkpoint' options... .
Moving old database directories to /var/backups:
Loading from /var/backups/slapd-2.2.26-5ubuntu2.6:
- directory dc=darkzone... failed.
Loading the database from the LDIF dump failed with the following
error while running slapadd:
/var/backups/slapd-2.2.26-5ubuntu2.6/dc=darkzone.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
I have pulled an LDIF dump from the (still untouched) original server and rebuilt the database, so my LDAP is up and running again. How can I tell the postinst script that these actions are not necessary?
I have made a snapshot of the VM before starting the upgrade, and I'll
investigate what went wrong after the first upgrade dry-run went
through.
Ciao
Martin
** Affects: openldap2.3 (Ubuntu)
Importance: Undecided
Status: New
--
upgrade from slapd from dapper to hardy fails on DB conversion
https://bugs.launchpad.net/bugs/218311
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openldap2.3 in ubuntu.
More information about the Ubuntu-server-bugs
mailing list