关于ubuntu16.04.6试图掩盖一个systemd服务。我看到下面这样的错误。
systemctl mask hadoop-hdfs-zkfc.service
Failed to activate service 'org.freedesktop.systemd1': timed out我使用的是Ubuntu16.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这个问题并不总是会出现。但是一旦这个问题被击中,恢复系统的唯一方法就是做一个硬重新启动。
看看syslog,它的系统似乎被中止了。
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 , 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) - - 有人能告诉我,怎么调试这个吗?
这个问题看起来类似于讨论这里的问题。这是Ubuntu16.04.6上已知的系统问题吗?
发布于 2020-05-21 15:41:48
这已经被分析了系统邮件列表。交叉张贴答案
这个bug (https://github.com/systemd/systemd/issues/4444)是在systemd v236中修复的。看看是否可以使用较新版本的systemd。
https://serverfault.com/questions/1017657
复制相似问题