记录⼀次polkitd的报错(只解决了其他服务能正常使⽤
systemctl)
事发缘由:因三级等保、需要将centos7系统中的”⾼危”⽤户进⾏封禁或者注释,⽤户有:
dademon、adm、lp、shutdown、halt、mail、operator、games
ftp、nobody、system-network、polkitd、dbus、postfix,其中polktd、dbus注释后重启机⼦直接导致机⼦启动不来,进⼊单⽤户取消注释⽅可正常启动。
后遗症来了:正常启动后,登录⾮常慢,连服务器正常启动都不⾏,直接报错:
Authorization not available. Check if polkit service is running or see debug message for more information.
Failed to restart systemd-logind.service: Connection timed out
意思就是请检查polkit这个服务是否运⾏,当我去检查的时候polkit这个服务已经处于不运⾏的状态了。可是当我去使⽤
systemctl start polkit 去启动服务时候直接报错:Failed to get properties: Failed to activate service 'org.freedesktop.systemd1': timed out
查询message⽇志 dbus⼀直在报错:
May 25 16:14:33 localhost systemd: Starting
May 25 16:14:57 localhost dbus[1112]: [system] Failed to activate service 'org.freedesktop.login1': timed out
May 25 16:14:58 localhost dbus[1112]: [system] Failed to activate service 'org.freedesktop.systemd1': timed out
May 25 16:14:58 localhost systemd-logind: Failed to enable subscription: Failed to activate service 'org.freedesktop.systemd1': timed out May 25 16:14:58 localhost systemd-logind: Failed to fully start up daemon: Connection timed out
May 25 16:14:58 localhost systemd: systemd-logind.service: main process exited, code=exited, status=1/FAILURE
May 25 16:14:58 localhost systemd: Failed to start Login Service.
May 25 16:14:58 localhost systemd: Unit systemd-logind.service entered failed state.
May 25 16:14:58 localhost systemd: systemd-logind.service failed.
May 25 16:14:58 localhost systemd: systemd-logind.service has no holdoff time, scheduling restart.
May 25 16:14:58 localhost systemd: Starting
百度查资料:/usr/lib/polkit-1/polkitd --no-debug
exited打开⼀个⼩窗⼝服务能正常进⾏启动已经关闭。但是启动polkit 服务时候处于⽆效状态。⽬前只能解决到这⾥……尽⼒了……
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论