dbus_bus_get_private() failed

prashantkumar dhotre prashantkumardhotre at gmail.com
Tue May 23 15:00:44 UTC 2017


Hi
 dbus_bus_get_private() failed with error: Failed to connect to socket
/var/run/dbus/system_bus_socket: No such file or directory

I see that /var/run/dbus/system_bus_socket exists before calling
dbus_bus_get_private()

logs:


 netstat -anp | grep dbus : unix  2      [ ACC ]     STREAM
LISTENING     11681    1/init
/var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     11831    1574/dbus-daemon
unix  3      [ ]         STREAM     CONNECTED     10907    1574/dbus-daemon
unix  3      [ ]         STREAM     CONNECTED     11830    1574/dbus-daemon
unix  3      [ ]         STREAM     CONNECTED     11833
1574/dbus-daemon    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     11832
1574/dbus-daemon    /var/run/dbus/system_bus_socket

May 02 07:45:10 ERROR:  dbus-send --system --print-reply
--reply-timeout=2000 --type=method_call
--dest=org.freedesktop.systemd1    /org/freedesktop/systemd1 org.
    freedesktop.systemd1.Manager.ListUnits  :
+++
app restarts
+++
May 02 07:45:15 ERROR:  Failed to open connection to system bus
May 02 07:45:15 ERROR:  dbus_bus_get_private() failed with error:
Failed to connect to socket /var/run/dbus/system_bus_socket: No such
file or directory
May 02 07:45:15 ERROR:  uptime :  07:45:15 up 1 min,  0 users,  load
average: 1.68, 0.45, 0.15


More information about the dbus mailing list