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.
This kind of looks like something important got removed with the package installation. the errors relate to policy kit. Can you confirm that polkit and dbus are both still installed?
rpm -qi dbus
andrpm -qi polkit
logs may also contain information but seems here a policy is preventing the start of these services due to dbus not responding...because dbus is not installed or the policy kit is not responding via dbus.
Also possible SElinux is responsible...you can disable to test by editing:
/etc/sysconfig/selinux
then logging out and back in.If you find that selinux is responsible policies can be displayed with:
getsebool -a | grep disable.*on
and set like:setsebool httpd_disable_trans 1