[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: slapd no response





--On Tuesday, April 11, 2006 5:01 PM -0400 matthew sporleder <msporleder@gmail.com> wrote:

  Our openldap 2.2.24 running on Solaris 9 x86  suddently stopped
  functioning this morning:( .

   It can still be started up but doesn't give any response to queries:

  # ps -ef |grep slapd
        root   648     1  0 11:18:33 ?        0:00
        /usr/local/libexec/slapd -h ldap:/// ldaps:///

  # ldapsearch -x "uid=guest,ou=people,dc=example,dc=com" -wsecret
  # "uid=tech"
ldap_bind: Can't contact LDAP server (-1)

  Only kill -9 can stop the process. kill -INT or kill -TERM doesn't
  work.

Try turning on more logging and using -d on ldapsearch. Can you show the full command you use to start slapd? Use /usr/ucb/ps -auxwwww Is it showing up on netstat? Do you have other system problems? (full disks, etc?)

Since you did a kill -9, you've corrupted the BDB environment, which is why it won't restart correctly.


OL 2.2 does not have the automatic BDB database recovery that OpenLDAP 2.3 has, which is a good reason to upgrade.

You need to find the "db_recover" tool for your specific version of the BDB backend. After stopping slapd, cd to your database directory, and run the db_recover command. Then start slapd.

--Quanah

--
Quanah Gibson-Mount
Principal Software Developer
ITS/Shared Application Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html