Packy n00b
Joined: 03 Apr 2004 Posts: 16 Location: Sweden
|
Posted: Fri Jun 17, 2005 11:08 am Post subject: hald times out while talking to dbus [SOLVED] |
|
|
I've had some serious problems gettings my hal-daemon up and running since a few "world-updates" ago. The init-scripts tells me that hald starts properly, but the daemon dies as soon as it's started. I've investigated it a little bit further, and this is what hald says:
Code: |
badger lib # hald --daemon=no --verbose=yes
13:00:45.400 [I] hald.c:394: hal 0.4.8
13:00:45.400 [I] hald.c:398: Will not daemonize
13:00:45.401 [E] hald_dbus.c:1934: dbus_bus_get(): No reply within specified time
|
So, there's some problem with the communication between the daemons. I also used strace to see if it actually did connect to the dbus-socket (/var/lib/dbus/system_bus_socket):
Code: |
badger lib # strace hald --daemon=no --verbose=yes
...
connect(5, {sa_family=AF_FILE, path="/var/lib/dbus/system_bus_socket"}, 110) = 0
fcntl(5, F_GETFL) = 0x2 (flags O_RDWR)
fcntl(5, F_SETFL, O_RDWR|O_NONBLOCK) = 0
fcntl(5, F_GETFD) = 0
fcntl(5, F_SETFD, FD_CLOEXEC) = 0
getuid() = 0
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
poll([{fd=5, events=POLLOUT, revents=POLLOUT}], 1, 0) = 1
write(5, "\0", 1) = 1
write(5, "AUTH EXTERNAL 30\r\n", 18) = 18
poll([{fd=5, events=POLLIN, revents=POLLIN}], 1, -1) = 1
read(5, "OK\r\n", 2048) = 4
poll([{fd=5, events=POLLOUT, revents=POLLOUT}], 1, -1) = 1
write(5, "BEGIN\r\n", 7) = 7
poll([{fd=5, events=POLLIN|POLLOUT, revents=POLLIN|POLLOUT|POLLHUP}], 1, -1) = 1
read(5, "", 2048) = 0 <--- this shouldn't be empty, right?
close(5) = 0
open("/etc/localtime", O_RDONLY) = 5
fstat(5, {st_mode=S_IFREG|0644, st_size=675, ...}) = 0
close(5) = 0
write(2, "13:02:31.041 [E] hald_dbus.c:193"..., 8213:02:31.041 [E] hald_dbus.c:1934: dbus_bus_get(): No reply within specified time) = 82
...
|
It seems to me that hald tries to connect, but as marked in the text, should the read() really by null? I've tried to merge some different versions (i figured it could be a version inconsistency or something), but now I'm running the latest versions I could find ebuilds for and it still doesn't work.
I searched the forum and found https://forums.gentoo.org/viewtopic-t-233500-highlight-hald.html but that didn't solve my problem. Anyone with the same problem or a solution?
EDIT: The solution for this problem: https://forums.gentoo.org/viewtopic.php?p=1207156 _________________ "If that makes any sense to you, you have a big problem."
-- C. Durance, Computer Science 234 |
|