New TrueNAS Scale install, NTP unable to sync system time

robo555

Cadet
Joined
Sep 5, 2022
Messages
3
I have a new TrueNAS Scale install, and it doesn't appear to be syncing system time. I've searched previous posts about this but can't find a solution.

Content of /etc/ntp.conf:

# cat /etc/ntp.conf server 0.debian.pool.ntp.org iburst maxpoll 10 minpoll 6 server 1.debian.pool.ntp.org iburst maxpoll 10 minpoll 6 server 2.debian.pool.ntp.org iburst maxpoll 10 minpoll 6 restrict default ignore restrict -6 default ignore restrict 127.0.0.1 restrict -6 ::1 restrict 127.127.1.0 restrict 0.debian.pool.ntp.org nomodify notrap nopeer noquery restrict 1.debian.pool.ntp.org nomodify notrap nopeer noquery restrict 2.debian.pool.ntp.org nomodify notrap nopeer noquery

I can ping the listed server:

# ping 0.debian.pool.ntp.org PING 0.debian.pool.ntp.org (129.70.132.36) 56(84) bytes of data. 64 bytes from stratum2-3.NTP.TechFak.NET (129.70.132.36): icmp_seq=1 ttl=50 time=22.4 ms 64 bytes from stratum2-3.NTP.TechFak.NET (129.70.132.36): icmp_seq=2 ttl=50 time=19.1 ms 64 bytes from stratum2-3.NTP.TechFak.NET (129.70.132.36): icmp_seq=3 ttl=50 time=21.8 ms

ntpq -p points to my ISP model/router for some reason:

# ntpq -p remote refid st t when poll reach delay offset jitter ============================================================================== kabelbox.local .INIT. 16 u - 1024 0 0.000 +0.000 0.000

Many old posts mentions ntpdate, but the command doesn't exist:

# ntpdate zsh: command not found: ntpdate # service ntpd stop Failed to stop ntpd.service: Unit ntpd.service not loaded. r# service ntpd start Failed to start ntpd.service: Unit ntpd.service not found. # timedatectl Local time: Mon 2022-09-05 04:26:29 CEST Universal time: Mon 2022-09-05 02:26:29 UTC RTC time: Mon 2022-09-05 02:26:30 Time zone: Europe/Berlin (CEST, +0200) System clock synchronized: no NTP service: n/a RTC in local TZ: no # timedatectl set-ntp true Failed to set ntp: NTP not supported

Any ideas? It doesn't seem right that the conf points to debian servers, but the ntpq command lists my model/router.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
the ntpq command lists my model/router.

Check to make sure that the DHCP server on the device isn't providing NTP. Next update for TN Scale will remove default debian behavior to override NTP servers with ones from DHCP.
 

robo555

Cadet
Joined
Sep 5, 2022
Messages
3
I've got to the BIOS and set the time to UTC, and added my router IP to the list of NTP servers in addition to the default Debian ones, one or a combination of these things seems to have solved the problem:

# cat /etc/ntp.conf server 0.debian.pool.ntp.org iburst maxpoll 10 minpoll 6 server 1.debian.pool.ntp.org iburst maxpoll 10 minpoll 6 server 2.debian.pool.ntp.org iburst maxpoll 10 minpoll 6 server 192.168.0.1 iburst maxpoll 10 minpoll 6 restrict default ignore restrict -6 default ignore restrict 127.0.0.1 restrict -6 ::1 restrict 127.127.1.0 restrict 0.debian.pool.ntp.org nomodify notrap nopeer noquery restrict 1.debian.pool.ntp.org nomodify notrap nopeer noquery restrict 2.debian.pool.ntp.org nomodify notrap nopeer noquery restrict 192.168.0.1 nomodify notrap nopeer noquery

# ntpq -p remote refid st t when poll reach delay offset jitter ============================================================================== *kabelbox.local LOCAL(0) 11 u 103 1024 377 1.155 +0.165 0.196 # timedatectl Local time: Tue 2022-09-06 13:57:25 CEST Universal time: Tue 2022-09-06 11:57:25 UTC RTC time: Tue 2022-09-06 11:57:25 Time zone: Europe/Berlin (CEST, +0200) System clock synchronized: yes NTP service: n/a RTC in local TZ: no
 
Top