package slapd 2.4.28-1.1ubuntu4 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 1

Bug #979833 reported by Ademar Arvati Filho
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
openldap (Ubuntu)
Expired
Low
Unassigned

Bug Description

error when upgrading from oneiric choosing to overwrite config files

ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: slapd 2.4.28-1.1ubuntu4
ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14
Uname: Linux 3.2.0-23-generic i686
ApportVersion: 2.0.1-0ubuntu2
Architecture: i386
Date: Thu Apr 12 09:00:11 2012
ErrorMessage: ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
SourcePackage: openldap
Title: package slapd 2.4.28-1.1ubuntu4 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to precise on 2012-04-12 (0 days ago)

Revision history for this message
Ademar Arvati Filho (arvati) wrote :
Revision history for this message
James Page (james-page) wrote :

Setting up slapd (2.4.28-1.1ubuntu4) ...
Installing new version of config file /etc/ldap/schema/misc.ldif ...
Installing new version of config file /etc/ldap/schema/cosine.ldif ...
Installing new version of config file /etc/ldap/schema/README ...
Installing new version of config file /etc/ldap/schema/pmi.schema ...
Installing new version of config file /etc/ldap/schema/nis.schema ...
Installing new version of config file /etc/ldap/schema/dyngroup.schema ...
Installing new version of config file /etc/ldap/schema/inetorgperson.ldif ...
Installing new version of config file /etc/ldap/schema/duaconf.schema ...
Installing new version of config file /etc/ldap/schema/openldap.schema ...
Installing new version of config file /etc/ldap/schema/inetorgperson.schema ...
Installing new version of config file /etc/ldap/schema/ldapns.schema ...
Installing new version of config file /etc/ldap/schema/dyngroup.ldif ...
Installing new version of config file /etc/ldap/schema/misc.schema ...
Installing new version of config file /etc/ldap/schema/nis.ldif ...
Installing new version of config file /etc/ldap/schema/openldap.ldif ...
  Backing up /etc/ldap/slapd.d in /var/backups/slapd-2.4.25-1.1ubuntu4.1... done.
  Moving old database directories to /var/backups:
  - directory dc=nodomain... done.
  Loading from /var/backups/slapd-2.4.25-1.1ubuntu4.1:
  - directory dc=nodomain... failed.

Loading the database from the LDIF dump failed with the following
error while running slapadd:
    slapadd: line 29: database #1 (dc=nodomain) not configured to hold "dc=casa,dc=lan"; did you mean to use database #2 (dc=casa,dc=lan)?
dpkg: error processing slapd (--configure):
 subprocess installed post-installation script returned error exit status 1

Revision history for this message
James Page (james-page) wrote :

Preparing to replace slapd 2.4.25-1.1ubuntu4.1 (using .../slapd_2.4.28-1.1ubuntu4_i386.deb) ...
 * Stopping OpenLDAP slapd 
[ OK ]
  Dumping to /var/backups/slapd-2.4.25-1.1ubuntu4.1:
  - directory dc=nodomain... done.
  - directory dc=casa,dc=lan... done.

Revision history for this message
James Page (james-page) wrote :

preinst dumps two database but the load post upgrade due to format change fails

Revision history for this message
James Page (james-page) wrote :

I think this might be related to bug 365915 - but I can't believe that was never fixed...

Revision history for this message
James Page (james-page) wrote :

Hi Ademar

Thanks for taking the time to report this bug.

I would recommend for the time being that you delete the example dc=nodomain - this is a legacy from older releases which provided an example set of data.

You should then be able to upgrade openldap.

Marking importance as 'Low' for the time being as this is the first we have seen during precise.

Changed in openldap (Ubuntu):
importance: Undecided → Low
Revision history for this message
James Page (james-page) wrote :

Please could you provide output from the following command in this bug report:

   ls -l /var/backups/slapd-2.4.25-1.1ubuntu4.1

If you could also check that each of the ldif files that should be in that directory contain data for nodomain and case.lan that would also be helpful.

Marking incomplete pending your response.

Changed in openldap (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for openldap (Ubuntu) because there has been no activity for 60 days.]

Changed in openldap (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.