message bus

Thérèse's picture


xine and vlc have been having trouble recognizing DVDs. I tried $ udisks --poll-for-media /dev/sr1 and got this warning:

(udisks:2732): udisks-WARNING **: Couldn't connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory

After much googling, I found and tried to follow along. But # grep messagebus /etc/passwd returned nothing, and # grep messagebus /etc/group likewise returned nothing.

# pgrep dbus-daemon | xargs ps returned this:


2417 ? Ss 0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session

2661 ? Ss 0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session

Hmmm. Session bus, but no system bus?

I tried # dbus-daemon --system and got this error:

Failed to start message bus: Could not get UID and GID for username "messagebus"

No idea what to try next. I’m running wheezy.


Thérèse's picture

I solved part of the problem by reinstalling dbus.

However, now when I try “udisks --poll-for-media /dev/sr1”, I get the message “Poll for media failed: Not Authorized”.

I’m baffled. In case it makes a difference, I’m using fluxbox or WindowMaker (selecting one of them with wmanager), not Gnome or KDE or XFCE or LXDE.

update - Help!

Thérèse's picture

It seems that the problem is ConsoleKit. After reading, I regretfully abandoned startx and installed lightdm. No more messages like “Poll for media failed: Not Authorized”, and ck-list-sessions gave me the right output.

However, suddenly I couldn’t compile LaTeX documents in Emacs. I could compile them from a terminal, but in Emacs I got this message:

Running `LaTeX' on `roman' with ``lualatex --jobname=roman -interaction=nonstopmode "\input" roman.tex''

/bin/sh: 1: lualatex: not found

LaTeX exited abnormally with code 127 at Mon May 20 20:11:51

That’s a big problem, because I live in Emacs and use LaTeX all day long.

Another bit of weirdness that appeared after I installed lightdm was that wmaker popped up a dialog saying it couldn’t execute dwww, though in fact dwww seemed to be working.

So I’ve purged lightdm and gone back to startx. Now I can compile documents in Emacs and use dwww without error messages, but I’m no longer authorized to poll for media and ck-list-sessions pretends that I’m inactive and not local.

Help! I see from its web site that ConsoleKit is not actively maintained; is there anything I can do besides wait for Jessie to provide whatever will replace ConsoleKit?