Estou executando o CentOS 7.2; ver abaixo:
# systemctl stop firewalld
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached (g-io-error-quark, 24)
Failed to stop firewalld.service: Connection timed out
Failed to get load state of firewalld.service: Connection timed out
journalctl
apenas relata o seguinte erro: [system] Failed to activate service 'org.freedesktop.PolicyKit1': timed out
Eu encontrei esse bug para o Ubuntu e um possível relacionado para um bug do RHEL 7 .
Respostas:
Este é um problema com
polkit.service
; não estava começando para mim.Após uma investigação mais aprofundada, descobri que o
polkitd
usuário não existia. Em seguida,yum reinstall polkit
esystemctl start polkit
corrigiu o problema.Eu depurei isso executando
polkitd
diretamente:/usr/lib/polkit-1/polkitd
fonte
systemctl start polkit
recebo o mesmo erro:Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached (g-io-error-quark, 24) Failed to start polkit.service: Connection timed out See system logs and 'systemctl status polkit.service' for details.
Successfully changed to user polkitd --- Loading rules from directory /etc/polkit-1/rules.d --- Loading rules from directory /usr/share/polkit-1/rules.d --- Finished loading, compiling and executing 2 rules --- Entering main event loop --- Connected to the system bus --- Lost the name org.freedesktop.PolicyKit1 - exiting --- Shutting down --- Exiting with code 0