모든 포럼과 질문을 조사했지만 내 문제에 대한 유효한 답변을 찾지 못했습니다. 네트워크 시간 동기화 서비스가 작동하지 않습니다. timedatectl 서비스가 없어도 제대로 작동하는 것 같지만 systemd-timesyncd가 활성화되지 않은 것으로 표시됩니다.
torof@OMEN:~$ timedatectl status
Local time: Fri 2019-02-08 15:12:47 CET
Universal time: Fri 2019-02-08 14:12:47 UTC
RTC time: Fri 2019-02-08 14:12:47
Time zone: Europe/Paris (CET, +0100)
System clock synchronized: yes
systemd-timesyncd.service active: no
RTC in local TZ: no
이미 libnss-systemd
설치되어있다.
시스템 로그를 확인했지만 문제가 무엇인지 파악할 수 없었으며 서비스 도움말을 활성화하고 다시 시작하지도 못했습니다.
torof@OMEN:~$ systemctl status systemd-timesyncd
● systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2019-02-08 13:57:04 CET; 13min ago
Docs: man:systemd-timesyncd.service(8)
Process: 4383 ExecStart=/lib/systemd/systemd-timesyncd (code=exited, status=238/STATE_DIRECTORY)
Main PID: 4383 (code=exited, status=238/STATE_DIRECTORY)
Feb 08 13:57:04 OMEN systemd[1]: systemd-timesyncd.service: Main process exited, code=exited, status=238/STATE_DIRECTORY
Feb 08 13:57:04 OMEN systemd[1]: systemd-timesyncd.service: Failed with result 'exit-code'.
Feb 08 13:57:04 OMEN systemd[1]: Failed to start Network Time Synchronization.
Feb 08 13:57:04 OMEN systemd[1]: systemd-timesyncd.service: Service has no hold-off time, scheduling restart.
Feb 08 13:57:04 OMEN systemd[1]: systemd-timesyncd.service: Scheduled restart job, restart counter is at 5.
Feb 08 13:57:04 OMEN systemd[1]: Stopped Network Time Synchronization.
Feb 08 13:57:04 OMEN systemd[1]: systemd-timesyncd.service: Start request repeated too quickly.
Feb 08 13:57:04 OMEN systemd[1]: systemd-timesyncd.service: Failed with result 'exit-code'.
Feb 08 13:57:04 OMEN systemd[1]: Failed to start Network Time Synchronization.
무엇이 잘못되었고, 어디서 발견되었으며, 어떻게 해결합니까?
답변1
이것systemd Github 문제다음과 같은 줄을 나열하십시오.해결책:
chmod 0700 /var/lib/private