Unable to restart services using systemctl

amaina

Registered
Dec 11, 2019
2
0
1
Kenya
cPanel Access Level
Root Administrator
Hi I made a centos 7 update, followed by a reboot. Now whenever I try to restart a service using systemctl I get the error
Code:
Authorization not available. Check if polkit service is running or see debug message for more information.
when i check the polkit status the result is as shown below:
Code:
● polkit.service - Authorization Manager
   Loaded: loaded (/usr/lib/systemd/system/polkit.service; static; vendor preset: enabled)
   Active: inactive (dead) since Thu 2019-12-12 06:18:04 EAT; 10min ago
     Docs: man:polkit(8)
  Process: 22121 ExecStart=/usr/lib/polkit-1/polkitd --no-debug (code=exited, status=0/SUCCESS)
Main PID: 22121 (code=exited, status=0/SUCCESS)

Dec 12 06:18:04 mydomain.com systemd[1]: Starting Authorization Manager...
Dec 12 06:18:04 mydomain.com polkitd[22121]: Started polkitd version 0.112
Dec 12 06:18:04 mydomain.com polkitd[22121]: Loading rules from directory /etc/polkit-1/rules.d
Dec 12 06:18:04 mydomain.com polkitd[22121]: Loading rules from directory /usr/share/polkit-1/rules.d
Dec 12 06:18:04 mydomain.com polkitd[22121]: Finished loading, compiling and executing 3 rules
Dec 12 06:18:04 mydomain.com polkitd[22121]: Lost the name org.freedesktop.PolicyKit1 - exiting
Dec 12 06:18:04 mydomain.com systemd[1]: Started Authorization Manager.
When I try to restart polkit I get the same error message
Code:
Authorization not available. Check if polkit service is running or see debug message for more information.
How can I resolve this? I am a newbie :)
 
Last edited by a moderator:

cPJeremy

Technical Analyst
Staff member
Feb 13, 2019
57
3
83
Houston TX
cPanel Access Level
Root Administrator
Hello amaina!

I am sorry to hear that you are encountering this error. From previous experience, I do not believe this issue is specifically related to cPanel but we still want to do our best to help you.

It seems to me that what may most likely be the issue is that dbus is failing to load due to changes in SELinux. However, on cPanel servers it is recommended that SELinux be disabled.

At this time, would you be willing to ensure that SELinux is disabled? The simpleist way to do this is to ensure that the value SELINUX=disabled is properly set in the file: /etc/selinux/config

More information on this can be found here: Installation Guide - System Requirements

Can you please confirm that SELinux is disabled, and if it is not disabled please disable it and then reboot the server? If you are still encountering issues after this please let our team know!

Thank you!