NTP issue

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
etardioli
New user
Posts: 8
Joined: 17 Mar 2021, 05:59

NTP issue

#1 Post by etardioli » 04 Jun 2021, 15:09

Hi! Im using mega-20210503 and try to activate a NTP server for the system. Ive a local NTP server, but when is configured in the webgui the result is

NTP : NTP host xxxxxx.com (192.168.0.239) queried
NTP : NTP host (192.168.0.239) unsynchronized

Using a NTP query tool, the server seems to work properly.

If i leave blank the NTP field the result is these:

NTP : NTP host 2.pool.ntp.org (52.6.191.28) queried
NTP : No reply
NTP : NTP host 0.pool.ntp.org (162.159.200.123) queried
NTP : No reply
NTP : NTP host 1.pool.ntp.org (162.159.200.1) queried
NTP : No reply
NTP : NTP host 0.pool.ntp.org (162.159.200.123) queried
NTP : No reply

Im missing somethin?

Thanks in advance!

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: NTP issue

#2 Post by TD-er » 04 Jun 2021, 16:49

Does your network configuration have a gateway and proper subnetmask set?
Are you using DHCP or static IP?
Is the local NTP server defined via IP or domainname (e.g. router.local)

etardioli
New user
Posts: 8
Joined: 17 Mar 2021, 05:59

Re: NTP issue

#3 Post by etardioli » 04 Jun 2021, 17:18

2021-06-04_12h15_09.png
2021-06-04_12h15_09.png (6.12 KiB) Viewed 4355 times
Does your network configuration have a gateway and proper subnetmask set? Yes
Are you using DHCP or static IP? Static
Is the local NTP server defined via IP or domainname (e.g. router.local) its a domain name resolved locally.

Its strange when the NTP field is empty, the preconfigured servers dont respond either.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: NTP issue

#4 Post by TD-er » 04 Jun 2021, 17:45

Given the errors when using the pool.ntp.org, the ESP can resolve DNS, but not sure if it can resolve the local DNS.
So for a test you could try to use the local IP of the host running the NTP service.

Your gateway and DNS are set to the same host. I assume it is your router and not some L3 switch that allows to route data to another subnet?
Also check the subnet of the host where the NTP service is running. I assume it is the same subnet?

etardioli
New user
Posts: 8
Joined: 17 Mar 2021, 05:59

Re: NTP issue

#5 Post by etardioli » 04 Jun 2021, 17:52

Yes, are in the same subnet and the GW is the DNS to.

When the NTP is set with the IP address of my NTP, the log show this:

NTP : NTP host 192.168.0.239 (192.168.0.239) queried
NTP : NTP host (192.168.0.239) unsynchronized

What is unsynchronized?, i try setting up the DST -180 (Argentina) to
Thanks!

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: NTP issue

#6 Post by TD-er » 04 Jun 2021, 21:14

When looking for "unsynchronized" in the source code, I noticed this link: https://github.com/letscontrolit/ESPEas ... -586656384

In other words, the "leap indicator" is set to "Reserved" or "Alarm condition" ... well follow the link for a more clear explanation.

No idea why you also get an error on NTP hosts from the pool.ntp.org.

Time zone offset can be set on the Tools->Advanced page.

Post Reply

Who is online

Users browsing this forum: No registered users and 28 guests