package slapd 2.4.21-0ubuntu5.2 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #615846 reported by John Donlan
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openldap (Ubuntu)
Incomplete
Medium
Unassigned

Bug Description

Running Ubuntu 10.04 LTS
Routine update manager run when it crashed.
Seems similar to bugs:
577375
611526

ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: slapd 2.4.21-0ubuntu5.2
ProcVersionSignature: Ubuntu 2.6.32-24.39-generic 2.6.32.15+drm33.5
Uname: Linux 2.6.32-24-generic i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Tue Aug 10 08:25:52 2010
ErrorMessage: subprocess installed post-installation script returned error exit status 1
SourcePackage: openldap
Title: package slapd 2.4.21-0ubuntu5.2 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Revision history for this message
John Donlan (jdonlan) wrote :
Revision history for this message
Mathias Gug (mathiaz) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

According to the log files:

Setting up slapd (2.4.21-0ubuntu5.2) ...
  Backing up /etc/ldap/slapd.d/ in /var/backups/slapd-2.4.21-0ubuntu5... done.
Starting OpenLDAP: slapd - failed.
The operation failed but no output was produced. For hints on what went
wrong please refer to the system's logfiles (e.g. /var/log/syslog) or
try running the daemon in Debug mode like via "slapd -d 16383" (warning:
this will create copious output).

Below, you can find the command line options used by this script to
run slapd. Do not forget to specify those options if you
want to look to debugging output:
  slapd -h 'ldap:/// ldapi:///' -g openldap -u openldap -F /etc/ldap/slapd.d/
invoke-rc.d: initscript slapd, action "start" failed.

Could you look at and attach /var/log/syslog to help figuring out why slapd failed to restart?

Changed in openldap (Ubuntu):
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
John Donlan (jdonlan) wrote :

Mathias,
Glad to do what I can to help but bear in mind I'm no Linux expert :)
That said, this seems to be the relevant part of syslog:

Aug 10 08:04:57 KSC-LNXS-004 rsyslogd: [origin software="rsyslogd" swVersion="4.2.0" x-pid="602" x-info="http://www.rsyslog.com"] rsyslogd was HUPed, type 'lightweight'.
Aug 10 08:05:01 KSC-LNXS-004 CRON[30638]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Aug 10 08:06:15 KSC-LNXS-004 anacron[29943]: Job `cron.daily' terminated
Aug 10 08:06:15 KSC-LNXS-004 anacron[29943]: Normal exit (1 job run)
Aug 10 08:09:01 KSC-LNXS-004 CRON[30724]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs -n 200 -r -0 rm)
Aug 10 08:15:01 KSC-LNXS-004 CRON[30814]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Aug 10 08:17:01 KSC-LNXS-004 CRON[30844]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Aug 10 08:25:01 KSC-LNXS-004 CRON[30976]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Aug 10 08:25:50 KSC-LNXS-004 kernel: [431628.850395] __ratelimit: 12 callbacks suppressed
Aug 10 08:25:50 KSC-LNXS-004 kernel: [431628.850400] type=1505 audit(1281443150.718:20): operation="profile_replace" pid=31546 name="/usr/sbin/slapd"
Aug 10 08:25:51 KSC-LNXS-004 slapd[31569]: @(#) $OpenLDAP: slapd 2.4.21 (Jul 30 2010 01:09:23) $#012#011buildd@rothera:/build/buildd/openldap-2.4.21/debian/build/servers/slapd
Aug 10 08:25:51 KSC-LNXS-004 slapd[31569]: config error processing olcDatabase={-1}frontend,cn=config: ordered_value_sort failed on attr olcAccess#012
Aug 10 08:25:51 KSC-LNXS-004 slapd[31569]: slapd stopped.
Aug 10 08:25:51 KSC-LNXS-004 slapd[31569]: connections_destroy: nothing to destroy.
Aug 10 08:26:05 KSC-LNXS-004 kernel: [431643.280097] type=1505 audit(1281443165.147:21): operation="profile_replace" pid=31685 name="/usr/sbin/slapd"
Aug 10 08:26:05 KSC-LNXS-004 slapd[31708]: @(#) $OpenLDAP: slapd 2.4.21 (Jul 30 2010 01:09:23) $#012#011buildd@rothera:/build/buildd/openldap-2.4.21/debian/build/servers/slapd
Aug 10 08:26:05 KSC-LNXS-004 slapd[31708]: config error processing olcDatabase={-1}frontend,cn=config: ordered_value_sort failed on attr olcAccess#012
Aug 10 08:26:05 KSC-LNXS-004 slapd[31708]: slapd stopped.
Aug 10 08:26:05 KSC-LNXS-004 slapd[31708]: connections_destroy: nothing to destroy.
Aug 10 08:35:01 KSC-LNXS-004 CRON[31833]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Aug 10 08:39:01 KSC-LNXS-004 CRON[31891]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs -n 200 -r -0 rm)
Aug 10 08:45:01 KSC-LNXS-004 CRON[31979]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Aug 10 08:55:01 KSC-LNXS-004 CRON[32114]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Aug 10 09:00:01 KSC-LNXS-004 CRON[32292]: (root) CMD (http://localhost/KXTH/cron.php # JOB_ID_4)

Let me know if you need anything else.
John

Revision history for this message
Mathias Gug (mathiaz) wrote : Re: [Bug 615846] Re: package slapd 2.4.21-0ubuntu5.2 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Excerpts from John Donlan's message of Tue Aug 10 16:18:10 UTC 2010:
> Mathias,
> Aug 10 08:25:51 KSC-LNXS-004 slapd[31569]: @(#) $OpenLDAP: slapd 2.4.21 (Jul 30 2010 01:09:23) $#012#011buildd@rothera:/build/buildd/openldap-2.4.21/debian/build/servers/slapd
> Aug 10 08:25:51 KSC-LNXS-004 slapd[31569]: config error processing olcDatabase={-1}frontend,cn=config: ordered_value_sort failed on attr olcAccess#012

What's the history of this system? Was this system running jaunty at
some point then upgraded to karmic and then lucid?

Could you attach the following file to the bug?

/etc/ldap/slapd.d/cn=config/olcDatabase={-1}frontend.ldif

--
Mathias Gug
Ubuntu Developer http://www.ubuntu.com

Revision history for this message
John Donlan (jdonlan) wrote :

Mathias,
Yes, this file has been upgraded through several iterations of Ubuntu, not sure which one I started at.
Requested file attached.
John

Revision history for this message
John Donlan (jdonlan) wrote :

That should have read "this computer" not "this file".

Revision history for this message
Mathias Gug (mathiaz) wrote :

 Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 571057, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

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.