systemd-timesyncd: 시간 초과

systemd-timesyncd: 시간 초과

Pop OS 21.04에서 시스템 시계를 동기화하려고 합니다.

이 주제에 대한 많은 게시물을 읽었지만 아무 것도 도움이 되지 않는 것 같습니다.

내 시스템 시계가 동기화되지 않아 특정 리소스(예: gitlab)를 로드하는 데 문제가 발생합니다.

$ timedatectl 
               Local time: Sat 2021-10-09 23:02:20 CEST
           Universal time: Sat 2021-10-09 21:02:20 UTC
                 RTC time: Sat 2021-10-09 21:02:21
                Time zone: Europe/Madrid (CEST, +0200)
System clock synchronized: no
              NTP service: active
          RTC in local TZ: no

내 timesyncd.conf는 다음과 같습니다

[Time]
NTP=0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org
FallbackNTP=ntp.ubuntu.com
RootDistanceMaxSec=5
PollIntervalMinSec=32
PollIntervalMaxSec=2048

IP와 다른 서버를 사용하여 NTP 서버를 여러 번 변경했지만 무엇을 하든 항상 다음과 같은 결과를 얻습니다.

$ systemctl status systemd-timesyncd
● systemd-timesyncd.service - Network Time Synchronization
     Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)
     Active: active (running) since Sat 2021-10-09 22:42:10 CEST; 23min ago
       Docs: man:systemd-timesyncd.service(8)
   Main PID: 9955 (systemd-timesyn)
     Status: "Connecting to time server 162.159.200.123:123 (1.pool.ntp.org)."
      Tasks: 2 (limit: 37919)
     Memory: 1.1M
     CGroup: /system.slice/systemd-timesyncd.service
             └─9955 /lib/systemd/systemd-timesyncd

Oct 09 22:55:08 pop-os systemd-timesyncd[9955]: Timed out waiting for reply from 69.164.213.136:123 (0.pool.ntp.org).
Oct 09 22:55:18 pop-os systemd-timesyncd[9955]: Timed out waiting for reply from 82.64.172.48:123 (0.pool.ntp.org).
Oct 09 22:55:29 pop-os systemd-timesyncd[9955]: Timed out waiting for reply from 85.25.128.62:123 (0.pool.ntp.org).
Oct 09 22:55:39 pop-os systemd-timesyncd[9955]: Timed out waiting for reply from 216.197.228.230:123 (0.pool.ntp.org).
Oct 09 22:55:49 pop-os systemd-timesyncd[9955]: Timed out waiting for reply from 185.132.136.116:123 (1.pool.ntp.org).
Oct 09 22:55:59 pop-os systemd-timesyncd[9955]: Timed out waiting for reply from 5.56.160.3:123 (1.pool.ntp.org).
Oct 09 22:56:10 pop-os systemd-timesyncd[9955]: Timed out waiting for reply from 162.159.200.123:123 (2.pool.ntp.org).
Oct 09 22:56:20 pop-os systemd-timesyncd[9955]: Timed out waiting for reply from 185.18.52.78:123 (2.pool.ntp.org).
Oct 09 23:05:02 pop-os systemd-timesyncd[9955]: Timed out waiting for reply from 51.38.162.10:123 (0.pool.ntp.org).
Oct 09 23:05:13 pop-os systemd-timesyncd[9955]: Timed out waiting for reply from 90.165.120.190:123 (0.pool.ntp.org).

AFAIK 123 UDP 포트를 사용하여 요청을 보냅니다. 방화벽이 없으며 액세스 가능한 것 같습니다.

$ nc -vzu 0.pool.ntp.org 123
Connection to 0.pool.ntp.org (90.165.120.190) 123 port [udp/ntp] succeeded!

시스템 시계를 동기화하는 방법에 대한 도움이 필요하십니까?

답변1

NTP 서버가 응답하지 않는 것과 동일한 문제가 발생했습니다. 저는 크로니드를 사용하고 있어요. "chronyd가 서버 NTP 포트를 열고 클라이언트 요청에 응답하려면 chrony.conf 파일에 허용 지시문을 추가해야 합니다"라는 내용을 읽었습니다. 존재하다https://chrony.tuxfamily.org/faq.html

echo "allow" >> /etc/chrony/chrony.conf

내 것은 이제 사용할 준비가 되었습니다.

관련 정보