Dear, all. I googled and found some people mentioned that openldap does not work under Xen with db database backends and the information were from 2006 http://www.openldap.org/lists/openldap-software/200603/msg00199.html. I actually encountered this myself and I am not sure if this is still the same problem.
Openldap and DB were compiled and installed from sources and everything was configure manually. My /etc/hosts include entry such as:
192.168.10.119 alfresco.mynetwork.com alfresco.
[root@alfresco ~]# hostname alfresco.mynetwork.com [root@alfresco ~]# hostname -f alfresco.mynetwork.com
Could some experts please look into this problem and suggest ways to fix it?
Thank you.
Attached is the output for strace for this problem and below is the part where the problem started.
2499 open("/etc/hosts", O_RDONLY) = 4 2499 fcntl(4, F_GETFD) = 0 2499 fcntl(4, F_SETFD, FD_CLOEXEC) = 0 2499 fstat(4, {st_mode=S_IFREG|0644, st_size=294, ...}) = 0 2499 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b32b87fd000 2499 read(4, "# Do not remove the following li"..., 4096) = 294 2499 close(4) = 0 2499 munmap(0x2b32b87fd000, 4096) = 0 2499 getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0 2499 pipe([4, 5]) = 0 2499 epoll_create(1024) = 6 2499 open("/etc/gai.conf", O_RDONLY) = -1 ENOENT (No such file or directory) 2499 futex(0x3f837509a8, FUTEX_WAKE, 2147483647) = 0 2499 socket(PF_NETLINK, SOCK_RAW, 0) = 7 2499 bind(7, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0 2499 getsockname(7, {sa_family=AF_NETLINK, pid=2499, groups=00000000}, [17449945317507072012]) = 0 2499 time(NULL) = 1237846847 2499 sendto(7, "\24\0\0\0\26\0\1\3?\v\310I\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20 2499 connect(7, {sa_family=AF_INET6, sin6_port=htons(389), inet_pton(AF_INET6, "::", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = 0 2499 getsockname(7, {sa_family=AF_INET6, sin6_port=htons(42391), inet_pton(AF_INET6, "::1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [8589934620]) = 0 2499 close(7) = 0 2499 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 7 2499 connect(7, {sa_family=AF_INET, sin_port=htons(389), sin_addr=inet_addr("0.0.0.0")}, 16) = 0 2499 getsockname(7, {sa_family=AF_INET, sin_port=htons(52357), sin_addr=inet_addr("127.0.0.1")}, [8589934608]) = 0 2499 close(7) = 0 2499 socket(PF_INET6, SOCK_STREAM, IPPROTO_IP) = 7 2499 setsockopt(7, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0 2499 setsockopt(7, SOL_IPV6, IPV6_V6ONLY, [1], 4) = 0 2499 bind(7, {sa_family=AF_INET6, sin6_port=htons(389), inet_pton(AF_INET6, "::", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = 0 2499 socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 8 2499 setsockopt(8, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0 2499 bind(8, {sa_family=AF_INET, sin_port=htons(389), sin_addr=inet_addr("0.0.0.0")}, 16) = 0 2499 time([1237846847]) = 1237846847 2499 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0 2499 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0 2499 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0 2499 sendto(3, "<167>Mar 23 15:20:47 slapd[2499]"..., 72, MSG_NOSIGNAL, NULL, 0) = 72 2499 time([1237846847]) = 1237846847 2499 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0 2499 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0 2499 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0 2499 sendto(3, "<167>Mar 23 15:20:47 slapd[2499]"..., 49, MSG_NOSIGNAL, NULL, 0) = 49 2499 close(3) = 0 2499 time([1237846847]) = 1237846847 2499 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0 2499 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0 2499 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0 2499 socket(PF_FILE, SOCK_DGRAM, 0) = 3 2499 fcntl(3, F_SETFD, FD_CLOEXEC) = 0 2499 connect(3, {sa_family=AF_FILE, path="/dev/log"}, 110) = 0 2499 sendto(3, "<167>Mar 23 15:20:47 slapd[2499]"..., 75, MSG_NOSIGNAL, NULL, 0) = 75 2499 shutdown(5, 2 /* send and receive */) = -1 ENOTSOCK (Socket operation on non-socket) 2499 close(5) = 0 2499 shutdown(4, 2 /* send and receive */) = -1 ENOTSOCK (Socket operation on non-socket) 2499 close(4) = 0 2499 close(6) = 0 2499 exit_group(1) = ? 2498 <... wait4 resumed> [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 2499 2498 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 2498 --- SIGCHLD (Child exited) @ 0 (0) --- 2498 wait4(-1, 0x7fffedefdfc4, WNOHANG, NULL) = -1 ECHILD (No child processes) 2498 rt_sigreturn(0xffffffffffffffff) = 0 2498 rt_sigaction(SIGINT, {SIG_IGN}, {SIG_IGN}, 8) = 0 2498 exit_group(1) = ? 2470 <... wait4 resumed> [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 2498 2470 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 2470 --- SIGCHLD (Child exited) @ 0 (0) --- 2470 wait4(-1, 0x7fffec338194, WNOHANG, NULL) = -1 ECHILD (No child processes) 2470 rt_sigreturn(0xffffffffffffffff) = 0 2470 rt_sigaction(SIGINT, {SIG_IGN}, {SIG_IGN}, 8) = 0 2470 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 2470 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 2470 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 2470 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 2470 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 2470 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 2470 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 2470 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 2470 write(1, "\33[60G", 5) = 5 2470 write(1, "[", 1) = 1 2470 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 2470 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 2470 write(1, "\33[0;31m", 7) = 7 2470 write(1, "FAILED", 6) = 6 2470 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 2470 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 2470 write(1, "\33[0;39m", 7) = 7 2470 write(1, "]", 1) = 1 2470 write(1, "\r", 1) = 1 2470 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 2470 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 2470 stat("/usr/bin/rhgb-client", {st_mode=S_IFREG|0755, st_size=13704, ...}) = 0 2470 geteuid() = 0 2470 getegid() = 0 2470 getuid() = 0 2470 getgid() = 0 2470 access("/usr/bin/rhgb-client", X_OK) = 0 2470 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 2470 rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0 2470 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x2b1cbe77fe50) = 2500 2500 close(255 <unfinished ...> 2470 rt_sigprocmask(SIG_SETMASK, [], <unfinished ...> 2500 <... close resumed> ) = 0
On Mon, Mar 23, 2009 at 3:57 PM, Steven Truong midair77@gmail.com wrote:
Dear, all. I googled and found some people mentioned that openldap does not work under Xen with db database backends and the information were from 2006 http://www.openldap.org/lists/openldap-software/200603/msg00199.html. I actually encountered this myself and I am not sure if this is still the same problem.
Openldap and DB were compiled and installed from sources and everything was configure manually. My /etc/hosts include entry such as:
192.168.10.119 alfresco.mynetwork.com alfresco.
[root@alfresco ~]# hostname alfresco.mynetwork.com [root@alfresco ~]# hostname -f alfresco.mynetwork.com
Could some experts please look into this problem and suggest ways to fix it?
Thank you.
Attached is the output for strace for this problem and below is the part where the problem started.
2499 open("/etc/hosts", O_RDONLY) = 4 2499 fcntl(4, F_GETFD) = 0 2499 fcntl(4, F_SETFD, FD_CLOEXEC) = 0 2499 fstat(4, {st_mode=S_IFREG|0644, st_size=294, ...}) = 0 2499 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b32b87fd000 2499 read(4, "# Do not remove the following li"..., 4096) = 294 2499 close(4) = 0 2499 munmap(0x2b32b87fd000, 4096) = 0 2499 getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0 2499 pipe([4, 5]) = 0 2499 epoll_create(1024) = 6 2499 open("/etc/gai.conf", O_RDONLY) = -1 ENOENT (No such file or directory) 2499 futex(0x3f837509a8, FUTEX_WAKE, 2147483647) = 0 2499 socket(PF_NETLINK, SOCK_RAW, 0) = 7 2499 bind(7, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0 2499 getsockname(7, {sa_family=AF_NETLINK, pid=2499, groups=00000000}, [17449945317507072012]) = 0 2499 time(NULL) = 1237846847 2499 sendto(7, "\24\0\0\0\26\0\1\3?\v\310I\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20 2499 connect(7, {sa_family=AF_INET6, sin6_port=htons(389), inet_pton(AF_INET6, "::", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = 0 2499 getsockname(7, {sa_family=AF_INET6, sin6_port=htons(42391), inet_pton(AF_INET6, "::1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [8589934620]) = 0 2499 close(7) = 0 2499 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 7 2499 connect(7, {sa_family=AF_INET, sin_port=htons(389), sin_addr=inet_addr("0.0.0.0")}, 16) = 0 2499 getsockname(7, {sa_family=AF_INET, sin_port=htons(52357), sin_addr=inet_addr("127.0.0.1")}, [8589934608]) = 0 2499 close(7) = 0 2499 socket(PF_INET6, SOCK_STREAM, IPPROTO_IP) = 7 2499 setsockopt(7, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0 2499 setsockopt(7, SOL_IPV6, IPV6_V6ONLY, [1], 4) = 0 2499 bind(7, {sa_family=AF_INET6, sin6_port=htons(389), inet_pton(AF_INET6, "::", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = 0 2499 socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 8 2499 setsockopt(8, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0 2499 bind(8, {sa_family=AF_INET, sin_port=htons(389), sin_addr=inet_addr("0.0.0.0")}, 16) = 0 2499 time([1237846847]) = 1237846847 2499 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0 2499 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0 2499 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0 2499 sendto(3, "<167>Mar 23 15:20:47 slapd[2499]"..., 72, MSG_NOSIGNAL, NULL, 0) = 72 2499 time([1237846847]) = 1237846847 2499 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0 2499 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0 2499 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0 2499 sendto(3, "<167>Mar 23 15:20:47 slapd[2499]"..., 49, MSG_NOSIGNAL, NULL, 0) = 49 2499 close(3) = 0 2499 time([1237846847]) = 1237846847 2499 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0 2499 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0 2499 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0 2499 socket(PF_FILE, SOCK_DGRAM, 0) = 3 2499 fcntl(3, F_SETFD, FD_CLOEXEC) = 0 2499 connect(3, {sa_family=AF_FILE, path="/dev/log"}, 110) = 0 2499 sendto(3, "<167>Mar 23 15:20:47 slapd[2499]"..., 75, MSG_NOSIGNAL, NULL, 0) = 75 2499 shutdown(5, 2 /* send and receive */) = -1 ENOTSOCK (Socket operation on non-socket) 2499 close(5) = 0 2499 shutdown(4, 2 /* send and receive */) = -1 ENOTSOCK (Socket operation on non-socket) 2499 close(4) = 0 2499 close(6) = 0 2499 exit_group(1) = ? 2498 <... wait4 resumed> [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 2499 2498 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 2498 --- SIGCHLD (Child exited) @ 0 (0) --- 2498 wait4(-1, 0x7fffedefdfc4, WNOHANG, NULL) = -1 ECHILD (No child processes) 2498 rt_sigreturn(0xffffffffffffffff) = 0 2498 rt_sigaction(SIGINT, {SIG_IGN}, {SIG_IGN}, 8) = 0 2498 exit_group(1) = ? 2470 <... wait4 resumed> [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 2498 2470 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 2470 --- SIGCHLD (Child exited) @ 0 (0) --- 2470 wait4(-1, 0x7fffec338194, WNOHANG, NULL) = -1 ECHILD (No child processes) 2470 rt_sigreturn(0xffffffffffffffff) = 0 2470 rt_sigaction(SIGINT, {SIG_IGN}, {SIG_IGN}, 8) = 0 2470 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 2470 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 2470 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 2470 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 2470 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 2470 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 2470 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 2470 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 2470 write(1, "\33[60G", 5) = 5 2470 write(1, "[", 1) = 1 2470 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 2470 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 2470 write(1, "\33[0;31m", 7) = 7 2470 write(1, "FAILED", 6) = 6 2470 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 2470 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 2470 write(1, "\33[0;39m", 7) = 7 2470 write(1, "]", 1) = 1 2470 write(1, "\r", 1) = 1 2470 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 2470 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 2470 stat("/usr/bin/rhgb-client", {st_mode=S_IFREG|0755, st_size=13704, ...}) = 0 2470 geteuid() = 0 2470 getegid() = 0 2470 getuid() = 0 2470 getgid() = 0 2470 access("/usr/bin/rhgb-client", X_OK) = 0 2470 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 2470 rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0 2470 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x2b1cbe77fe50) = 2500 2500 close(255 <unfinished ...> 2470 rt_sigprocmask(SIG_SETMASK, [], <unfinished ...> 2500 <... close resumed> ) = 0
--On Monday, March 23, 2009 3:57 PM -0700 Steven Truong midair77@gmail.com wrote:
Dear, all. I googled and found some people mentioned that openldap does not work under Xen with db database backends and the information were from 2006 http://www.openldap.org/lists/openldap-software/200603/msg00199.html. I actually encountered this myself and I am not sure if this is still the same problem.
What options did you build BDB 4.7 with? Did you include *all 3 required patches*? Also, I don't find anything useful in the strace output you provided. I rather see some useful error message of what you are encountering, etc.
--Quanah
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
openldap-software@openldap.org