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

Re: slapd won't start and problems with syslog

matthew sporleder wrote:
On 4/13/07, Tim Garton <tim.garton@monsoonworks.com> wrote:
    Running OpenLDAP 2.3.32 on Ubuntu 6.06.1 x86.  slapd fails to start.
  If anyone could shed some light on why that would be great.  Below is
strace output.  It looks like it is having some problems with syslog.
Is there anyway to have slapd use some other logging mechanism?

munmap(0xb7f70000, 4096)                = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1017, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1017, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1017, ...}) = 0
send(3, "<167>Apr  6 08:54:40 slapd[28178"..., 145, MSG_NOSIGNAL

and slapd hangs at this point.

Instead of jumping right to strace, can you post the output of starting slapd with full debugging? (slapd -d -1)

No point in that. The strace output clearly shows that syslog() is hanging. Specifically, the send() on the Unix Domain socket that the syslog daemon ought to be listening on. This is obviously a problem with either the OS or the syslog daemon, and no amount of OpenLDAP debugging will shed any further light on it. The right way to solve this problem is to identify why the syslog daemon isn't listening, but that's not a question for the OpenLDAP Software list to resolve.

The workaround, to disable slapd's use of syslog, is to read the slapd(8) manpage and look at the command line options pertaining to syslog.
-- Howard Chu
Chief Architect, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/