Ubuntu
無法啟動服務“org.freedesktop.systemd1”:在 Ubuntu 16.04.6 中超時
在 ubuntu 16.04.6 上嘗試屏蔽 systemd 服務。我看到如下錯誤。
systemctl mask hadoop-hdfs-zkfc.service Failed to activate service 'org.freedesktop.systemd1': timed out
我使用的是 Ubuntu 16.04.6 附帶的預設 systemd 版本。
ubuntu@platform1:~$ systemctl --version systemd 229 +PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN
問題並不總是出現。但是一旦遇到這個問題,恢復 systemd 的唯一方法就是硬重啟。
查看系統日誌,它似乎 systemd 已中止。
May 18 08:49:24 platform3 systemd[1]: Removed slice User Slice of support. May 18 08:49:27 platform3 systemd[1]: Assertion 's->type == SERVICE_ONESHOT' failed at ../src/core/service.c:1792, function service_enter_start(). Aborting. May 18 08:49:27 platform3 systemd[1]: Caught <ABRT>, dumped core as pid 15839. May 18 08:49:27 platform3 systemd[1]: Freezing execution.
busctl
輸出如下所示ubuntu@platform3:~/logs$ busctl NAME PID PROCESS USER CONNECTION UNIT SESSION DESCRIPTION :1.1 976 systemd-logind root :1.1 systemd-logind.service - - :1.3 971 accounts-daemon root :1.3 accounts-daemon.service - - :1.5434 49174 systemctl root :1.5434 cron.service - - :1.5435 49223 systemctl root :1.5435 ssh.service - - :1.5436 49408 busctl ubuntu :1.5436 ssh.service - - :1.7 1109 unattended-upgr root :1.7 unattended-upgrades.se... - - com.ubuntu.LanguageSelector - - - (activatable) - - org.debian.AptXapianIndex - - - (activatable) - - org.freedesktop.Accounts 971 accounts-daemon root :1.3 accounts-daemon.service - - org.freedesktop.DBus 936 dbus-daemon messagebus org.freedesktop.DBus dbus.service - - org.freedesktop.hostname1 - - - (activatable) - - org.freedesktop.locale1 - - - (activatable) - - org.freedesktop.login1 976 systemd-logind root :1.1 systemd-logind.service - - org.freedesktop.network1 - - - (activatable) - - org.freedesktop.resolve1 - - - (activatable) - - org.freedesktop.systemd1 - - - (activatable) - - org.freedesktop.thermald - - - (activatable) - - org.freedesktop.timedate1 - - - (activatable) - -
有人可以告訴我,如何調試嗎?
該問題看起來與此處討論的問題相似。那麼這是 Ubuntu 16.04.6 上一些已知的 systemd 問題嗎?
這已被確認為 systemd 郵件列表。交叉發布答案
此錯誤(https://github.com/systemd/systemd/issues/4444)已在 systemd v236 中修復。
看看你是否可以使用更新版本的 systemd。