I have attempted to install iRedMail on one of my servers. After reboot, I can't start any service anymore.
[root@mx ~]# systemctl start httpd
** (pkttyagent:16323): WARNING **: Unable to register authentication agent: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PolicyKit1 was not provided by any .service files
Error registering authentication agent: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PolicyKit1 was not provided by any .service files (g-dbus-error-quark, 2)
[root@mx ~]# systemctl start mysqld
** (pkttyagent:16348): WARNING **: Unable to register authentication agent: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PolicyKit1 was not provided by any .service files
Error registering authentication agent: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PolicyKit1 was not provided by any .service files (g-dbus-error-quark, 2)
Failed to start mysqld.service: Unit mysqld.service failed to load: No such file or directory.
[root@mx ~]#
Does anyone know how to get this sorted out?
Update Re-installing and starting polkit gave me this:
[root@mx ~]# systemctl start polkit
Error getting authority: Error initializing authority: Exhausted all available authentication mechanisms (tried: EXTERNAL, DBUS_COOKIE_SHA1, ANONYMOUS) (available: EXTERNAL, DBUS_COOKIE_SHA1, ANONYMOUS) (g-io-error-quark, 0)
Job for polkit.service failed because the control process exited with error code. See "systemctl status polkit.service" and "journalctl -xe" for details.
[root@mx ~]# systemctl status polkit.service
● polkit.service - Authorization Manager
Loaded: loaded (/usr/lib/systemd/system/polkit.service; static; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2016-07-21 21:24:45 JST; 20s ago
Docs: man:polkit(8)
Process: 2478 ExecStart=/usr/lib/polkit-1/polkitd --no-debug (code=exited, status=1/FAILURE)
Main PID: 2478 (code=exited, status=1/FAILURE)
Jul 21 21:24:45 mx.076.wtf systemd[1]: Starting Authorization Manager...
Jul 21 21:24:45 mx.076.wtf systemd[1]: polkit.service: main process exited, code=exited, status=1/FAILURE
Jul 21 21:24:45 mx.076.wtf systemd[1]: Failed to start Authorization Manager.
Jul 21 21:24:45 mx.076.wtf systemd[1]: Unit polkit.service entered failed state.
Jul 21 21:24:45 mx.076.wtf systemd[1]: polkit.service failed.