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

Problem with LDAP server on SLES9



Suddenly my small SLES9 OpenLDAP server stopped responding, and
restarting does not help. Even telnet localhost 389 on the server fails.

/var/log/messages only says

Aug  2 15:03:01 bgnl1-2 slapd[18263]: @(#) $OpenLDAP: slapd 2.2.24 (Nov
17 2005 20:57:08) $    
abuild@levi:/usr/src/packages/BUILD/openldap-2.2.24/servers/slapd

... upon starting.

The server worked nicely earlier today, but suddenly it stopped
responding, and now it won't come back up again. Any hints are welcome!

bgnl1:~ # du -hs /var/lib/ldap
5.5M    /var/lib/ldap

bgnl1:~ # time rcldap stop
Shutting down
ldap-server                                                                       
done

real    0m0.055s
user    0m0.014s
sys     0m0.038s
bgnl1:~ # time rcldap start
Starting
ldap-server                                                                            
done

real    0m11.452s
user    0m0.049s
sys     0m0.358s

bgnl1:~ # uptime
  3:03pm  up 23 days  2:51,  3 users,  load average: 0.12, 0.20, 0.20
bgnl1:~ # rcldap status
Checking for service
ldap:                                                                      
running

bgnl1:~ # telnet localhost 389
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
Trying ::1...
telnet: connect to address ::1: Connection refused

If starting manually (with params as listed in 'ps auxwwf|grep ldap'),
it starts quick, but will not stop with anything but kill -9:

bgnl1:~ # time /usr/lib/openldap/slapd -h ldap:/// -u ldap -g ldap -N

real    0m0.048s
user    0m0.002s
sys     0m0.046s

bgnl1:~ # ps auxwwf|grep ldap
ldap     19291  0.0  0.3  26632  3144 ?        Ss   15:10   0:00
/usr/lib/openldap/slapd -h ldap:/// -u ldap -g ldap -N

bgnl1:~ # telnet localhost 389
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
Trying ::1...
telnet: connect to address ::1: Connection refused

bgnl1:~ # kill 19291

bgnl1:~ # ps auxwwf|grep ldap
ldap     19291  0.0  0.3  26632  3144 ?        Ss   15:10   0:00
/usr/lib/openldap/slapd -h ldap:/// -u ldap -g ldap -N

bgnl1:~ # kill -9 19291

bgnl1:~ # ps auxwwf|grep ldap
root     19328  0.0  0.0    216    68 pts/4    R+   15:11   0:00      \_
grep ldap

bgnl1:~ # netstat | grep ldap | wc -l
0

slapcat hangs when I try running it while the LDAP server is not
running, has to be breaked to stop. strace of that is here:
<http://www.starshipping.com/~jakobbg/slapcat.txt>. Slapd.conf:
<http://www.starshipping.com/~jakobbg/slapd.conf.txt>

Any suggestions? Thanks in advance!

-- 
Jakob Breivik Grimstveit