Hi,
Chronyd does not use non-nts servers, when there are big time gap and nts server in chrony.conf
Here my procedure:
1. stop chronyd.service , delete some files, like fresh installed and set time to 1990y.
[root@hostname /tmp]# systemctl stop chronyd
[root@hostname /tmp]# rm -vrf /var/lib/chrony/* /var/run/chrony/*
[root@hostname /tmp]# date +%Y%m%d -s '19900101'
2. edit /etc/chrony.conf, here's result:
3. start chronyd server
[root@hostname /tmp]# systemctl start chronyd
[root@hostname /tmp]# systemctl status -l chronyd
Jan 1 00:00:20 hostname systemd: Starting NTP client/server....
Jan
1 00:00:20 hostname chronyd[44348]: chronyd version 4.0 starting
(+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +NTS
+SECHASH +IPV6 +DEBUG)
Jan 1 00:00:20 hostname chronyd[44348]: Initial frequency -3.299 ppm
Jan 1 00:00:20 hostname chronyd[44348]: Using right/UTC timezone to obtain leap second data
Jan 1 00:00:20 hostname systemd: Started NTP client/server.
Jan 1 00:00:21 hostname chronyd[44348]: TLS handshake with
194.58.202.201:4460 (
nts.ntp.se)
failed : Error in the certificate verification. The certificate is NOT
trusted. The certificate chain uses not yet valid certificate.
Jan 1 00:00:21 hostname chronyd[44348]: TLS handshake with
194.58.202.218:4460 (
nts.sth2.ntp.se)
failed : Error in the certificate verification. The certificate is NOT
trusted. The certificate chain uses not yet valid certificate.
Jan 1 00:00:21 hostname chronyd[44348]: TLS handshake with
194.58.202.210:4460 (
nts.sth1.ntp.se)
failed : Error in the certificate verification. The certificate is NOT
trusted. The certificate chain uses not yet valid certificate.
Jan 1 00:00:23 hostname chronyd[44348]: TLS handshake with
162.159.200.123:4460 (
time.cloudflare.com)
failed : Error in the certificate verification. The certificate is NOT
trusted. The certificate chain uses not yet valid certificate.
Jan 1 00:00:29 hostname chronyd[44348]: Source 17.253.82.253 replaced with 17.253.84.251 (
time.apple.com)
Why does chronyd not time*.
apple.com to sync time?
If I comment nts server out, chronyd will sync time quickly.