VNC server failure after booting – Failed to get connection to session

gconfvnc

I'm having this error from the log file of a Tiger VNC server (version tigervnc-server-1.1.0-5.el6_4.1.x86_64):

Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details -  1: Failed to get connection to session: Failed to connect to socket /tmp/dbus-Auq6xEVNZb: Connection refused)

(Details -  1: Failed to get connection to session: Failed to connect to socket /tmp/dbus-Auq6xEVNZb: Connection refused)GConf warning: failure listing pairs in `/apps/nautilus/desktop-metadata': Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details -  1: Failed to get connection to session: Failed to connect to socket /tmp/dbus-Auq6xEVNZb: Connection refused)

When I reboot the server, it works nice, but after a while it start failing and when I connect there's no desktop and there's a pop-up windows appearing and disappearing.

I've recently have deleted by mistake /tmp directory, could that be the source of the problem? How could this be solved?

This problem is also causing problems with disk usage because this log file is always growing, which seems to be related with a persistent error state.

Thanks!

Best Answer

This was solved by creating a directory /tmp/dbus-Auq6xEVNZb (it varies on each server, you need to check the error and see the path VNC server is trying to access). The command for that is:

mkdir -p /tmp/dbus-Auq6xEVNZb

It seems that another solution could be to modify ~/.dbus directory ownership (https://bugs.launchpad.net/ubuntu/+source/gconf/+bug/367169).

EDIT: After rebooting, this solution NO LONGER WORKS. I also tried to delete the content of /tmp/ (NOT THE DIRECTORY ITSELF) and change ownership to dbus user, but it doesn't work neither.

EDIT 2: Reinstalling dbus has worked. I'm no longer having those errors.