On 2020-03-14 22:57, Gene Heskett wrote:
On Sunday 15 March 2020 00:39:36 David Christensen wrote:
On 2020-03-14 18:49, Gene Heskett wrote:
I have installed an ntp client on a raspbian buster,
not synching.
Have you tried installing ntpdate on the problem machine and
rebooting?
reboot did take long: no joy
pi@rpi4:~ $ ntpq -np
remote refid st t when poll reach delay offset jitter
==============================================================================
0.debian.pool.n .POOL. 16 p - 64 0 0.000 0.000 0.002
1.debian.pool.n .POOL. 16 p - 64 0 0.000 0.000 0.002
2.debian.pool.n .POOL. 16 p - 64 0 0.000 0.000 0.002
3.debian.pool.n .POOL. 16 p - 64 0 0.000 0.000 0.002
pi@rpi4:~ $ ntpdate
15 Mar 01:55:06 ntpdate[1371]: no servers can be used, exiting
This is my laptop. I believe the clock is correct:
2020-03-14 23:22:09 root@tinkywinky ~
# cat /etc/debian_version ; uname -a
9.12
Linux tinkywinky 4.9.0-12-amd64 #1 SMP Debian 4.9.210-1 (2020-01-20)
x86_64 GNU/Linux
2020-03-14 23:22:52 root@tinkywinky ~
# find /etc -name '*ntp*'
/etc/ntp.conf
/etc/dhcp/dhclient-exit-hooks.d/ntp
/etc/rc5.d/S01ntp
/etc/init.d/ntp
/etc/apparmor.d/tunables/ntpd
/etc/apparmor.d/local/usr.sbin.ntpd
/etc/apparmor.d/usr.sbin.ntpd
/etc/cron.daily/ntp
/etc/rc3.d/S01ntp
/etc/rc4.d/S01ntp
/etc/apparmor/init/network-interface-security/usr.sbin.ntpd
/etc/NetworkManager/dispatcher.d/ntp
/etc/default/ntp
/etc/rc2.d/S01ntp
2020-03-14 23:23:48 root@tinkywinky ~
# dpkg-query --list ntp
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii ntp 1:4.2.8p10+d amd64 Network Time Protocol
daemon and
2020-03-14 23:23:57 root@tinkywinky ~
# dpkg-query --show ntp
ntp 1:4.2.8p10+dfsg-3+deb9u2
2020-03-14 23:24:25 root@tinkywinky ~
# grep -v '#' /etc/ntp.conf | grep .
driftfile /var/lib/ntp/ntp.drift
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
pool 0.debian.pool.ntp.org iburst
pool 1.debian.pool.ntp.org iburst
pool 2.debian.pool.ntp.org iburst
pool 3.debian.pool.ntp.org iburst
restrict -4 default kod notrap nomodify nopeer noquery limited
restrict -6 default kod notrap nomodify nopeer noquery limited
restrict 127.0.0.1
restrict ::1
restrict source notrap nomodify noquery
2020-03-14 23:24:43 root@tinkywinky ~
# ntpq -np
remote refid st t when poll reach delay offset
jitter
==============================================================================
0.debian.pool.n .POOL. 16 p - 64 0 0.000 0.000
0.002
1.debian.pool.n .POOL. 16 p - 64 0 0.000 0.000
0.002
2.debian.pool.n .POOL. 16 p - 64 0 0.000 0.000
0.002
3.debian.pool.n .POOL. 16 p - 64 0 0.000 0.000
0.002
+158.69.248.26 214.176.184.39 2 u 106 128 377 85.787 3.088
0.834
+162.159.200.123 10.4.0.197 3 u 78 128 377 25.357 1.664
1.033
-185.254.101.25 193.52.136.2 3 u 13 256 377 158.733 3.369
1.204
*47.190.36.235 139.78.97.128 2 u 30 128 377 58.466 1.621
1.008
-185.121.25.242 85.199.214.98 2 u 68 256 377 161.615 3.148
1.120
-213.172.105.106 213.172.96.14 2 u 136 256 377 182.500 3.087
0.759
It looks like both of our machines are unable to connect to the
*.debian.pool.ntp.org servers, but my machine has somehow found six
servers than it can connect to. I don't know how or why -- my NTP
knowledge is limited to a general awareness of the network service, and
installing and removing packages.
My next steps would be:
# apt-get purge ntp ntpdate
reboot, and:
# apt-get install ntp ntpdate
David