Unable to restart services using systemctl
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
when i check the polkit status the result is as shown below:
When I try to restart polkit I get the same error message
How can I resolve this? I am a newbie :)
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:
? 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
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 :)
-
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:0 -
Hi cPJeremy! I disabled SELinux but the problem is still there. 0
Please sign in to leave a comment.
Comments
2 comments