You are not logged in.

#1 2021-11-03 12:24:49

potuz
Member
Registered: 2009-10-23
Posts: 68

[SOLVED] timesyncd timing out

Hello, I am having trouble getting systemd-timesyncd to actually sync my clock.  I seem to have everything set correctly but the time is off by 3 hours and a few minutes more (almost as if the hardware clock would be set to localtime instead of utc)

$ timedatectl 
               Local time: Wed 2021-11-03 06:15:03 -03
           Universal time: Wed 2021-11-03 09:15:03 UTC
                 RTC time: Wed 2021-11-03 09:15:04
                Time zone: America/Sao_Paulo (-03, -0300)
System clock synchronized: no
              NTP service: active
          RTC in local TZ: no

Timesync is active

$ systemctl status systemd-timesyncd.service
● systemd-timesyncd.service - Network Time Synchronization
     Loaded: loaded (/usr/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2021-11-03 05:55:58 -03; 21min ago
       Docs: man:systemd-timesyncd.service(8)
   Main PID: 81153 (systemd-timesyn)
     Status: "Idle."
      Tasks: 2 (limit: 9394)
     Memory: 1.3M
        CPU: 73ms
     CGroup: /system.slice/systemd-timesyncd.service
             └─81153 /usr/lib/systemd/systemd-timesyncd

Nov 03 06:11:00 sala432 systemd-timesyncd[81153]: Timed out waiting for reply from 200.160.7.186:123 (200.160.7.186).
Nov 03 06:11:10 sala432 systemd-timesyncd[81153]: Timed out waiting for reply from 200.186.125.195:123 (200.186.125.195).
Nov 03 06:11:20 sala432 systemd-timesyncd[81153]: Timed out waiting for reply from 146.164.48.5:123 (2.arch.pool.ntp.org).
Nov 03 06:11:31 sala432 systemd-timesyncd[81153]: Timed out waiting for reply from 200.189.40.8:123 (2.arch.pool.ntp.org).
Nov 03 06:11:41 sala432 systemd-timesyncd[81153]: Timed out waiting for reply from 200.192.232.8:123 (2.arch.pool.ntp.org).
Nov 03 06:11:51 sala432 systemd-timesyncd[81153]: Timed out waiting for reply from 143.107.229.210:123 (2.arch.pool.ntp.org).
Nov 03 06:12:01 sala432 systemd-timesyncd[81153]: Timed out waiting for reply from 45.11.105.243:123 (3.arch.pool.ntp.org).
Nov 03 06:12:12 sala432 systemd-timesyncd[81153]: Timed out waiting for reply from 45.11.105.253:123 (3.arch.pool.ntp.org).
Nov 03 06:12:22 sala432 systemd-timesyncd[81153]: Timed out waiting for reply from 52.67.171.238:123 (3.arch.pool.ntp.org).
Nov 03 06:12:32 sala432 systemd-timesyncd[81153]: Timed out waiting for reply from 200.160.0.8:123 (3.arch.pool.ntp.org).

But I see only all those "Timed out messages". Network is fine and firewall is off

Last edited by potuz (2021-11-03 13:35:08)

Offline

#2 2021-11-03 12:32:03

Scimmia
Fellow
Registered: 2012-09-01
Posts: 9,424

Re: [SOLVED] timesyncd timing out

If I had to guess, port 123 is blocked somewhere?

Your hardware clock really is set to localtime.

Offline

#3 2021-11-03 13:34:47

potuz
Member
Registered: 2009-10-23
Posts: 68

Re: [SOLVED] timesyncd timing out

Scimmia wrote:

If I had to guess, port 123 is blocked somewhere?

Indeed it ended up being a change in our IT policy that started blocking external ntp servers.

Offline

Board footer

Powered by FluxBB