[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
slapd fails to start
Hi again,
when I try to start slapd 2.0.0 on my Debian GNU/Linux 2.2 system, it
exits immediately and the following is logged to syslog:
slapd[20042]: daemon: socket() failed errno=22 (Invalid argument)
slapd[20042]: daemon: bind(6) failed errno=14 (Bad address)
slapd[20042]: daemon: bind(6) failed
slapd[20042]: slapd stopped.
You'll find below the end of a strace log...
The question is what does slapd try to do with IPv6 sockets ?
--
Laurent.
[...]
open("ldaprc", O_RDONLY) = -1 ENOENT (No such file or directory)
socket(PF_UNIX, SOCK_DGRAM, 0) = 3
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
connect(3, {sin_family=AF_UNIX, path=" /dev/log"}, 16) = -1 EPROTOTYPE (Pro tocol wrong type for socket)
close(3) = 0
socket(PF_UNIX, SOCK_STREAM, 0) = 3
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
connect(3, {sin_family=AF_UNIX, path=" /dev/log"}, 16) = 0
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
pipe([4, 5]) = 0
socket(PF_INET6, SOCK_STREAM, 0) = -1 ENOSYS (Function not implemented)
socket(PF_INET6, SOCK_STREAM, 0) = -1 ENOSYS (Function not implemented)
socket(PF_INET6, SOCK_STREAM, 0) = -1 EINVAL (Invalid argument)
time([967930143]) = 967930143
open("/etc/localtime", O_RDONLY) = 6
read(6, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\f\0\0\0\f\0"..., 44) = 44
read(6, "\221`PO\233Gx\360\233\327,p\234\274\221p\235\300H\360\236"..., 915) = 9 15
fstat(6, {st_mode=S_IFREG|0644, st_size=1082, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0 x40014000
read(6, "\0\0\0021\0\0\0\0\16\20\1\4\0\0\0\0\0\t\0\0\16\20\1\4\0"..., 4096) = 12 3
close(6) = 0
munmap(0x40014000, 4096) = 0
getpid() = 9262
rt_sigaction(SIGPIPE, {0x4022aeec, [], 0x4000000}, {SIG_DFL}, 8) = 0
send(3, "<167>Sep 2 23:29:03 slapd[9262]"..., 87, 0) = 87
rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 6
setsockopt(6, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
setsockopt(6, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0
setsockopt(6, IPPROTO_TCP1, [1], 4) = 0
bind(6, NULL, 16) = -1 EFAULT (Bad address)
time([967930143]) = 967930143
getpid() = 9262
rt_sigaction(SIGPIPE, {0x4022aeec, [], 0x4000000}, {SIG_DFL}, 8) = 0
send(3, "<167>Sep 2 23:29:03 slapd[9262]"..., 81, 0) = 81
rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0
close(6) = 0
time([967930143]) = 967930143
getpid() = 9262
rt_sigaction(SIGPIPE, {0x4022aeec, [], 0x4000000}, {SIG_DFL}, 8) = 0
send(3, "<167>Sep 2 23:29:03 slapd[9262]"..., 58, 0) = 58
rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0
time([967930143]) = 967930143
getpid() = 9262
rt_sigaction(SIGPIPE, {0x4022aeec, [], 0x4000000}, {SIG_DFL}, 8) = 0
send(3, "<167>Sep 2 23:29:03 slapd[9262]"..., 50, 0) = 50
rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0
close(3) = 0
time([967930143]) = 967930143
getpid() = 9262
rt_sigaction(SIGPIPE, {0x4022aeec, [], 0x4000000}, {SIG_DFL}, 8) = 0
socket(PF_UNIX, SOCK_DGRAM, 0) = 3
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
connect(3, {sin_family=AF_UNIX, path=" /dev/log"}, 16) = -1 EPROTOTYPE (Pro tocol wrong type for socket)
close(3) = 0
socket(PF_UNIX, SOCK_STREAM, 0) = 3
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
connect(3, {sin_family=AF_UNIX, path=" /dev/log"}, 16) = 0
send(3, "<167>Sep 2 23:29:03 slapd[9262]"..., 76, 0) = 76
rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0
close(5) = 0
close(4) = 0
_exit(1) = ?