Unable to restart any services at RHEL 7.x

Solution Verified - Updated -

Issue

  • In RHEL 7.1 server, we couldn't restart any services. It throws below error,
[root@localhost ~]# service virt-who restart
Redirecting to /bin/systemctl restart  virt-who.service
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: GDBus.Error:org.freedesktop.systemd1.UnitMasked: Unit polkit.service is masked. (g-io-error-quark, 36)
  • Unable to configure JBoss EAP to Run as a Service
root@(localhost) system # chkconfig --add jboss-eap-rhel.sh
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: GDBus.Error:org.freedesktop.systemd1.UnitMasked: Unit is masked. (g-io-error-quark, 36) 
  • We noticed that some of the other system control commands are also not working and giving below error.
root@(localhost) bin # systemctl restart sshd
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: GDBus.Error:org.freedesktop.systemd1.UnitMasked: Unit is masked. (g-io-error-quark, 36)

Environment

  • Red Hat Enterprise Linux (RHEL)
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.