Posts: 71
Threads: 12
Joined: Jul 2015
Reputation:
0
Hi all,
I am using the following NTP servers on the LM3:Reactor
0.ch.pool.ntp.org
1.ch.pool.ntp.org
2.ch.pool.ntp.org
3.ch.pool.ntp.org
They work on my PC, but on the LM3:Reactor I have no success. Time drifts significantly and is now 9 (!) mins ahead of my PC after 3 months. I have a DCF77 synced watch as reference as well, perfectly in sync with my PC. So I must be doing something wrong on the LM. Changing NTP servers did not help. And the servers above work flawlessly.
Any hints?
Best regards!
Posts: 7764
Threads: 42
Joined: Jun 2015
Reputation:
447
Do you have correct DNS settings on your LM? Have you tried pinging one of the servers from System config?
Posts: 71
Threads: 12
Joined: Jul 2015
Reputation:
0
How do I ping the servers from system config? And what should the DNS settings be?
Posts: 7764
Threads: 42
Joined: Jun 2015
Reputation:
447
You can put 8.8.8.8 as DNS server. Ping is in Status / Network utilities menu.
Posts: 71
Threads: 12
Joined: Jul 2015
Reputation:
0
Thanks. Will check tonight and let you know.
Posts: 7764
Threads: 42
Joined: Jun 2015
Reputation:
447
In System config / Network / Interfaces click "eth0"
Posts: 71
Threads: 12
Joined: Jul 2015
Reputation:
0
14.08.2015, 22:19
(This post was last modified: 14.08.2015, 22:19 by RSV4.)
I now have
Protocol: Static IP
IP address: 10.0.x.xx (fix IP address of my LogicMachine)
Network mask: 255.255.255.0
Gateway IP: 10.0.x.xx (fix IP address of my Router)
DNS Server 1: 8.8.8.8
DNS Server 2: 8.8.4.4
MTU: [empty]
The time now seems to be perfectly correct, pinging the servers is successful. A few questions:
1.) For what else is the DNS Server used? Is it simply just the resolution of the NTP servers addresses? Or is there more communication 'to the outside'?
2.) Is it correct to leave MTU empty?
3.) I think the information of setting name servers and the router/gateway address should be displayed in the NTP window (unless the answer to question 1 contains more applications)
Best regards,
Robin
Posts: 71
Threads: 12
Joined: Jul 2015
Reputation:
0
Hi,
I still have the problem that my time runs away. Just checked and the LM time is more than 8 mins ahead? Hints?
Thanks
Posts: 71
Threads: 12
Joined: Jul 2015
Reputation:
0
Thank you, will do this evening and post result!
Posts: 71
Threads: 12
Joined: Jul 2015
Reputation:
0
24.04.2016, 07:10
(This post was last modified: 24.04.2016, 07:25 by RSV4.)
This is what I get as result:
* string: ntpd: resolved peer 0.ch.pool.ntp.org to 81.94.123.16
ntpd: sending query to 81.94.123.16
ntpd: reply from 81.94.123.16: offset:-466.137866 delay:0.030351 status:0x24 strat:2 refid:0x4a199e55 rootdelay:0.000214 reach:0x01
ntpd: sending query to 81.94.123.16
ntpd: reply from 81.94.123.16: offset:-466.134459 delay:0.038311 status:0x24 strat:2 refid:0x4a199e55 rootdelay:0.000214 reach:0x03
ntpd: sending query to 81.94.123.16
ntpd: reply from 81.94.123.16: offset:-466.134637 delay:0.038405 status:0x24 strat:2 refid:0x4a199e55 rootdelay:0.000214 reach:0x07
ntpd: sending query to 81.94.123.16
ntpd: reply from 81.94.123.16: offset:-466.134215 delay:0.037433 status:0x24 strat:2 refid:0x4a199e55 rootdelay:0.000214 reach:0x0f
ntpd: sending query to 81.94.123.16
ntpd: reply from 81.94.123.16: offset:-466.135192 delay:0.038626 status:0x24 strat:2 refid:0x4a199e55 rootdelay:0.000214 reach:0x1f
ntpd: setting time to 2016-04-24 09:09:34.944574 (offset -466.135192s)
Running the script set the time correctly, however it was wrong before. I export data every minute to a .csv file, you can see the time jump backwards from 9:17:00 to 09:10:30. The time was running away before and I did not change anything in the NTP settings, I just ran the script, nothing else.
2016.04.24 09:16:41 Keller Differenz abs. Feuchtigkeit zu Umgebung 3.89938163757
2016.04.24 09:17:00 Aussen rel. Feuchtigkeit 86.4
2016.04.24 09:17:00 Aussen Taupunkt 0.4
2016.04.24 09:17:00 Helligkeit Nord 4275.2
2016.04.24 09:17:00 Aussen abs. Feuchtigkeit 4.95355892181
2016.04.24 09:17:00 Aussen Temperatur 2.4
2016.04.24 09:10:30 Aussen Temperatur 2.4
2016.04.24 09:10:40 Keller abs. Feuchtigkeit 8.84268665314
2016.04.24 09:10:40 Keller Temperatur 15.9
Posts: 11
Threads: 2
Joined: Sep 2016
Reputation:
0
I have a similar problem:
After power failures, the date is set back to January, and never corrected automatically. I tried this script:
res = io.readproc('ntpd -dnq -p 0.ch.pool.ntp.org 2>&1')
log(res)
This is the result:
* string: ntpd: bad address '0.ch.pool.ntp.org'
ntpd: could not resolve peer 0.ch.pool.ntp.org, skipping
Alarm clock
The ntp-client is set up like this
0.europe.pool.ntp.org
1.europe.pool.ntp.org
2.europe.pool.ntp.org
3.europe.pool.ntp.org
Is there a way to solve this problem?
Posts: 7764
Threads: 42
Joined: Jun 2015
Reputation:
447
Do you have DNS and gateway configured. Try pinging one of the NTP servers from the System Config