dbus doesn't start
Jack Neely
jjneely@pams.ncsu.edu
Thu, 11 Dec 2003 17:13:49 -0500
--wac7ysb48OaltWcw
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Folks,
Need some help debugging why dbus will not start on a Fedora Core based
system. A little different from stock I also have OpenAFS, kerberos,
and hesiod setup and working although I don't know why that would cause
dbus not to start.
Running dbus-daemon-1 --system works and exits with a return value of 0
but the child process isn't left. The dbus-daemon-1 is not in ps ax and
the monitor tool can't find the address of the bus. I've attached an
strace hoping that some clue lie within. Also, in most cases the pid
file in /var/run is not left behind either.
Also, looks like dbus puts all its sockets in /tmp and /var/run/dbus,
correct? Do any sockets end up in the users' home directory? (AFS
doesn't support sockets.)
Thanks,
Jack Neely
--
Jack Neely <slack@quackmaster.net>
Realm Linux Administration and Development
PAMS Computer Operations at NC State University
GPG Fingerprint: 1917 5AC1 E828 9337 7AA4 EA6B 213B 765F 3B6A 5B89
--wac7ysb48OaltWcw
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=dbus-strace
execve("/usr/bin/dbus-daemon-1", ["dbus-daemon-1", "--system"], [/* 21 vars */]) = 0
uname({sys="Linux", node="rk-build.pams.ncsu.edu", ...}) = 0
brk(0) = 0x8311000
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=57314, ...}) = 0
old_mmap(NULL, 57314, PROT_READ, MAP_PRIVATE, 3, 0) = 0xbf5b2000
close(3) = 0
open("/usr/lib/libexpat.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\1\225"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=128272, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xbf5b1000
old_mmap(0x94e000, 129828, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x94e000
old_mmap(0x96c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1d000) = 0x96c000
close(3) = 0
open("/lib/libnsl.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\34Q"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=93028, ...}) = 0
old_mmap(0x50e000, 85248, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x50e000
old_mmap(0x520000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x11000) = 0x520000
old_mmap(0x521000, 7424, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x521000
close(3) = 0
open("/lib/tls/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@X_\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1579056, ...}) = 0
old_mmap(0x5e0000, 1279340, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x5e0000
old_mmap(0x713000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x133000) = 0x713000
old_mmap(0x716000, 9580, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x716000
close(3) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xbf5b0000
set_thread_area({entry_number:-1 -> 6, base_addr:0xbf5b0080, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0xbf5b2000, 57314) = 0
brk(0) = 0x8311000
brk(0x8332000) = 0x8332000
brk(0) = 0x8332000
open("/etc/dbus-1/system.conf", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2018, ...}) = 0
read(3, "<!-- This configuration file con"..., 2018) = 2018
close(3) = 0
open("/etc/dbus-1/system.d", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
getdents64(3, /* 3 entries */, 4096) = 80
open("/etc/dbus-1/system.d/cups.conf", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=466, ...}) = 0
read(4, "<!DOCTYPE busconfig PUBLIC \"-//f"..., 466) = 466
close(4) = 0
getuid32() = 0
socket(PF_UNIX, SOCK_STREAM, 0) = 4
connect(4, {sa_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) = 0
writev(4, [{"\2\0\0\0\1\0\0\0\2\0\0\0", 12}, {"0\0", 2}], 2) = 14
read(4, "\2\0\0\0\1\0\0\0\5\0\0\0\2\0\0\0\0\0\0\0\0\0\0\0\5\0\0"..., 36) = 36
read(4, "root\0x\0root\0/root\0/bin/bash\0", 28) = 28
close(4) = 0
open("/etc/nsswitch.conf", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=1735, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xbf5bf000
read(4, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 1735
read(4, "", 4096) = 0
close(4) = 0
munmap(0xbf5bf000, 4096) = 0
open("/etc/ld.so.cache", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=57314, ...}) = 0
old_mmap(NULL, 57314, PROT_READ, MAP_PRIVATE, 4, 0) = 0xbf5b2000
close(4) = 0
open("/lib/libnss_files.so.2", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\35\0"..., 512) = 512
fstat64(4, {st_mode=S_IFREG|0755, st_size=51152, ...}) = 0
old_mmap(NULL, 41904, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x111000
old_mmap(0x11b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0xa000) = 0x11b000
close(4) = 0
munmap(0xbf5b2000, 57314) = 0
open("/etc/group", O_RDONLY) = 4
fcntl64(4, F_GETFD) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=568, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xbf5bf000
_llseek(4, 0, [0], SEEK_CUR) = 0
read(4, "root:x:0:root\nbin:x:1:root,bin,d"..., 4096) = 568
read(4, "", 4096) = 0
close(4) = 0
munmap(0xbf5bf000, 4096) = 0
open("/etc/ld.so.cache", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=57314, ...}) = 0
old_mmap(NULL, 57314, PROT_READ, MAP_PRIVATE, 4, 0) = 0xbf5b2000
close(4) = 0
open("/lib/libnss_hesiod.so.2", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\21"..., 512) = 512
fstat64(4, {st_mode=S_IFREG|0755, st_size=19904, ...}) = 0
old_mmap(NULL, 17272, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xf41000
old_mmap(0xf45000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x3000) = 0xf45000
close(4) = 0
open("/lib/libresolv.so.2", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\350"..., 512) = 512
fstat64(4, {st_mode=S_IFREG|0755, st_size=78048, ...}) = 0
old_mmap(0x87c000, 73608, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x87c000
old_mmap(0x88b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0xf000) = 0x88b000
old_mmap(0x88c000, 8072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x88c000
close(4) = 0
munmap(0xbf5b2000, 57314) = 0
open("/etc/hesiod.conf", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=26, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xbf5bf000
read(4, "lhs=.NS\nrhs=.EOS.NCSU.EDU\n", 4096) = 26
read(4, "", 4096) = 0
close(4) = 0
munmap(0xbf5bf000, 4096) = 0
gettimeofday({1071170856, 735551}, NULL) = 0
getpid() = 28033
open("/etc/resolv.conf", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=104, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xbf5bf000
read(4, "; generated by /sbin/dhclient-sc"..., 4096) = 104
read(4, "", 4096) = 0
close(4) = 0
munmap(0xbf5bf000, 4096) = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("152.1.1.206")}, 28) = 0
send(4, "\221\227\1\0\0\1\0\0\0\0\0\0\4root\7grplist\2NS\3EOS"..., 46, 0) = 46
gettimeofday({1071170856, 736475}, NULL) = 0
poll([{fd=4, events=POLLIN, revents=POLLIN}], 1, 5000) = 1
recvfrom(4, "\221\227\205\203\0\1\0\0\0\1\0\0\4root\7grplist\2NS\3E"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("152.1.1.206")}, [16]) = 97
close(4) = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("152.1.1.206")}, 28) = 0
send(4, "\221\230\1\0\0\1\0\0\0\0\0\0\4root\7grplist\2NS\3EOS"..., 46, 0) = 46
gettimeofday({1071170856, 737486}, NULL) = 0
poll([{fd=4, events=POLLIN, revents=POLLIN}], 1, 5000) = 1
recvfrom(4, "\221\230\205\203\0\1\0\0\0\1\0\0\4root\7grplist\2NS\3E"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("152.1.1.206")}, [16]) = 101
close(4) = 0
getdents64(3, /* 0 entries */, 4096) = 0
close(3) = 0
open("/etc/dbus-1/system-local.conf", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/var/run/messagebus.pid", 0xbfec486c) = -1 ENOENT (No such file or directory)
socket(PF_UNIX, SOCK_STREAM, 0) = 3
stat64("/var/run/dbus/system_bus_socket", 0xbfec46bc) = -1 ENOENT (No such file or directory)
bind(3, {sa_family=AF_UNIX, path="/var/run/dbus/system_bus_socket"}, 110) = 0
listen(3, 30) = 0
fcntl64(3, F_GETFL) = 0x2 (flags O_RDWR)
fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
chmod("/var/run/dbus/system_bus_socket", 0777) = 0
fcntl64(3, F_GETFD) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
gettimeofday({1071170856, 739305}, NULL) = 0
chdir("/") = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xbf5b00c8) = 28034
open("/var/run/messagebus.pid", O_WRONLY|O_CREAT|O_EXCL, 0644) = 4
fcntl64(4, F_GETFL) = 0x1 (flags O_WRONLY)
fstat64(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xbf5bf000
_llseek(4, 0, [0], SEEK_CUR) = 0
write(4, "28034\n", 6) = 6
close(4) = 0
munmap(0xbf5bf000, 4096) = 0
exit_group(0) = ?
--wac7ysb48OaltWcw--