AMP AMP
AMP
0
AMP

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
a sample image
ethenjames
asked Mar 21 2018

Answer

AMP
0
AMP

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
AMPComments
lucky
Mar 16 2025
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
a sample image
parthiban
asked Mar 27 2018
edited Oct 05 2018
Post your Answer
AMP
0
AMP

Instead of wasting time trying to fix the poor sound quality of the factory radio, you can use your tuning time to focus geometry dash on having your new audio system set up properly.

Add a comment
bouquet
asked Feb 04 2025
edited Feb 05 2025
Post your Answer