Development

g-io-error-quark 39 error when stopping dbus-service

When I restart a particular computer there is an error message,

# init 6
Error getting authority: Error initializing authority: Could not connect: Connection refused (g-io-error-quark, 39)

I found out that this is caused by the dbus service. I can cause the error message to appear by

# systemctl stop dbus.service
Error getting authority: Error initializing authority: Could not connect: Connection refused (g-io-error-quark, 39)

This was all done in a root shell, naturally. Does anyone know what this means, and how to fix it? I find that d-bus seems to be little documented (or too complicated for me, or both). The machine is running CentOS Linux release 7.2.1511 and is up to date.

For me it happened after RHEL 7.4 -> 7.5 upgrade. Dbus socket got moved to /run/dbus/system_bus_socket. Even though systemd clearly points to /run/dbus/system_bus_socket it’s still wants to connect via /var/run/dbus/system_bus_socket “` [root@ipsystem]# systemctl restart systemd-logind.service Error getting authority: Error initializing authority: Could not connect: Connection refused (g-io-error-quark, 39)

Notice it’s connecting to /run/dbus/ socket