package slapd 2.4.28-1.1ubuntu4 failed to install/upgrade: le sous-processus script post-installation installé a retourné une erreur de sortie d'état 1

Bug #999153 reported by Omar BOURAS
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openldap (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

This error happen when using mysql bench

ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: slapd 2.4.28-1.1ubuntu4
ProcVersionSignature: Ubuntu 3.2.0-24.37-generic 3.2.14
Uname: Linux 3.2.0-24-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu7
Architecture: amd64
Date: Mon May 14 14:55:38 2012
ErrorMessage: le sous-processus script post-installation installé a retourné une erreur de sortie d'état 1
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
SourcePackage: openldap
Title: package slapd 2.4.28-1.1ubuntu4 failed to install/upgrade: le sous-processus script post-installation installé a retourné une erreur de sortie d'état 1
UpgradeStatus: Upgraded to precise on 2012-05-01 (12 days ago)

Revision history for this message
Omar BOURAS (omar-bouras) wrote :
Revision history for this message
James Page (james-page) wrote :

Paramétrage de slapd (2.4.28-1.1ubuntu4) ...
  Backing up /etc/ldap/slapd.d in /var/backups/slapd-2.4.25-1.1ubuntu4.1... done.
  Moving old database directories to /var/backups:

  Backup path /var/backups/dc=nodomain-2.4.25-1.1ubuntu4.1.ldapdb exists. Giving up...
dpkg : erreur de traitement de slapd (--configure) :
 le sous-processus script post-installation installé a retourné une erreur de sortie d'état 1
Paramétrage de libctemplate0 (1.0-1) ...

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

Thanks for taking the time to report this bug in Ubuntu.

It looks like the backup directory for the slapd upgrade process already exists.

Please can you try the following:

    sudo mv /var/backups/dc=nodomain-2.4.25-1.1ubuntu4.1 /var/backups/dc=nodomain-2.4.25-1.1ubuntu4.1-old
    sudo apt-get -f install

Please adjust the /var/backups/dc=nodomain-2.4.25-1.1ubuntu4.1 to whatever folder has already been created in /var/backups for this domain.

Please attach the output from these commands to this bug report.

Marking 'Incomplete' pending your response. Please set the status back to 'New' once you have provided the requested information.

Thanks

Changed in openldap (Ubuntu):
status: New → Incomplete
Revision history for this message
Omar BOURAS (omar-bouras) wrote :

Thank You for the answers.
I have followed the steps that You mentionned. However I got this message when executing sudo apt-get -f install
  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=example,dc=com"; did you mean to use database #2 (dc=example,dc=com)?
dpkg : erreur de traitement de slapd (--configure) :
 le sous-processus script post-installation installé a retourné une erreur de sortie d'état 1
Des erreurs ont été rencontrées pendant l'exécution :
 slapd
E: Sub-process /usr/bin/dpkg returned an error code (1)
It is to notice that I already have a slapd configured
B.R

Revision history for this message
Omar BOURAS (omar-bouras) wrote :

According to what mentionned in the error, I have alreaddy configured the slapd in my previous version of ubuntu 11.10 with the DN dc=example,dc=com

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.