无法完全启动守护进程:连接超时

无法完全启动守护进程:连接超时

Ubuntu 经过几次更新后,这种情况开始出现。无论使用 LDAP 客户端还是本地用户登录此服务器,都需要很长时间才能进行身份验证和登录。

/var/log/auth.log:

Jan 14 06:19:16 norwich systemd-logind[18114]: Failed to fully start up daemon: Connection timed out
Jan 14 06:19:41 norwich systemd-logind[18225]: Failed to enable subscription: Connection timed out
Jan 14 06:19:41 norwich systemd-logind[18225]: Failed to fully start up daemon: Connection timed out
Jan 14 06:19:41 norwich dbus[929]: [system] Failed to activate service 'org.freedesktop.systemd1': timed out
Jan 14 06:20:06 norwich systemd-logind[18329]: Failed to enable subscription: Connection timed out
Jan 14 06:20:06 norwich systemd-logind[18329]: Failed to fully start up daemon: Connection timed out
Jan 14 06:20:06 norwich dbus[929]: [system] Failed to activate service 'org.freedesktop.systemd1': timed out
Jan 14 06:20:31 norwich systemd-logind[18441]: Failed to enable subscription: Connection timed out
Jan 14 06:20:31 norwich dbus[929]: [system] Failed to activate service 'org.freedesktop.systemd1': timed out
Jan 14 06:20:31 norwich systemd-logind[18441]: Failed to fully start up daemon: Connection timed out
Jan 14 06:20:56 norwich systemd-logind[18552]: Failed to enable subscription: Connection timed out
Jan 14 06:20:56 norwich dbus[929]: [system] Failed to activate service 'org.freedesktop.systemd1': timed out
Jan 14 06:20:56 norwich systemd-logind[18552]: Failed to fully start up daemon: Connection timed out
Jan 14 06:21:21 norwich systemd-logind[18665]: Failed to enable subscription: Connection timed out
Jan 14 06:21:21 norwich systemd-logind[18665]: Failed to fully start up daemon: Connection timed out
Jan 14 06:21:21 norwich dbus[929]: [system] Failed to activate service 'org.freedesktop.systemd1': timed out

该服务器使用 Ubuntu 16.04 LTS 并且:

Linux norwich 4.4.0-109-generic #132-Ubuntu SMP Tue Jan 9 19:52:39 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

我已经重新启动了服务器,但没有任何效果。

以下是日记日志:

Jan 15 13:01:03 norwich dbus[929]: [system] Failed to activate service 'org.freedesktop.systemd1': timed out
Jan 15 13:01:03 norwich systemd[1]: systemd-logind.service: Main process exited, code=exited, status=1/FAILURE
Jan 15 13:01:03 norwich systemd[1]: Failed to start Login Service.
Jan 15 13:01:03 norwich systemd[1]: systemd-logind.service: Unit entered failed state.
Jan 15 13:01:03 norwich systemd[1]: systemd-logind.service: Failed with result 'exit-code'.
Jan 15 13:01:03 norwich systemd[1]: systemd-logind.service: Service has no hold-off time, scheduling restart.
Jan 15 13:01:03 norwich systemd[1]: Stopped Login Service.
Jan 15 13:01:03 norwich systemd[1]: Starting Login Service...
Jan 15 13:01:03 norwich systemd[1]: Failed to forward Released message: No buffer space available
Jan 15 13:01:03 norwich systemd[1]: Failed to forward Released message: No buffer space available
Jan 15 13:01:28 norwich systemd-logind[11142]: Failed to enable subscription: Connection timed out
Jan 15 13:01:28 norwich systemd-logind[11142]: Failed to fully start up daemon: Connection timed out
Jan 15 13:01:28 norwich dbus[929]: [system] Failed to activate service 'org.freedesktop.systemd1': timed out
Jan 15 13:01:28 norwich systemd[1]: systemd-logind.service: Main process exited, code=exited, status=1/FAILURE
Jan 15 13:01:28 norwich systemd[1]: Failed to start Login Service.
Jan 15 13:01:28 norwich systemd[1]: systemd-logind.service: Unit entered failed state.
Jan 15 13:01:28 norwich systemd[1]: systemd-logind.service: Failed with result 'exit-code'.
Jan 15 13:01:28 norwich systemd[1]: systemd-logind.service: Service has no hold-off time, scheduling restart.
Jan 15 13:01:28 norwich systemd[1]: Stopped Login Service.
Jan 15 13:01:28 norwich systemd[1]: Starting Login Service...
Jan 15 13:01:28 norwich systemd[1]: Failed to forward Released message: No buffer space available
Jan 15 13:01:53 norwich dbus[929]: [system] Failed to activate service 'org.freedesktop.systemd1': timed out
Jan 15 13:01:53 norwich systemd-logind[11146]: Failed to enable subscription: Failed to activate service 'org.freedesktop.systemd1': timed out
Jan 15 13:01:53 norwich systemd-logind[11146]: Failed to fully start up daemon: Connection timed out
Jan 15 13:01:53 norwich systemd[1]: systemd-logind.service: Main process exited, code=exited, status=1/FAILURE
Jan 15 13:01:53 norwich systemd[1]: Failed to start Login Service.
Jan 15 13:01:53 norwich systemd[1]: systemd-logind.service: Unit entered failed state.
Jan 15 13:01:53 norwich systemd[1]: systemd-logind.service: Failed with result 'exit-code'.
Jan 15 13:01:53 norwich systemd[1]: systemd-logind.service: Service has no hold-off time, scheduling restart.
Jan 15 13:01:53 norwich systemd[1]: Stopped Login Service.
Jan 15 13:01:53 norwich systemd[1]: Starting Login Service...
Jan 15 13:01:53 norwich systemd[1]: Failed to forward Released message: No buffer space available
Jan 15 13:02:18 norwich systemd-logind[11150]: Failed to enable subscription: Connection timed out
Jan 15 13:02:18 norwich dbus[929]: [system] Failed to activate service 'org.freedesktop.systemd1': timed out
Jan 15 13:02:18 norwich systemd-logind[11150]: Failed to fully start up daemon: Connection timed out
Jan 15 13:02:18 norwich systemd[1]: systemd-logind.service: Main process exited, code=exited, status=1/FAILURE
Jan 15 13:02:18 norwich systemd[1]: Failed to start Login Service.

答案1

这可能与以下内容相关:

  • /var/run 和 /run 没有符号链接
  • 你的 dbus 版本有 bug,请参见https://bugs.freedesktop.org/show_bug.cgi?id=95263- 这似乎已在 dbus 1.11.10 和 1.10.x 的一些修补版本中得到修复(我使用 dbus 1.10.24-12.el7_6 时出现此问题,使用 1.10.24-13.el7_6 时似乎已停止此问题,但也可能只是巧合)

相关内容