Awn

Failed to connect to socket /tmp/dbus

Asked by Arne Fahrenwalde

Ok Avant-Window-Navigator just stopped working for me today (it worked yesterday!!)

Computer-Specs:
AMD Athlon 64 3200+
GeForce Go5700 FX 64 MB
Debian Sid/Lenny (unstable / testing)
Compiz-Fusion 0.6.3

Patches applied yesterday:
Upgraded the following packages:
cpp-4.2 (4.2.2-6) to 4.2.2-7
cron (3.0pl1-102) to 3.0pl1-103
g++-4.2 (4.2.2-6) to 4.2.2-7
gcc-4.2 (4.2.2-6) to 4.2.2-7
gcc-4.2-base (4.2.2-6) to 4.2.2-7
gstreamer-tools (0.10.15-3) to 0.10.15-4
gstreamer0.10-tools (0.10.15-3) to 0.10.15-4
libcairo2 (1.4.12-2) to 1.4.14-1
libcairo2-dev (1.4.12-2) to 1.4.14-1
libgstreamer0.10-0 (0.10.15-3) to 0.10.15-4
libstdc++6-4.2-dev (4.2.2-6) to 4.2.2-7
python-gst0.10 (0.10.9-3) to 0.10.9-5
libgcj8-jar (4.2.2-6) to 4.2.2-7
shared-mime-info (0.22-2) to 0.23-1

When I run it from the Terminal I get the following error:
<quote>
macgeneral@Acer-Aspire1520:~$ avant-window-navigator

** (avant-window-navigator:7016): WARNING **: Failed to make connection to session bus: Failed to connect to socket /tmp/dbus-W6FAI3D65V: Connection refused

** (avant-window-navigator:7016): CRITICAL **: dbus_g_proxy_new_for_name: assertion `connection != NULL' failed

** (avant-window-navigator:7016): CRITICAL **: dbus_g_proxy_call: assertion `DBUS_IS_G_PROXY (proxy)' failed

** (avant-window-navigator:7016): WARNING **: There was an error requesting the name: (null)

** (avant-window-navigator:7016): CRITICAL **: dbus_g_connection_register_g_object: assertion `connection != NULL' failed
Screen is composited.
Segmentation fault
</quote>

I had version 0.2.1 installed from source and uninstalled it today an compiled the latest trunk version from source to see if it may included a fix for it, but it didn't.

I searched google already (found something similar but not equal somewhere in the ubuntuforums where the tip was just to restart but that didn't work for me!)

I also made sure that only one avant-window-navigator is installed:
macgeneral@Acer-Aspire1520:~$ locate avant | grep bin
/usr/local/bin/avant-preferences
/usr/local/bin/avant-window-navigator
(same result when running locate as root)

The Avant-Preferences application runs seemlessly still!!

Thanks for your help.

Question information

Language:
English Edit question
Status:
Solved
For:
Awn Edit question
Assignee:
No assignee Edit question
Solved by:
Arne Fahrenwalde
Solved:
Last query:
Last reply:
Revision history for this message
Arne Fahrenwalde (macgeneral) said :
#1

little more information:
Kernel: 2.6.23-1-amd64
Gnome: 2.20.3

Revision history for this message
Arne Fahrenwalde (macgeneral) said :
#2

Ok this is odd...

I moved my /tmp directory to a tmpfs filesystem so it ll be located in my memory instead of my harddisk (so my harddisk can shut down for a longer period of time - accoding to an a bit outdate guide from 2003: http://tldp.org/HOWTO/html_single/Battery-Powered/ )...

the odd thing about this is that it worked without any problems for some days now... and just stopped working today.
After I experienced anohter problem with the gnome-settings-daemon today for which I found a workaround at http://ubuntuforums.org/showpost.php?p=3918366&postcount=8 involved deleting and creating some files in /tmp I figured it might be a general problem with my tmp directory...

I flushed it (sudo rm -rfv /tmp/*), edited my /etc/fstab file so it didnt contain the line for the tmpfs anymore and restarted and now Avant-Window-Navigator started without any problems again...

Its just weird that it worked for some days and no problems with it...

i might just got to recheck the file permissions on the tmpfs /tmp mount.

Anyways sorry to bother you :p

Revision history for this message
craigyjack (craigyjack) said :
#3

I have this exact same problem. The exact same message appears when i try to launch avant. It was working fine one moment, then the next time i rebooted this appeared and I can't get it to work. I uninstalled it, and recompiled it (the repo isnt working anymore, so i compiled), and I still get this message.

Could someone let me know what I can do to solve this. I have no idea.

craig@craig-ubuntu:~$ avant-window-navigator

** (avant-window-navigator:18041): WARNING **: Failed to make connection to session bus: Failed to connect to socket /tmp/dbus-2Nv1V4hBd7: Connection refused

** (avant-window-navigator:18041): CRITICAL **: dbus_g_proxy_new_for_name: assertion `connection != NULL' failed

** (avant-window-navigator:18041): CRITICAL **: dbus_g_proxy_call: assertion `DBUS_IS_G_PROXY (proxy)' failed

** (avant-window-navigator:18041): WARNING **: There was an error requesting the name:

** (avant-window-navigator:18041): CRITICAL **: dbus_g_connection_register_g_object: assertion `connection != NULL' failed
Segmentation fault (core dumped)
craig@craig-ubuntu:~$

Thanks,
Craig

Revision history for this message
Mark Lee (malept) said :
#4

It means that there is no D-Bus daemon running for your desktop session, or the D-Bus environment variable hasn't been updated. I've gotten this because I run Awn via a GNU screen terminal, and when my X session crashes and I re-login to X, a new D-Bus daemon is started, so I have to update the DBUS_SESSION_BUS_ADDRESS environment variable to whatever the new value is (I retrieve it by opening a new terminal window and running `env | grep DBUS`).

Revision history for this message
mehturt (mehturt) said :
#5

"I retrieve it by opening a new terminal window and running `env | grep DBUS`"
Is it possible to automate this somehow?

Revision history for this message
Lenbok (lenbok) said :
#6

I had something similar to Mark Lee, with evince rather than awn, where evince would abort when started from within my screen session that had been created under a previous X session. Clearing the DBUS_SESSION_BUS_ADDRESS was enough to get evince running.

$ unset DBUS_SESSION_BUS_ADDRESS
$ export DBUS_SESSION_BUS_ADDRESS

Hope this helps.

Revision history for this message
mehturt (mehturt) said :
#7

I found this snippet somewhere on the web and I'm sourcing it in all my sh scripts that need DBUS:

session="$HOME/.dbus/session-bus/$(dbus-uuidgen --get)-$(echo $DISPLAY | sed -e 's/\([^:]*:\)//g' -e 's/\..*$//g')"
if [ -e $session ] ; then
    . $session
fi