Dbus无法连接的问题

Dbus无法连接的问题

我正在尝试重新启动 httpd 但出现以下错误

$ systemctl restart httpd
Error getting authority: Error initializing authority: Could not connect: No such file or directory (g-io-error-quark, 1)

经过调查发现这是一个 dbus 问题,尝试使用 REST dbus 但出现与上面相同的错误。检查 /var/log/messages 后,我收到以下错误:

<info>  [1559812709.0738] bus-manager: could not connect to the system bus (Could not connect: No such file or directory); only the private D-Bus socket will be available
Jun  6 14:48:32 db1 NetworkManager[329115]: <info>  [1559812712.0731] bus-manager: could not connect to the system bus (Could not connect: No such file or directory); only the private D-Bus socket will be available

$ cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)

注意:/var并且/位于同一分区,而且我无法重新启动 NetworkManager

答案1

我也遇到同样的问题,误删除/var/run了。

解决重新创建链接:

ln -s /run/dbus /var/run/dbus

来源

bwrap:无法在 /var/run 处创建符号链接:文件存在 · 问题 #2200 · flatpak/flatpak

相关内容