On 01.08.2021 17:47, Andrei Borzenkov wrote:
On 01.08.2021 16:40, Marco Calistri wrote:
I already asked but didn't get feedback so far.
Why chronyc looses the syncing with external NTP during system st/by and it is necessary to manually re-sync?
^? time.cloudflare.com 0 6 0 - +0ns[ +0ns] +/- 0ns
^? par.cyberbits.eu 0 6 0 - +0ns[ +0ns] +/- 0ns
^? static.102.162.46.78.cli> 0 6 0 - +0ns[ +0ns] +/- 0ns
^? pob01.mulx.net 0 6 0 - +0ns[ +0ns] +/- 0ns
^? ntp.rol.net.mv 0 6 0 - +0ns[ +0ns] +/- 0ns
^? mail.masters-of-cloud.de 0 6 0 - +0ns[ +0ns] +/- 0ns
How long did you wait after resume before getting this output?
After suspend/resume chronyd most likely sees time jump and resets all sources state. Which is why
Otherwise logs may give some more hints.
You should have checked and provided chronyd logs. Most likely you see something like "Forward time jump detected!". That would explain output you get. The chronyc activity would show overview of current sources status (online/offline). Further steps depend on whether sources are online or offline from chronyd point of view.
sudo chronyc burst 4/4; sudo chronyc makestep
[sudo] password di root:
200 OK
200 OK
*^* time.cloudflare.com* 3 6 0 20m -85us[+1906us] +/- 71ms
^- par.cyberbits.eu 2 6 0 20m -4421us[-2430us] +/- 150ms
^- static.102.162.46.78.cli> 2 6 0 20m -15ms[ -15ms] +/- 162ms
^- pob01.mulx.net 2 6 0 20m +261us[ +261us] +/- 130ms
^- ntp.rol.net.mv 3 6 0 20m +1112ns[+1992us] +/- 426ms
^- mail.masters-of-cloud.de 2 6 0 20m +2603us[+2603us] +/- 108ms
Well, it looks like sources remained offline actually. burst tells chronyd to (try to) contact sources but does not change their status (so if sources are offline no periodic polling starts). And BTW what "chronyc sources" says *before* suspend?