systemctl은 서비스 재시작시 시간 초과를 유지합니다


10

CentOS 7.2를 실행하고 있습니다. 아래를보십시오 :

# 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 다음과 같은 오류를보고합니다. [system] Failed to activate service 'org.freedesktop.PolicyKit1': timed out

우분투에 대한 버그 와 RHEL 7 버그에 대한 관련 버그를 발견했습니다 .


빠른 수정의 경우 : 시스템을 재부팅하여이 오류를 제거 할 수 있습니다. (그러나 다시 올 것인지는 확실하지 않습니다.)
— toni

답변:


11

이 문제는 polkit.service; 그것은 나를 위해 시작되지 않았습니다.

추가 조사 후 polkitd사용자가 존재하지 않는 것으로 나타났습니다 . 다음 yum reinstall polkit과 systemctl start polkit문제를 해결했습니다.

polkitd직접 실행 하여 이것을 디버깅했습니다 ./usr/lib/polkit-1/polkitd


이 솔루션을 시도했지만 호출 할 때 systemctl start polkit같은 오류가 발생합니다.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.
— toni

수동으로 무엇을 의미합니까? (나는이 명령들을 쉘에 수동으로 입력하고있다. 나는 리눅스 명령에 관한 초보자이다.)
— toni

이것은 결과입니다 (그러나 문제의 오류를 제거하면서 평균 시간에 서버를 재부팅했습니다) :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
— toni
당사 사이트를 사용함과 동시에 당사의 쿠키 정책과 개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.