4

On a CentOS 7 server I'm getting this error while trying to reboot:

# reboot
Error getting authority: Error initializing authority: GDBus.Error:org.freedesktop.DBus.Error.LimitsExceeded: The maximum number of active connections for UID 0 has been reached (g-dbus-error-quark, 8)
Failed to start reboot.target: Connection timed out

Or to restart Apache httpd:

# systemctl restart httpd.service
Error getting authority: Error initializing authority: GDBus.Error:org.freedesktop.DBus.Error.LimitsExceeded: The maximum number of active connections for UID 0 has been reached (g-dbus-error-quark, 8)
Failed to restart httpd.service: Connection timed out

What do the mentioned active connections refer to? How do I stop some of the active connections that are not needed anymore in order to free some slots?

Hauke Laging
  • 5,415
1Z10
  • 141

1 Answers1

0

Try creating /etc/dbus-1/system.conf file with the following configuration:

<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<limit name="max_connections_per_user">10000</limit>
</busconfig>

For session limit, you can create /etc/dbus-1/session.conf or /etc/dbus-1/system-local.conf, but according to #492941 bug, it may not work.

Sources:

kenorb
  • 7,125