[Bug 536958] [NEW] slapd package configuration aborts during Hardy -> Lucid upgrade
Nathan Stratton Treadway
ubuntu.lp at nathanst.com
Wed Mar 10 22:33:58 GMT 2010
Public bug reported:
I am attempting to upgrade my Ubuntu server running Hardy to Lucid,
using "do-release-upgrade -d" from the command line.
After the downloaded "lucid" upgrade script churned away for a while, I
noticed that the slapd package was aborting during the package
configuration.
Here are the applicable lines from the upgrade session:
Preparing to replace ldap-utils 2.4.9-0ubuntu0.8.04.2 (using .../ldap-utils_2.4.21-0ubuntu1_amd64.deb) ...
Unpacking replacement ldap-utils ...
Preparing to replace libldap-2.4-2 2.4.9-0ubuntu0.8.04.2 (using .../libldap-2.4-2_2.4.21-0ubuntu1_amd64.deb) ...
Unpacking replacement libldap-2.4-2 ...
[...]
Preparing to replace slapd 2.4.9-0ubuntu0.8.04.2 (using .../slapd_2.4.21-0ubuntu1_amd64.deb) ...
Stopping OpenLDAP: slapd.
Dumping to /var/backups/slapd-2.4.9-0ubuntu0.8.04.2:
- directory dc=ontko,dc=com... slapcat: Symbol `ldap_int_global_options' has different size in shared object, consider re-linking
done.
Unpacking replacement slapd ...
[...]
Setting up libldap-2.4-2 (2.4.21-0ubuntu1) ...
[...]
Setting up libldap-2.4-2 (2.4.21-0ubuntu1) ...
[...]
Setting up ldap-utils (2.4.21-0ubuntu1) ...
[...]
Setting up slapd (2.4.21-0ubuntu1) ...
Installing new version of config file /etc/ldap/schema/README ...
Installing new version of config file /etc/ldap/schema/cosine.ldif ...
Installing new version of config file /etc/ldap/schema/inetorgperson.ldif ...
Installing new version of config file /etc/ldap/schema/nis.ldif ...
Installing new version of config file /etc/ldap/schema/openldap.ldif ...
Installing new version of config file /etc/ldap/schema/duaconf.schema ...
Installing new version of config file /etc/ldap/schema/dyngroup.schema ...
Installing new version of config file /etc/ldap/schema/inetorgperson.schema ...
Installing new version of config file /etc/ldap/schema/misc.schema ...
Installing new version of config file /etc/ldap/schema/nis.schema ...
Installing new version of config file /etc/ldap/schema/openldap.schema ...
Configuration file `/etc/ldap/schema/ldapns.schema'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : background this process to examine the situation
The default action is to keep your current version.
*** ldapns.schema (Y/I/N/O/D/Z) [default=N] ? y
Installing new version of config file /etc/ldap/schema/ldapns.schema ...
Installing new version of config file /etc/apparmor.d/usr.sbin.slapd ...
Configuration file `/etc/default/slapd'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : background this process to examine the situation
The default action is to keep your current version.
*** slapd (Y/I/N/O/D/Z) [default=N] ? n
Installing new version of config file /etc/init.d/slapd ...
Backing up /etc/ldap/slapd.conf in /var/backups/slapd-2.4.9-0ubuntu0.8.04.2... done.
failed.
Migrating slapd.conf file (/etc/ldap/slapd.conf) to slapd.d failed with the following error while running slaptest:
bdb(dc=ontko,dc=com): Program version 4.7 doesn't match environment version 0.44
hdb_db_open: database "dc=ontko,dc=com" cannot be opened, err -30971. Restore from backup!
backend_startup_one (type=hdb, suffix="dc=ontko,dc=com"): bi_db_open failed! (-30971)
slap_startup failed (test would succeed using the -u switch)
dpkg: error processing slapd (--configure):
subprocess installed post-installation script returned error exit status 1
[...]
Errors were encountered while processing:
slapd
[do-release-upgrade run terminated...]
The do-release-upgrade process continued configuring other packages, but after it completed the "slapd" package is listed as unconfigured; when I tried to configure it manually I got similar errors:
~# dpkg --configure --pending
Setting up slapd (2.4.21-0ubuntu1) ...
Backing up /etc/ldap/slapd.conf in /var/backups/slapd-2.4.9-0ubuntu0.8.04.2... done.
failed.
Migrating slapd.conf file (/etc/ldap/slapd.conf) to slapd.d failed with the following error while running slaptest:
bdb(dc=ontko,dc=com): Program version 4.7 doesn't match environment version 0.44
hdb_db_open: database "dc=ontko,dc=com" cannot be opened, err -30971. Restore from backup!
backend_startup_one (type=hdb, suffix="dc=ontko,dc=com"): bi_db_open failed! (-30971)
slap_startup failed (test would succeed using the -u switch)
dpkg: error processing slapd (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
slapd
As it turns out, my do-release-upgrade session was already "planning" to abort due to an non-zero exit status from another package, but I assume this error from the slapd configuration script would also prevent the Hardy -> Lucid upgrade from running to completion.
** Affects: openldap (Ubuntu)
Importance: Undecided
Status: New
** Tags: hardy2lucid
--
slapd package configuration aborts during Hardy -> Lucid upgrade
https://bugs.launchpad.net/bugs/536958
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openldap in ubuntu.
More information about the Ubuntu-server-bugs
mailing list