Comment 6 for bug 185257

Revision history for this message
Mathias Gug (mathiaz) wrote : Re: [Bug 185257] Re: E: slapd: subprocess post-installation script returned error exit status 1

On Wed, Jan 23, 2008 at 10:25:09PM -0000, pdlethbridge wrote:

> Preparing to replace slapd 2.3.39-1 (using .../slapd_2.4.7-3_i386.deb)
> ...
>
> Stopping OpenLDAP: slapd.
>
> Dumping to /var/backups/slapd-2.3.39-1:
>
> - directory dc=local... done.
>
> Unpacking replacement slapd ...
>

[...]

>
> Setting up libldap-2.4-2 (2.4.7-3) ...
>
> Installing new version of config file /etc/ldap/ldap.conf ...
>
>
> Setting up slapd (2.4.7-3) ...
>
> Installing new version of config file /etc/ldap/schema/README ...
>
> Installing new version of config file /etc/ldap/schema/openldap.ldif ...
>
> 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
> ...
>
> Installing new version of config file /etc/default/slapd ...
>
> Installing new version of config file /etc/init.d/slapd ...
>
> Backing up /etc/ldap/slapd.conf in /var/backups/slapd-2.3.39-1...
> done.
>
> Upgrading BDB 'checkpoint' options... .
>
> Moving old database directories to /var/backups:
>
> - directory dc=local... done.
>
> Loading from /var/backups/slapd-2.3.39-1:
>
> - directory dc=local... done.
>
> - chowning database directory (openldap:openldap)... done
>
> Starting OpenLDAP: slapd - failed:
>
> /etc/ldap/slapd.conf: line 54: "checkpoint" must occur after "suffix".
>
> invoke-rc.d: initscript slapd, action "start" failed.
>

It seems that there is an error in your slapd.conf configuration file.
Could you attach your /etc/ldap/slapd.conf file to the bug (removing any
sensitive information such as passwords) ?

> Setting up slapd (2.4.7-3) ...
>
> Backing up /etc/ldap/slapd.conf in /var/backups/slapd-2.3.39-1...
> done.
>
> Upgrading BDB 'checkpoint' options... .
>
> Moving old database directories to /var/backups:
>
>
> Backup path /var/backups/dc=local-2.3.39-1.ldapdb exists. Giving up...
>

During a package upgrade, a dump of the database is stored in
/var/backups. If the dump is already there, the upgrade aborts. Since
the first upgrade failed because of an incorrect configuration file,
subsequent upgrades fails because the dump of the first upgrade hasn't
been removed.

--
Mathias