linux的systemct无法使用

Failed to get properties: Failed to activate service 'org.freedesktop.systemd1': timed out

  • 问题描述
  • 解决思路
  • 解决步骤
    • 查看系统日志
    • 查看org.freedesktop.systemd1

问题描述

在系统运行一段时间后,用ystemctl start docker时报出:Failed to get properties: Failed to activate service ‘org.freedesktop.systemd1’: timed out。

解决思路

1.查看系统日志/var/log/messages
2.更新软件和内核
2.重启服务器

解决步骤

查看系统日志

tail -10 /var/log/messages

Sep  1 18:37:27 VM_0_10_centos systemd-logind: Failed to start session scope session-14982.scope: Connection timed out
Sep  1 18:37:27 VM_0_10_centos dbus[574]: [system] Failed to activate service 'org.freedesktop.systemd1': timed out
Sep  1 18:38:26 VM_0_10_centos systemd-logind: Failed to start session scope session-14983.scope: Connection timed out
Sep  1 18:38:26 VM_0_10_centos dbus[574]: [system] Failed to activate service 'org.freedesktop.systemd1': timed out
Sep  1 18:39:26 VM_0_10_centos systemd-logind: Failed to start session scope session-14984.scope: Connection timed out
Sep  1 18:39:26 VM_0_10_centos dbus[574]: [system] Failed to activate service 'org.freedesktop.systemd1': timed out
Sep  1 18:40:26 VM_0_10_centos systemd-logind: Failed to start session scope session-14985.scope: Failed to activate service 'org.freedesktop.systemd1': timed out
Sep  1 18:40:26 VM_0_10_centos dbus[574]: [system] Failed to activate service 'org.freedesktop.systemd1': timed out
Sep  1 18:40:51 VM_0_10_centos dbus[574]: [system] Failed to activate service 'org.freedesktop.systemd1': timed out
Sep  1 18:40:51 VM_0_10_centos systemd-logind: Failed to start session scope session-14986.scope: Connection timed out

标注:
session【会话】 session scope【会话范围】
发现问题和docker无关。尝试使用systeml命令:
systemctl

Failed to list units: Failed to activate service 'org.freedesktop.systemd1': timed out`

所以故障基本可以确认为systemctl服务无法使用,而且是org.freedesktop.systemd1服务的“时间超时”问题。

查看org.freedesktop.systemd1

待续

你可能感兴趣的:(linux基础)