3

When I'm running

evince file.pdf

I got this error

Failed to get bus connection: Could not connect: Connection refused

Ubuntu 12.04

I have to reboot. Can I repair this error without reboot?

1
  • @don_crissti It's on my machine, yes under tmux. I have to wait until it begins again and tell you the result. Commented Apr 5, 2013 at 15:46

1 Answer 1

7

This message indicates that the D-Bus daemon has died. You need to restart it. Run dbus-launch.

Perhaps the daemon is still running but not responding. If that's the case, kill it, then run dbus-launch.

If the environment variable DBUS_SESSION_BUS_ADDRESS is set, unset it. Most applications (I haven't checked about Evince) can find out the D-Bus address without it.

For more information, see Set environment variable for all of tmux shells when gnome-sessions gets restarted

1
  • I've seen this after launching bad lxc containers. This completely locked the hypervisor. Not even reboot worked then. I had to remove all related exports, kill dbus, init and systemd and then dbus-launch followed by init q. After this I was able to do a reboot again. Commented Dec 8, 2018 at 1:14

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.