[Bug 611526] Re: package slapd 2.4.21-0ubuntu5.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 143

Arjan 611526 at bugs.launchpad.net
Fri Jul 30 18:09:55 BST 2010


Hi,

first of all, just started my laptop, again which runs the ldap, and noticed no hanging ldap startup, but also no running process.
tried by hand, bu no hangs, just an error (as below).


as requested, copied the DB_CONFIG file, i've seen this DB_CONFIG message
before, but for my purpose it didn;t matter much

now  after coping (DB_CONFIG) i get:

root at arfi-laptop:/etc/init.d# /etc/init.d/slapd start
Starting OpenLDAP: slapd - failed: 
@(#) $OpenLDAP: slapd 2.4.21 (Jul 28 2010 11:13:04) $
	buildd at crested:/build/buildd/openldap-2.4.21/debian/build/servers/slapd
daemon: bind(10) failed errno=2 (No such file or directory)
slapd stopped.
connections_destroy: nothing to destroy.
root at arfi-laptop:/etc/init.d# 


my /var/log/syslog says:
Jul 30 18:35:42 arfi-laptop slapd[3860]: @(#) $OpenLDAP: slapd 2.4.21 (Jul 28 2010 11:13:04) $#012#011buildd at crested:/build/buildd/openldap-2.4.21/debian/build/servers/slapd
Jul 30 18:35:42 arfi-laptop rsyslogd: Could not open dynamic file '/tmp/allmessages' - discarding message
Jul 30 18:35:42 arfi-laptop slapd[3860]: daemon: bind(10) failed errno=2 (No such file or directory)
Jul 30 18:35:42 arfi-laptop slapd[3860]: slapd stopped.
Jul 30 18:35:42 arfi-laptop slapd[3860]: connections_destroy: nothing to destroy.


another tip,  to disable debugging by emty-ing the SLAPD_OPTIONS= in /etc/default.slapd, results in a little other message:
root at arfi-laptop:/etc/init.d# /etc/init.d/slapd start
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 
root at arfi-laptop:/etc/init.d# 


now, debugging again but then manually:
root at arfi-laptop:/etc/init.d# slapd -h 'ldap:/// ldapi:///' -g openldap -u openldap -F /etc/ldap/slapd.d -d 16383
@(#) $OpenLDAP: slapd 2.4.21 (Jul 28 2010 11:13:04) $
	buildd at crested:/build/buildd/openldap-2.4.21/debian/build/servers/slapd
ldap_pvt_gethostbyname_a: host=arfi-laptop, 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.
root at arfi-laptop:/etc/init.d# 


so it looks like it will complain about the ldapi:///

after removing the ldapi:/// it just seems starting fine
root at arfi-laptop:/etc/init.d# slapd -h 'ldap:///' -g openldap -u openldap -F /etc/ldap/slapd.d 
root at arfi-laptop:/etc/init.d# ps aux|grep slapd
openldap  3912  4.7 10.9 2751228 435380 ?      Ssl  18:44   0:00 slapd -h ldap:/// -g openldap -u openldap -F /etc/ldap/slapd.d
root      3918  0.0  0.0   7620   932 pts/0    S+   18:44   0:00 grep --color=auto slapd
root at arfi-laptop:/etc/init.d# 



Basically i never looked at the ldapi:/// but as i read now it's an IPC connector which should be faster then a regular socket.
attached a strace output , created as:
 strace -o /tmp/strace.txt -f slapd -h 'ldap:/// ldapi:///' -g openldap -u openldap -F /etc/ldap/slapd.d

ant attached the strace.txt file.
it looks like it's about the folowing:
4092  unlink("/var/run/slapd/ldapi")    = -1 ENOENT (No such file or directory)
4092  bind(9, {sa_family=AF_FILE, path="/var/run/slapd/ldapi"}, 110) = -1 ENOENT (No such file or directory)

Regards,


** Attachment added: "strace  output of the ldapi error"
   http://launchpadlibrarian.net/52744110/strace.txt

-- 
package slapd 2.4.21-0ubuntu5.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 143
https://bugs.launchpad.net/bugs/611526
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openldap in ubuntu.



More information about the Ubuntu-server-bugs mailing list