Toon's clock is 2 minutes behind

If your (rooted) Toon doesn't do what it's supposed to, post here. Dutch allowed / Posten in 't Nederlands toegestaan.

Moderator: marcelr

Toon's clock is 2 minutes behind

Postby hansgrave » Wed Aug 22, 2018 7:28 pm

Suddenly Toon's clock is 2 minutes behind, restart Toon and restart router doesn't solve this problem. Does anyone have a different solution?

Hans
hansgrave
Starting Member
Starting Member
 
Posts: 7
Joined: December 2017

Re: Toon's clock is 2 minutes behind

Postby marcelr » Wed Aug 22, 2018 8:29 pm

Two checks:

Is your toon connected to the internet?
If not, connect it.

Is Toons chronyd up and running, and connecting to a time server?

If not start it, and check whether the chronyd is connected to a time server (the rooting manual gives an example), lately I 've been using 0.nl.pool.ntp.org successfully.
marcelr
Advanced Member
Advanced Member
 
Posts: 909
Joined: May 2012
Location: Ehv

Re: Toon's clock is 2 minutes behind

Postby Demif » Thu Aug 23, 2018 7:49 pm

Same here, 3 min.
toon is connected tot the internet.
changed the time server

Works. Needed Some time to sync.
Last edited by Demif on Fri Aug 24, 2018 7:54 am, edited 1 time in total.
Demif
Starting Member
Starting Member
 
Posts: 12
Joined: November 2017

Re: Toon's clock is 2 minutes behind

Postby Toonz » Thu Aug 23, 2018 9:08 pm

Have you updated /etc/chrony.conf as described here: https://www.domoticaforum.eu/viewtopic. ... onf#p85791 ?
And reboot probably
Toonz
Advanced Member
Advanced Member
 
Posts: 686
Joined: December 2016

Re: Toon's clock is 2 minutes behind

Postby hansgrave » Thu Aug 23, 2018 9:24 pm

marcelr wrote:Two checks:

Is your toon connected to the internet?
If not, connect it.

Is Toons chronyd up and running, and connecting to a time server?

If not start it, and check whether the chronyd is connected to a time server (the rooting manual gives an example), lately I 've been using 0.nl.pool.ntp.org successfully.


Thanx, changing the time server in chrony.conf solved the problem. Remarkably, the config was in accordance with the root manual.
hansgrave
Starting Member
Starting Member
 
Posts: 7
Joined: December 2017

Re: Toon's clock is 2 minutes behind

Postby TheHogNL » Fri Aug 24, 2018 7:00 am

The www.nist.gov mentioned in the rooting guide seems not to provide any time anymore

Code: Select all
# ntpq -p www.nist.gov
dualstack.mc-12555-1019789594.us-east-1.elb.amazonaws.com: timed out, nothing received
***Request timed out


So just use the nl.pool.ntp.org servers. That what they are for. @MarcelC can you change the manual?
TheHogNL
Member
Member
 
Posts: 416
Joined: August 2017

Re: Toon's clock is 2 minutes behind

Postby marcelr » Fri Aug 24, 2018 7:41 am

TheHogNL wrote:@MarcelC can you change the manual?

It's marcelr. Yes I can.
There are some more fixes to be done, will look into it this weekend.
marcelr
Advanced Member
Advanced Member
 
Posts: 909
Joined: May 2012
Location: Ehv

Re: Toon's clock is 2 minutes behind

Postby mogwai » Thu Aug 30, 2018 11:35 am

Toonz wrote:Have you updated /etc/chrony.conf as described here: https://www.domoticaforum.eu/viewtopic. ... onf#p85791 ?
And reboot probably


Used the exact contents of the chrony.conf mentioned in above link, but still get errors / warnings if I look in /var/log/messages (see below). Any clues?

Code: Select all
Aug 30 12:25:50 eneco-001-286065 daemon.info chronyd[1247]: chronyd version 1.27 starting
Aug 30 12:25:50 eneco-001-286065 daemon.info chronyd[1247]: Linux kernel major=2 minor=6 patch=36
Aug 30 12:25:50 eneco-001-286065 daemon.info chronyd[1247]: hz=100 shift_hz=7 freq_scale=1.00000000 nominal_tick=10000 slew_delta_tick=833 max_tick_bias=1000 shift_pll=2
Aug 30 12:25:50 eneco-001-286065 daemon.err chronyd[1247]: Could not open IPv6 NTP socket : Address family not supported by protocol
Aug 30 12:25:50 eneco-001-286065 daemon.err chronyd[1247]: Could not open IPv6 command socket : Address family not supported by protocol
Aug 30 12:25:51 eneco-001-286065 daemon.info chronyd[1247]: Frequency 4.413 +/- 0.074 ppm read from /var/lib/chrony/chrony.drift
Aug 30 12:25:51 eneco-001-286065 daemon.info chronyd[1247]: System's initial offset : 138.716520 seconds slow of true (step)
Aug 30 12:28:10 eneco-001-286065 daemon.warn chronyd[1247]: Could not open dump file /var/lib/chrony/185.92.220.131.dat
Aug 30 12:28:10 eneco-001-286065 daemon.warn chronyd[1247]: Could not open dump file /var/lib/chrony/95.211.212.5.dat
Aug 30 12:28:10 eneco-001-286065 daemon.warn chronyd[1247]: Could not open dump file /var/lib/chrony/213.109.127.82.dat
Aug 30 12:28:10 eneco-001-286065 daemon.warn chronyd[1247]: Could not open dump file /var/lib/chrony/193.169.139.87.dat
mogwai
Starting Member
Starting Member
 
Posts: 12
Joined: August 2018

Re: Toon's clock is 2 minutes behind

Postby TheHogNL » Thu Aug 30, 2018 4:59 pm

You can ignore that if your time is now in sync.
TheHogNL
Member
Member
 
Posts: 416
Joined: August 2017

Re: Toon's clock is 2 minutes behind

Postby TheHogNL » Sat Sep 01, 2018 6:23 pm

Just noticed that the chrony implementation on the toon is somewhat buggy. If it connects to a new time server which is has never connected to, it will not sync to it (giving that error dump file message). With pool.ntp.org the server will change between a lot of pool servers. Just restart chrony a few times and it will create the necessary files for it to sync properly.

Check with "chronyc sources -v"
TheHogNL
Member
Member
 
Posts: 416
Joined: August 2017

Re: Toon's clock is 2 minutes behind

Postby mogwai » Sun Sep 02, 2018 8:23 pm

TheHogNL wrote:Just noticed that the chrony implementation on the toon is somewhat buggy. If it connects to a new time server which is has never connected to, it will not sync to it (giving that error dump file message). With pool.ntp.org the server will change between a lot of pool servers. Just restart chrony a few times and it will create the necessary files for it to sync properly.

Check with "chronyc sources -v"


A few chrony restarts indeed removed the errors. Thanks!
mogwai
Starting Member
Starting Member
 
Posts: 12
Joined: August 2018

Re: Toon's clock is 2 minutes behind

Postby MyZ » Thu Sep 06, 2018 12:31 pm

How do I restart chrony?
MyZ
Starting Member
Starting Member
 
Posts: 18
Joined: June 2018

Re: Toon's clock is 2 minutes behind

Postby TerrorSource » Thu Sep 06, 2018 12:42 pm

MyZ wrote:How do I restart chrony?


Did you try a reboot? :D
TerrorSource
Member
Member
 
Posts: 154
Joined: May 2017

Re: Toon's clock is 2 minutes behind

Postby MyZ » Thu Sep 06, 2018 1:55 pm

Yes a couple of times :wink:
MyZ
Starting Member
Starting Member
 
Posts: 18
Joined: June 2018

Re: Toon's clock is 2 minutes behind

Postby TerrorSource » Thu Sep 06, 2018 2:05 pm

MyZ wrote:Yes a couple of times :wink:


Can you post the content of the chrony file ?
TerrorSource
Member
Member
 
Posts: 154
Joined: May 2017

Next

Return to Toon issues and support (Nederlands toegestaan)

Who is online

Users browsing this forum: No registered users and 1 guest

cron