What's new

ntpMerlin ntpMerlin - NTP Daemon for AsusWRT Merlin

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

1.0.11 has been released
Code:
No longer overwrite user's config, save to /jffs/configs/ntp.conf.default instead
It overwrote the user config one more (hopefully last) time:
Code:
Choose an option:    u

ntpMerlin: New version of ntpMerlin available - updating to v1.0.11

ntpMerlin: New version of ntp.conf downloaded, previous file saved to /jffs/configs/ntp.conf.bak

 Shutting down ntpd...              done.
 Starting ntpd...              done.
ntpMerlin: ntpMerlin successfully updated
 
It overwrote the user config one more (hopefully last) time:
Code:
Choose an option:    u

ntpMerlin: New version of ntpMerlin available - updating to v1.0.11

ntpMerlin: New version of ntp.conf downloaded, previous file saved to /jffs/configs/ntp.conf.bak

 Shutting down ntpd...              done.
 Starting ntpd...              done.
ntpMerlin: ntpMerlin successfully updated
Yes, that's the old update code which is sadly unavoidable :(
 
Code:
30 Mar 07:46:47 ntpd[19594]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized
30 Mar 07:46:47 ntpd[19594]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized
30 Mar 08:00:41 ntpd[19594]: ntpd exiting on signal 15 (Terminated)
30 Mar 08:00:41 ntpd[19594]: 185.181.210.90 local addr 172.24.5.1 -> <null>
30 Mar 08:00:41 ntpd[19594]: 213.14.68.38 local addr 172.24.5.1 -> <null>
30 Mar 08:00:41 ntpd[19594]: 193.140.100.40 local addr 172.24.5.1 -> <null>
30 Mar 08:00:41 ntpd[19594]: 178.79.155.116 local addr 172.24.5.1 -> <null>
30 Mar 08:00:41 ntpd[21447]: Listen normally on 0 lo 127.0.0.1:123
30 Mar 08:00:41 ntpd[21447]: Listen normally on 1 br0 172.24.5.1:123
30 Mar 08:00:41 ntpd[21447]: Listening on routing socket on fd #18 for interface updates
30 Mar 08:00:41 ntpd[21447]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized
30 Mar 08:00:41 ntpd[21447]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized

I guess these means my clock is not synced? How can I manually force sync?
 
Code:
30 Mar 07:46:47 ntpd[19594]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized
30 Mar 07:46:47 ntpd[19594]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized
30 Mar 08:00:41 ntpd[19594]: ntpd exiting on signal 15 (Terminated)
30 Mar 08:00:41 ntpd[19594]: 185.181.210.90 local addr 172.24.5.1 -> <null>
30 Mar 08:00:41 ntpd[19594]: 213.14.68.38 local addr 172.24.5.1 -> <null>
30 Mar 08:00:41 ntpd[19594]: 193.140.100.40 local addr 172.24.5.1 -> <null>
30 Mar 08:00:41 ntpd[19594]: 178.79.155.116 local addr 172.24.5.1 -> <null>
30 Mar 08:00:41 ntpd[21447]: Listen normally on 0 lo 127.0.0.1:123
30 Mar 08:00:41 ntpd[21447]: Listen normally on 1 br0 172.24.5.1:123
30 Mar 08:00:41 ntpd[21447]: Listening on routing socket on fd #18 for interface updates
30 Mar 08:00:41 ntpd[21447]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized
30 Mar 08:00:41 ntpd[21447]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized

I guess these means my clock is not synced? How can I manually force sync?

Try updating and/or re-installing ntpMerlin. Make sure you 'enable' it too, via the menu.

If this doesn't work, reboot the router via the GUI. This should sync everything up.
 
Try updating and/or re-installing ntpMerlin. Make sure you 'enable' it too, via the menu.

If this doesn't work, reboot the router via the GUI. This should sync everything up.
Enabling in menu is to redirect all NTP requests to router. It should be running upon successful installation.
 
Enabling in menu is to redirect all NTP requests to router. It should be running upon successful installation.

It should be. :)
 
On my AC3100 I’m experiencing on CPU core pegged at 100% and a bunch of runaway rrdtool processes. I know this isn’t listed as a supported model, but is that true incompatibility or lack of testing?
 
Code:
30 Mar 07:46:47 ntpd[19594]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized
30 Mar 07:46:47 ntpd[19594]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized
30 Mar 08:00:41 ntpd[19594]: ntpd exiting on signal 15 (Terminated)
30 Mar 08:00:41 ntpd[19594]: 185.181.210.90 local addr 172.24.5.1 -> <null>
30 Mar 08:00:41 ntpd[19594]: 213.14.68.38 local addr 172.24.5.1 -> <null>
30 Mar 08:00:41 ntpd[19594]: 193.140.100.40 local addr 172.24.5.1 -> <null>
30 Mar 08:00:41 ntpd[19594]: 178.79.155.116 local addr 172.24.5.1 -> <null>
30 Mar 08:00:41 ntpd[21447]: Listen normally on 0 lo 127.0.0.1:123
30 Mar 08:00:41 ntpd[21447]: Listen normally on 1 br0 172.24.5.1:123
30 Mar 08:00:41 ntpd[21447]: Listening on routing socket on fd #18 for interface updates
30 Mar 08:00:41 ntpd[21447]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized
30 Mar 08:00:41 ntpd[21447]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized

I guess these means my clock is not synced? How can I manually force sync?
  • Synchronization is unknown because these log excerpts are normal at shutdown and startup.
  • Synchronization status, however, may still be unclear from a complete ntp.log.
  • Run "ntpq -p"
  • Run "ntptime"
 
Enabling in menu is to redirect all NTP requests to router. It should be running upon successful installation.
Right, I would recommend holding off on enabling the redirection of NTP requests to your server until you are confident that it is healthy. Also, one must be sure that your LAN does not have another NTP server.
 
On my AC3100 I’m experiencing on CPU core pegged at 100% and a bunch of runaway rrdtool processes. I know this isn’t listed as a supported model, but is that true incompatibility or lack of testing?
You may be the first to try ntpMerlin on an RT-AC3100.

However, the ntp daemon and rrd graphing are stable Entware releases.
Code:
# opkg list-installed | egrep "ntp|rrd" | sort -k 2,2 -t "-"
librrd - 1.2.30-3a
rrdtool - 1.2.30-3a
ntpd - 4.2.8p12-2
ntp-utils - 4.2.8p12-2
 
You may be the first to try ntpMerlin on an RT-AC3100.

However, the ntp daemon and rrd graphing are stable Entware releases.
Code:
# opkg list-installed | egrep "ntp|rrd" | sort -k 2,2 -t "-"
librrd - 1.2.30-3a
rrdtool - 1.2.30-3a
ntpd - 4.2.8p12-2
ntp-utils - 4.2.8p12-2

Not claiming 'first', but I'm running it on my RT-AC3100 for almost a week now, no issues. I should state that I have it running after a full M&M Config though (in the process of getting it ready to be sold after I compare it fully and fairly to an RT-AC86U I'll be replacing it with soon).

Oh, I should update my signature too! :)
 
Thanks for making this, I gave up on the original a long time ago as it was never stable, fingers crossed this one is :)
Do I set the router to its own IP?
 
Thanks for making this, I gave up on the original a long time ago as it was never stable, fingers crossed this one is :)
Do I set the router to its own IP?

No, run the installer (curl) command and then start the script to check that NTP traffic is redirected 'enabled' to ntpMerlin (option 2).

That's all! Now be patient for at least 5 or 10 minutes.

When you now check in the GUI, make sure to hit the refresh button at the bottom, when needed. ntpMerlin refreshes the stats every 5 minutes, but the GUI needs a little push... ;)
 
No, run the installer (curl) command and then start the script to check that NTP traffic is redirected 'enabled' to ntpMerlin (option 2).

That's all! Now be patient for at least 5 or 10 minutes.

When you now check in the GUI, make sure to hit the refresh button at the bottom, when needed. ntpMerlin refreshes the stats every 5 minutes, but the GUI needs a little push... ;)
yeah I am getting graphs, I just wasn't sure what to put in the NTP server box in Administration - System as I had a UK NTP server IP in already.
 
Testing (trying to break!) ntpMerlin, I did a force update (uf) from the menu.

Code:
Download_File "$NTPD_REPO/$1" "$tmpfile"
  if [ -f "/jffs/configs/$1.default" ]; then
   if ! diff -q "$tmpfile" "/jffs/configs/$1.default" >/dev/null 2>&1; then
    Download_File "$NTPD_REPO/$1" "/jffs/configs/$1.default"
    Print_Output "true" "New default version of $1 downloaded to /jffs/configs/$1.default, please compare against your /jffs/configs/$1" "$PASS"
   fi
  else
   Download_File "$NTPD_REPO/$1" "/jffs/configs/$1.default"
   Print_Output "true" "/jffs/configs/$1.default does not exist, downloading now. Please compare against your /jffs/configs/$1" "$PASS"
  fi
  rm -f "$tmpfile"
 else
  return 1

This part of the script kicked in and left me wondering why there was no default? It asked to compare against ntp.conf.

I can't find the 'default' file, but it did not overwrite my ntp.conf which I had previously modified. :)

Is this how it is supposed to be working, or should I be concerned?

When I re-ran 'uf', it simply said that it had downloaded the latest version (v1.0.11) of ntpMerlin and that ntpMerlin was successfully updated.

Again, the modified ntp.conf file wasn't affected.

Thank you for any answers you may provide.
 
Testing (trying to break!) ntpMerlin, I did a force update (uf) from the menu.

Code:
Download_File "$NTPD_REPO/$1" "$tmpfile"
  if [ -f "/jffs/configs/$1.default" ]; then
   if ! diff -q "$tmpfile" "/jffs/configs/$1.default" >/dev/null 2>&1; then
    Download_File "$NTPD_REPO/$1" "/jffs/configs/$1.default"
    Print_Output "true" "New default version of $1 downloaded to /jffs/configs/$1.default, please compare against your /jffs/configs/$1" "$PASS"
   fi
  else
   Download_File "$NTPD_REPO/$1" "/jffs/configs/$1.default"
   Print_Output "true" "/jffs/configs/$1.default does not exist, downloading now. Please compare against your /jffs/configs/$1" "$PASS"
  fi
  rm -f "$tmpfile"
 else
  return 1

This part of the script kicked in and left me wondering why there was no default? It asked to compare against ntp.conf.

I can't find the 'default' file, but it did not overwrite my ntp.conf which I had previously modified. :)

Is this how it is supposed to be working, or should I be concerned?

When I re-ran 'uf', it simply said that it had downloaded the latest version (v1.0.11) of ntpMerlin and that ntpMerlin was successfully updated.

Again, the modified ntp.conf file wasn't affected.

Thank you for any answers you may provide.
The default is the ntp.conf that is provided at install time. Should I implement a new setting, or the community requests a change in settings (e.g. different default ntp servers), I added a way for ntpmerlin to download this, and ask the user to compare with their conf file. This is the same concept as opkg upgrade, which drops in a -opkg version to not conflict with the user's own conf
 
The default is the ntp.conf that is provided at install time. Should I implement a new setting, or the community requests a change in settings (e.g. different default ntp servers), I added a way for ntpmerlin to download this, and ask the user to compare with their conf file. This is the same concept as opkg upgrade, which drops in a -opkg version to not conflict with the user's own conf

No, your defaults NTP servers should be left as is (it can be used right out of the 'box'). :)

If I'm understanding correctly, you're just notifying users to check that their preferred NTP servers are being used? If so, that is great. Please don't change anything for me (I will learn to read it as meant).

Thank you for your reply!
 

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