1. 错误表现
在centos7.2系统中重启服务的时候报错:git
Error getting authority:Eroor initializing authority:Error calling StartServiceByName for org.freedesktop.PolicyKit1:Timeout was readhed(g-io-error-quark, 24) Failed to restart network.service: Connection timed out
使用journalctl查看详细信息的时候会报以下错误:github
[system] Failed to activate service ‘org.freedesktop.PolicyKit1’: timed out
2. 错误缘由
这个是一个和polkit.service相关问题。检查polkit服务的时候发现服务中止并且一样的,尝试开启这个服务的时候报错:
当使用daemon-reload或者使用restart指令来从新加载启动polkit服务的时候,竞态条件会优先序列将会发生改变,与此同时systemctl status将会立马报告polkit卡在了启动状态。可是polkit进程其实是在运行的,系统只是简单地忽略掉了bus属主的改变。($busctl 查看)。ubuntu
3. 解决办法:centos
/usr/lib/plokit-1/plokitd
4.相关连接post
1.可观察到bug反馈:
https://bugs.launchpad.net/ubuntu/+source/policykit-1/+bug/1447654
https://github.com/coreos/bugs/issues/462网站
2.redhat对此问题的解决方案
https://access.redhat.com/solutions/1543343centos7
3.国外stackexchange问答网站上给出的一些解释
http://unix.stackexchange.com/questions/249575/systemctl-keeps-timing-out-on-service-restart.net