package slapd 2.4.21-0ubuntu5.2 failed to install/upgrade

Bug #615736 reported by flamma
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openldap (Ubuntu)
Incomplete
Medium
Unassigned

Bug Description

I saw there is another ticket with problems with this package installation, but I this is a different version, and I think the problem is different.

I think the extra information asked has been automatically attached to the bug.

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 09:24:58 2010
ErrorMessage: el subproceso script post-installation instalado devolvió el código de salida de error 1
SourcePackage: openldap
Title: package slapd 2.4.21-0ubuntu5.2 failed to install/upgrade: el subproceso script post-installation instalado devolvió el código de salida de error 1

Revision history for this message
flamma (flamma-member) 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 logs:

Configurando slapd (2.4.21-0ubuntu5.2) ...
  Backing up /etc/ldap/slapd.d/ in /var/backups/slapd-2.4.21-0ubuntu5... done.
  Enabling LDAPv2 support... 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 the /var/log/syslog file to figure out what may have gone wrong?
Could you run the following command as root to figure out why slapd is failing to start:

 slapd -h 'ldap:/// ldapi:///' -g openldap -u openldap -F /etc/ldap/slapd.d/ -d 16383

Changed in openldap (Ubuntu):
status: New → Incomplete
importance: Undecided → Medium
Revision history for this message
flamma (flamma-member) wrote :

Output you asked for:

sudo slapd -h 'ldap:/// ldapi:///' -g openldap -u openldap -F /etc/ldap/slapd.d/ -d 16383
@(#) $OpenLDAP: slapd 2.4.21 (Jul 30 2010 01:09:23) $
 buildd@rothera:/build/buildd/openldap-2.4.21/debian/build/servers/slapd
ldap_pvt_gethostbyname_a: host=fanna, r=0
daemon_init: ldap:/// ldapi:///
daemon_init: listen on ldap:///
daemon_init: listen on ldapi:///
daemon_init: 2 listeners to open...
ldap_url_parse_ext(ldap:///)
daemon: listener initialized ldap:///
ldap_url_parse_ext(ldapi:///)
daemon: bind(9) failed errno=2 (No such file or directory)
slap_open_listener: failed on ldapi:///
slapd stopped.
connections_destroy: nothing to destroy.

After executing it, syslog appears to have exactly the same information, so it would be quite redundant. If you need it, ask again.

I can't find right now what were the syslog entries when trying to install. It was some time ago.

Thank you for your time.

Thierry Carrez (ttx)
Changed in openldap (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Mathias Gug (mathiaz) wrote :

> sudo slapd -h 'ldap:/// ldapi:///' -g openldap -u openldap -F /etc/ldap/slapd.d/ -d 16383
> @(#) $OpenLDAP: slapd 2.4.21 (Jul 30 2010 01:09:23) $
> buildd@rothera:/build/buildd/openldap-2.4.21/debian/build/servers/slapd
> ldap_pvt_gethostbyname_a: host=fanna, r=0
> daemon_init: ldap:/// ldapi:///
> daemon_init: listen on ldap:///
> daemon_init: listen on ldapi:///
> daemon_init: 2 listeners to open...
> ldap_url_parse_ext(ldap:///)
> daemon: listener initialized ldap:///
> ldap_url_parse_ext(ldapi:///)
> daemon: bind(9) failed errno=2 (No such file or directory)

Here is the error. We should try to find out which file slapd is trying
to open.

Could you strace the process to figure out which directory or file slapd
is trying to open for ldapi?

  sudo strace slapd -h 'ldap:/// ldapi:///' -g openldap -u openldap -F /etc/ldap/slapd.d/ -d 16383

Changed in openldap (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
flamma (flamma-member) wrote :

I supposed it was a bad configuration file, but I didn't find anything wrong (although I'm not very skilled with openldap). And I have not touched it in years.

Here you have the strace slapd output, as asked.

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

Looking at the strace, it seems that slapd fails with a different error now:

config error processing olcDatabase={-1}frontend,cn=config: ordered_value_sort failed on attr olcAccess

This is bug 571057.

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.