Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
hald times out while talking to dbus [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Packy
n00b
n00b


Joined: 03 Apr 2004
Posts: 16
Location: Sweden

PostPosted: Fri Jun 17, 2005 11:08 am    Post subject: hald times out while talking to dbus [SOLVED] Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum