Page 1 of 1

NTP issue

Posted: 04 Jun 2021, 15:09
by etardioli
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!

Re: NTP issue

Posted: 04 Jun 2021, 16:49
by TD-er
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)

Re: NTP issue

Posted: 04 Jun 2021, 17:18
by etardioli
2021-06-04_12h15_09.png
2021-06-04_12h15_09.png (6.12 KiB) Viewed 4450 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.

Re: NTP issue

Posted: 04 Jun 2021, 17:45
by TD-er
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?

Re: NTP issue

Posted: 04 Jun 2021, 17:52
by etardioli
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!

Re: NTP issue

Posted: 04 Jun 2021, 21:14
by TD-er
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.