What's new

ntpMerlin LAN clients can't sync

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

sbsnb

Very Senior Member
NTP has been running for 30 minutes. I try to sync a LAN client to router's IP and received the error:

An error occurred while Windows was syncing with 192.168.1.1. The peer is unreachable.

ntp.log shows:
Code:
 1 Jun 10:57:44 ntpd[32154]: Listen normally on 0 lo 127.0.0.1:123
1 Jun 10:57:44 ntpd[32154]: Listen normally on 1 lo:0 127.0.1.1:123
1 Jun 10:57:44 ntpd[32154]: Listen normally on 2 br0 192.168.1.1:123
1 Jun 10:57:44 ntpd[32154]: Listening on routing socket on fd #19 for interfac>
1 Jun 10:57:44 ntpd[32154]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
1 Jun 10:57:44 ntpd[32154]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
1 Jun 11:15:11 ntpd[32154]: no peer for too long, server running free now

There are 5 servers set up in ntp.conf:
Code:
server time-a-wwv.nist.gov iburst
server time-c-g.nist.gov iburst
server gpstime.la-archdiocese.net iburst
server clock.fmt.he.net iburst
server clepsydra.dec.com iburst
 
Last edited:
your signature doesn't reflect that you've installed ntpMerlin - is there a tab under Addons in the merlin GUI?
I just replied to your other post as well. Start there.
 
Yes. I have the ntpmerlin tab.

Screenshot_2021-06-01 ntpMerlin.png
 
Windows has no issue syncing with pool.ntp.org servers.
 
NTP has been running for 30 minutes. I try to sync a LAN client to router's IP and received the error:

An error occurred while Windows was syncing with 192.168.1.1. The peer is unreachable.

ntp.log shows:
Code:
 1 Jun 10:57:44 ntpd[32154]: Listen normally on 0 lo 127.0.0.1:123
1 Jun 10:57:44 ntpd[32154]: Listen normally on 1 lo:0 127.0.1.1:123
1 Jun 10:57:44 ntpd[32154]: Listen normally on 2 br0 192.168.1.1:123
1 Jun 10:57:44 ntpd[32154]: Listening on routing socket on fd #19 for interfac>
1 Jun 10:57:44 ntpd[32154]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
1 Jun 10:57:44 ntpd[32154]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
1 Jun 11:15:11 ntpd[32154]: no peer for too long, server running free now

There are 5 servers set up in ntp.conf:
Code:
server time-a-wwv.nist.gov iburst
server time-c-g.nist.gov iburst
server gpstime.la-archdiocese.net iburst
server clock.fmt.he.net iburst
server clepsydra.dec.com iburst
are you running any firewall scripts that might be blocking port 123 on the router itself?
 
Just Skynet. There's nothing in the logs to suggest anything's being blocked.
 
Code:
admin@RT-AC88U-B1E8:/tmp/home/root# netstat -anp | grep 123
udp        0      0 192.168.1.1:123       0.0.0.0:*                           10960/ntpd
udp        0      0 127.0.1.1:123           0.0.0.0:*                           10960/ntpd
udp        0      0 127.0.0.1:123           0.0.0.0:*                           10960/ntpd
 
It seems like ntpd can't reach any peers:

Code:
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
ntp2.ds.network 162.159.200.1    4 u  51y   64    3    0.000   +0.000   0.000
120.25.115.20   10.137.53.7      2 u  51y   64    7  1622574  +811287   0.002
111.230.189.174 100.122.36.4     2 u  51y   64    7    0.000   +0.000   0.000
ntp1.ds.network 92.21.53.217     2 u  51y   64    3  1622574  +811287   0.002
I can ping the peers without issue. These are the default poo.ntp.org servers.
 
It seems like ntpd can't reach any peers:

Code:
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
ntp2.ds.network 162.159.200.1    4 u  51y   64    3    0.000   +0.000   0.000
120.25.115.20   10.137.53.7      2 u  51y   64    7  1622574  +811287   0.002
111.230.189.174 100.122.36.4     2 u  51y   64    7    0.000   +0.000   0.000
ntp1.ds.network 92.21.53.217     2 u  51y   64    3  1622574  +811287   0.002
I can ping the peers without issue. These are the default poo.ntp.org servers.
that's strange. try changing the conf back to the default servers?

server 0.pool.ntp.org iburst
server 1.pool.ntp.org iburst
server 2.pool.ntp.org iburst
server 3.pool.ntp.org iburst
 
That's how it's configured currently. Troubleshooting with all defaults.
 
It looks like it finally reached some peers:
Code:
admin@RT-AC88U-B1E8:/jffs/addons/ntpmerlin.d# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
ntp2.ds.network 162.159.200.1    4 u  51y   64  377    0.000   +0.000   0.000
120.25.115.20   10.137.53.7      2 u   54   64  377  244.861  +58.862   0.207
111.230.189.174 100.122.36.4     2 u   49   64  377  166.650  +17.225 5736669
ntp1.ds.network 92.21.53.217     2 u   44   64  377  244.960  +75.946   0.002
Still can't sync from LAN.
 
That's how it's configured currently. Troubleshooting with all defaults.
hm, definitely nothing showing outbound as being blocked if you restart ntpd? can you try temporarily disabling skynet just in case?
 
Temporarily disabling Skynet didn't help. I still suspect there is some issue with syncrhonization of ntpd. The stats don't look right.

Screenshot_2021-06-01 ntpMerlin.png
 
I suspect it has something to do with these lines in the ntp.log file:

Code:
 1 Jun 12:56:21 ntpd[11992]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
 1 Jun 12:56:21 ntpd[11992]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
 
And now ntpq is going beserk:

Code:
admin@RT-AC88U-B1E8:/jffs/scripts# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 50-205-57-38-st .GPS.            1 u  51y   64  377  1622578  +811289 5736680
 23.157.160.168  129.6.15.28      2 u  51y   64  377  1622578  +811289   0.002
 toofishes.net   129.7.1.66       2 u  51y   64  377  1622578  +811289 33828.1
 50-205-244-111- 50.205.244.27    2 u  51y   64  377  1622578  +811289 34414.2
 
I suspect it has something to do with these lines in the ntp.log file:

Code:
 1 Jun 12:56:21 ntpd[11992]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
1 Jun 12:56:21 ntpd[11992]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
Those are normal iirc with ntpd. Try switching to chrony instead and see if that has any issues
 
Could this be at all related to timezones? I had to do the following in /jffs/scripts/post-mount to get the time correct in entware apps:

Code:
  if [ ! -r /etc/localtime -a -r /opt/share/zoneinfo/US/Pacific ]; then
     ln -sf /opt/share/zoneinfo/US/Pacific /etc/localtime
 
Could this be at all related to timezones? I had to do the following in /jffs/scripts/post-mount to get the time correct in entware apps:

Code:
  if [ ! -r /etc/localtime -a -r /opt/share/zoneinfo/US/Pacific ]; then
     ln -sf /opt/share/zoneinfo/US/Pacific /etc/localtime
seems unlikely but worth undoing to rule it out. my usual approach is to:
Code:
TZ=$(cat /etc/TZ)
export TZ
 
The TZ variable has to be a path/filename for a tz file, otherwise entware apps can't determine the time.
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top