What's new

ntpMerlin ntpMerlin v3.x

  • 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!

As @Wade Coxon said, it's not running/starting. To expand a bit, here are a few steps to get you going:

See if the chronyd log file has any information. It's located at /opt/var/log/chrony.log
Try a restart of chronyd:
$ /opt/etc/init.d/S77chronyd restart

See if any errors are printed and also check the log file above.

It does sound like a problem with the config file. This file is located at /opt/etc/ntdpmerlin.d/chrony.conf

If it is running and you are still getting "0" for times/offsets, use the command chronyc to look around.

One of chronyc commands that is very useful is:
$ chronyc sources

This will show all the remote timeservers it's attempting to get data from.

Chronyc has lots of commands:
$ chronyc help

Good luck!

Thanks, I needed to reboot router for other reasons, and it seems to be working now.
 
I just noticed that my syslog is full of chronyd errors. I traced it back to a few days ago when I updated entware. Apparently chrony was updated then, and chronyd was restarted without the ntpmerlin configuration. I restarted chronyd again from the ntpmerlin menu and all is well.
 
I just noticed that my syslog is full of chronyd errors. I traced it back to a few days ago when I updated entware. Apparently chrony was updated then, and chronyd was restarted without the ntpmerlin configuration. I restarted chronyd again from the ntpmerlin menu and all is well.
Thank you for this. Updated Entware previously and ntpMerlin (NTPD) intercept did not work with YazFi Guests. Switched to Chrony and IoTs time back in sync.
 
I toggle to NTPD for a trial. It seems to work but in one of the messages it says clock unsynchronized. Any idea what happen?

Code:
admin@RT-AC86U-DBA8:/tmp/mnt/amtm/entware/var/log# tail -f ntpd.log 
Dec 27 14:21:39 RT-AC86U-DBA8 ntpd[344526]: ----------------------------------------------------
Dec 27 14:21:39 RT-AC86U-DBA8 ntpd[344526]: ntp-4 is maintained by Network Time Foundation,
Dec 27 14:21:39 RT-AC86U-DBA8 ntpd[344526]: Inc. (NTF), a non-profit 501(c)(3) public-benefit
Dec 27 14:21:39 RT-AC86U-DBA8 ntpd[344526]: corporation.  Support and training for ntp-4 are
Dec 27 14:21:39 RT-AC86U-DBA8 ntpd[344526]: available at https://www.nwtime.org/support
Dec 27 14:21:39 RT-AC86U-DBA8 ntpd[344526]: ----------------------------------------------------
Dec 27 14:21:39 RT-AC86U-DBA8 ntpd[344535]: proto: precision = 0.260 usec (-22)
Dec 27 14:21:39 RT-AC86U-DBA8 ntpd[344535]: basedate set to 2022-07-15
Dec 27 14:21:39 RT-AC86U-DBA8 ntpd[344535]: gps base set to 2022-07-17 (week 2219)
Dec 27 14:21:39 RT-AC86U-DBA8 ntpd[344535]: switching logging to file /opt/var/spool/ntp/ntp.log

This is the error message:
Code:
admin@RT-AC86U-DBA8:/tmp/mnt/amtm/entware/var/log# tail -f /opt/var/spool/ntp/ntp.log
 
27 Dec 14:21:39 ntpd[344535]: Listen normally on 0 lo 127.0.0.1:123
27 Dec 14:21:39 ntpd[344535]: Listen normally on 1 lo:0 127.0.1.1:123
27 Dec 14:21:39 ntpd[344535]: Listen normally on 2 br0 192.168.1.1:123
27 Dec 14:21:39 ntpd[344535]: Listening on routing socket on fd #19 for interface updates
27 Dec 14:21:39 ntpd[344535]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
27 Dec 14:21:39 ntpd[344535]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized

Ntptime is working
Code:
admin@RT-AC86U-DBA8:/tmp/home/root# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*time4.facebook. .FB...           1 u   50   64  377    3.489  -87.526  19.247
+time3.facebook. .FB...           1 u   50   64  377   11.981  -85.603  19.240
-time1.facebook. .FB...           1 u   54   64  377    6.642  -72.591  30.824
+time2.google.co .GOOG.           1 u   57   64  377    8.955  -102.52  16.978
+time2.maxonline 218.186.3.36     2 u   53   64  377    7.905  -102.64  17.219
-time1.maxonline .GPS.            1 u   46   64  377    9.511  -118.85  28.656
+ntpmon.dcs1.biz .PPS.            1 u   50   64  377    9.113  -88.003  19.268
+ntp1.bknix.co.t .GPS.            1 u   55   64  377   24.579  -100.61  17.117
+hkhkg1-ntp-001. .GPSs.           1 u   40   64  377   42.794  -85.846  20.588
-twtpe2-ntp-001. .MRS.            1 u   51   64  377   61.859  -109.15  21.240
admin@RT-AC86U-DBA8:/tmp/home/root# 
admin@RT-AC86U-DBA8:/tmp/home/root# ntptime
ntp_gettime() returns code 0 (OK)
  time e7551810.e52cbea4  Tue, Dec 27 2022 15:06:56.895, (.895214943),
  maximum error 142743 us, estimated error 14992 us, TAI offset 0
ntp_adjtime() returns code 0 (OK)
  modes 0x0 (),
  offset -74295.957 us, frequency 115.093 ppm, interval 1 s,
  maximum error 142743 us, estimated error 14992 us,
  status 0x2001 (PLL,NANO),
  time constant 6, precision 0.001 us, tolerance 500 ppm,
admin@RT-AC86U-DBA8:/tmp/home/root#
 
Seeing the following when restarting NTPMerlin, this was after I changed it but I am getting the same error using the default dir

Code:
Sep 25 13:34:55 chronyd[2261954]: chronyd version 4.4 starting (+CMDMON +NTP +REFCLOCK -RTC +PRIVDROP -SCFILTER -SIGND +ASYNCDNS +NTS -SECHASH +IPV6 -DEBUG)
Sep 25 13:34:55 chronyd[2261954]: Frequency -0.798 +/- 2.393 ppm read from /opt/var/lib/chrony/drift
Sep 25 13:34:55 chronyd[2261954]: Could not open /opt/var/spool/ntp//tracking.log : Permission denied
Sep 25 13:34:56 chronyd[2261954]: Could not open /opt/var/spool/ntp//measurements.log : Permission denied
Sep 25 13:35:00 chronyd[2261954]: Could not open /opt/var/spool/ntp//statistics.log : Permission denied
Sep 25 13:35:00 chronyd[2261954]: Selected source 85.199.214.98 (1.uk.pool.ntp.org)
Sep 25 13:35:00 chronyd[2261954]: System clock wrong by 0.816655 seconds
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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