0

Service restart failed : Error getting authority

Hi, i have some serious issue on my centos server, i cannot restart, stop or start any kind of service on my machine for example ( ssh, smb, network ) all of the service throughs the same error as shown below.

[root@localhost ~]# systemctl restart sshd
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached (g-io-error-quark, 24)
Failed to restart sshd.service: Connection timed out
See system logs and ' systemctl status sshd.service'  for details.

[root@localhost ~]# systemctl restart network
 Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached (g-io-error-quark, 24)
Failed to restart network.service: Connection timed out
See system logs and ' systemctl status network.service'  for details.

[root@localhost ~]#  systemctl restart smb
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached (g-io-error-quark, 24)
Failed to restart smb.service: Connection timed out
See system logs and ' systemctl status smb.service'  for details.
CentOS Systemctl Add a comment
ethenjames
asked Mar 21 2018

Answer

0

This is an issue with polkit.service so you may try re-installing the package to solve this issue

yum reinstall polkit -y
systemctl start polkit
Comments
lucky
Apr 27 2024
What is the purpose of polkit service?what is the connection that polkit service has to do with services of smb sshd ?
Add a comment
parthiban
asked Mar 27 2018
edited Oct 05 2018
Post your Answer