Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3424

System and Network configuration • Lost System Timing...Is this NTP configured properly?

$
0
0
This past Friday, little Miss Bookworm, had a tantrum and tossed all her timing toys out the pram. She was put into time-out for a while until I read enough to figure it out. Luckily this involved only reading and no rithmatic. It did afford me the opportunity to remove Mint from my drive and rely only on Debian, which frankly, after only a week, I am more comfortable with.

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:

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:

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:ntpsecWarning: some journal files were not opened due to insufficient permissions.


The system is syncing, but no idea why NTP service is N/A.

Code:

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:

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:ntpsecApr 08 09:35:57 lou ntpd[1057]: DNS: dns_check: processing 0.pool.time.nist.gov, 1, 20921Apr 08 09:35:57 lou ntpd[1057]: DNS: dns_check: DNS error: -2, Name or service not knownApr 08 09:35:57 lou ntpd[1057]: DNS: dns_take_status: 0.pool.time.nist.gov=>error, 12Apr 08 09:36:03 lou ntpd[1057]: IO: Listen normally on 4 enp0s31f6 206.248.211.38:123Apr 08 09:36:03 lou ntpd[1057]: IO: Listen normally on 5 enp0s31f6 [fe80::aaa1:59ff:feac:557c%2]:123Apr 08 09:36:03 lou ntpd[1057]: IO: new interface(s) found: waking up resolverApr 08 09:36:03 lou ntpd[1057]: DNS: dns_probe: 0.pool.time.nist.gov, cast_flags:1, flags:20921Apr 08 09:36:03 lou ntpd[1057]: DNS: dns_check: processing 0.pool.time.nist.gov, 1, 20921Apr 08 09:36:03 lou ntpd[1057]: DNS: dns_check: DNS error: -2, Name or service not knownApr 08 09:36:03 lou ntpd[1057]: DNS: dns_take_status: 0.pool.time.nist.gov=>error, 12 

Statistics: Posted by Augie77 — 2024-04-08 15:12 — Replies 4 — Views 114



Viewing all articles
Browse latest Browse all 3424

Trending Articles