I did add the directory var/log/ntpsec as recommended per the /etc/ntpsec/ntp.conf file, though I have not seen any logs in there. I have the ntp.conf place holder in /etc. If you have any suggestions, tips, or additional reading material, I am open to it.
Thanks for look at this for me.
----
I decided to use the time.nist.gov time server, for no particular reason other than I know it will ( I hope ) always be there.
Code: Select all
ntpq -p
remote refid st t when poll reach delay offset jitter
=======================================================================================================
0.pool.time.nist.gov .DNS. 16 u - 68m 0 0.0000 0.0000 0.0000
I am not certain why I get the insufficient permissions on the file, other than I was not at root when the below command was issued.
Code: Select all
systemctl status ntp
● ntpsec.service - Network Time Service
Loaded: loaded (/lib/systemd/system/ntpsec.service; enabled; preset: enabled)
Active: active (running) since Mon 2024-04-08 09:35:56 EDT; 1h 1min ago
Docs: man:ntpd(8)
Process: 1050 ExecStart=/usr/libexec/ntpsec/ntp-systemd-wrapper (code=exited, status=0/SUCCESS)
Main PID: 1057 (ntpd)
Tasks: 1 (limit: 18794)
Memory: 12.4M
CPU: 203ms
CGroup: /system.slice/ntpsec.service
└─1057 /usr/sbin/ntpd -p /run/ntpd.pid -c /etc/ntpsec/ntp.conf -g -N -u ntpsec:ntpsec
Warning: some journal files were not opened due to insufficient permissions.
The system is syncing, but no idea why NTP service is N/A.
Code: Select all
timedatectl status
Local time: Mon 2024-04-08 10:38:22 EDT
Universal time: Mon 2024-04-08 14:38:22 UTC
RTC time: Mon 2024-04-08 14:38:22
Time zone: US/Eastern (EDT, -0400)
System clock synchronized: yes
NTP service: n/a
RTC in local TZ: no
The below was from the root user. I believe the bottom two lines are from the nist main server not being known, the servers it points to are then resolved? I can
edit ntp.conf and change to those particular servers, not certain I want to do that though.
Code: Select all
systemctl status ntp
● ntpsec.service - Network Time Service
Loaded: loaded (/lib/systemd/system/ntpsec.service; enabled; preset: enabled)
Active: active (running) since Mon 2024-04-08 09:35:56 EDT; 1h 5min ago
Docs: man:ntpd(8)
Process: 1050 ExecStart=/usr/libexec/ntpsec/ntp-systemd-wrapper (code=exited, status=0/SUCCESS)
Main PID: 1057 (ntpd)
Tasks: 1 (limit: 18794)
Memory: 12.4M
CPU: 212ms
CGroup: /system.slice/ntpsec.service
└─1057 /usr/sbin/ntpd -p /run/ntpd.pid -c /etc/ntpsec/ntp.conf -g -N -u ntpsec:ntpsec
Apr 08 09:35:57 lou ntpd[1057]: DNS: dns_check: processing 0.pool.time.nist.gov, 1, 20921
Apr 08 09:35:57 lou ntpd[1057]: DNS: dns_check: DNS error: -2, Name or service not known
Apr 08 09:35:57 lou ntpd[1057]: DNS: dns_take_status: 0.pool.time.nist.gov=>error, 12
Apr 08 09:36:03 lou ntpd[1057]: IO: Listen normally on 4 enp0s31f6 206.248.211.38:123
Apr 08 09:36:03 lou ntpd[1057]: IO: Listen normally on 5 enp0s31f6 [fe80::aaa1:59ff:feac:557c%2]:123
Apr 08 09:36:03 lou ntpd[1057]: IO: new interface(s) found: waking up resolver
Apr 08 09:36:03 lou ntpd[1057]: DNS: dns_probe: 0.pool.time.nist.gov, cast_flags:1, flags:20921
Apr 08 09:36:03 lou ntpd[1057]: DNS: dns_check: processing 0.pool.time.nist.gov, 1, 20921
Apr 08 09:36:03 lou ntpd[1057]: DNS: dns_check: DNS error: -2, Name or service not known
Apr 08 09:36:03 lou ntpd[1057]: DNS: dns_take_status: 0.pool.time.nist.gov=>error, 12