RHEL7: 在将 dbus 从 dbus-1.6.12 更新到 dbus-1.10.24 后,系统出现问题,在日志中出现类似 "Lost the name org.freedesktop.PolicyKit1 - exiting" 的信息
Issue
-
busctl 命令抛出以下出错信息
# busctl Failed to connect to bus: Connection refused
注意: 在某些情况下,您可能会看到 No such file or directory 错误消息,而不是 Connection deniedd。
-
polkit.service 单元没有运行,显示以下信息
# systemctl status polkit.service ● polkit.service - Authorization Manager Loaded: loaded (/usr/lib/systemd/system/polkit.service; static; vendor preset: enabled) Active: inactive (dead) since Mon 2019-06-03 11:35:21 CEST; 21min ago [...] [...] polkitd[638]: Loading rules from directory /etc/polkit-1/rules.d [...] polkitd[638]: Loading rules from directory /usr/share/polkit-1/rules.d [...] polkitd[638]: Finished loading, compiling and executing 2 rules [...] polkitd[638]: Lost the name org.freedesktop.PolicyKit1 - exiting
-
NetworkManager.service 单元处于
activating
状态而不是active
状态# systemctl status NetworkManager ● NetworkManager.service - Network Manager Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; vendor preset: enabled) Active: activating (start) since Mon 2019-06-03 11:53:26 CEST; 1min 3s ago [...] # systemctl list-jobs JOB UNIT TYPE STATE 1791 NetworkManager.service start running
-
systemd-login.service 单元持续失败
# systemctl status systemd-logind ● systemd-logind.service - Login Service Loaded: loaded (/usr/lib/systemd/system/systemd-logind.service; static; vendor preset: disabled) Active: failed (Result: start-limit) since Mon 2019-06-03 11:35:21 CEST; 21min ago [...] [...] systemd[1]: start request repeated too quickly for systemd-logind.service [...] systemd[1]: Failed to start Login Service. [...] systemd[1]: Unit systemd-logind.service entered failed state. [...] systemd[1]: systemd-logind.service failed.
-
在系统引导后,日志出现多个与 dbus 相关的各种错误消息(错误信息重复多次)
# journalctl -b -p err systemd-logind[640]: Failed to connect to system bus: Connection refused systemd-logind[640]: Failed to fully start up daemon: Connection refused login[671]: pam_systemd(login:session): Failed to connect to system bus: Connection refused NetworkManager[835]: <error> [1559554611.6628] dispatcher: could not get dispatcher proxy! Could not connect: Connection refused NetworkManager[835]: <error> [1559554611.6856] auth: could not get polkit proxy: Could not connect: Connection refused
注意: 在某些情况下,您可能会看到 No such file or directory 错误消息,而不是 Connection deniedd。
Environment
- Red Hat Enterprise Linux 7
- dbus-1.10.24
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.