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!

Hi,

I'm not sure the configs for the usb option are working as intended as after a reboot (and a reinstall of ntpmerlin) I see ntpd running with the jffs config file (which doesn't exist). This is on an old RT-N66U which has been played with quite a bit over the years so something local could be causing an issue. Ntpmerlin is at 2.5.0 master; the graphs are all showing flatlines at zero.

2149 admin 3888 S ntpd -c /jffs/addons/ntpmerlin.d/ntp.conf -g

The "usb" storage is actually an internal microsd card but mounted as a USB would be :-

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 20352 20352 0 100% /
tmpfs 119836 4788 115048 4% /tmp
devfs 119836 0 119836 0% /dev
/dev/mtdblock4 10752 4144 6608 39% /jffs
/dev/sda1 124095444 2367096 115424656 2% /tmp/mnt/Opt
 
Hi,

I'm not sure the configs for the usb option are working as intended as after a reboot (and a reinstall of ntpmerlin) I see ntpd running with the jffs config file (which doesn't exist). This is on an old RT-N66U which has been played with quite a bit over the years so something local could be causing an issue. Ntpmerlin is at 2.5.0 master; the graphs are all showing flatlines at zero.

2149 admin 3888 S ntpd -c /jffs/addons/ntpmerlin.d/ntp.conf -g
agh, that's a major faux pas
 
v2.5.1 is now available!
Changelog
Code:
FIXED: ntpd would load a default ntp.conf if storage set to USB storage
I highly recommend upgrading to this version if you are using 2.5.0.
good news it seems to be working perfectly so far after the update the graphs have gone back to normal thank you soo much for your hard work.
 
Yes, sir, I think that did it, and it's back in the saddle again after falling off for a couple of days.
ntpMerlin-2020-05-10 081432.png
 
Well seems I've got another problem. My connection graphs showed this:
UPTOWN-2020-05-12 094434.png

After I rebooted, the GUI for ntpMerlin is gone again.
I checked the usb log through amtm, and it hasn't logged an entry since Sunday:

Sun May 10 08:06:21 CDT 2020 Probing 'ext4' on device /dev/sda1
Running disk check v2.9, with command 'e2fsck -p' on /dev/sda1
sda1: clean, 1741/948416 files, 653113/3788796 blocks
Sun May 10 08:06:21 CDT 2020 Disk check done on /dev/sda1
---------------------------------------------------
END FILE

Conmon does appear to be running. When I checked connection, I got:

Choose an option: 1
connmon: 30 second ping test to 8.8.8.8 starting...
connmon: Test results - Ping 55.483 ms - Jitter - 29.247 ms - Line Quality 67.000 %
Press enter to continue...

Sorry, I should have boxed those up for clarity.
EDIT: The disk check is now logging at least. Still no ntpMerlin ui tab.
Code:
 Tue May 12 12:17:20 CDT 2020 Waited 1s for NTP to sync date
 Tue May 12 12:17:20 CDT 2020 Probing 'ext4' on device /dev/sda1
 Running disk check v2.9, with command 'e2fsck -p' on /dev/sda1
 sda1: clean, 1745/948416 files, 655743/3788796 blocks
 Tue May 12 12:17:20 CDT 2020 Disk check done on /dev/sda1
 ---------------------------------------------------
 END FILE
 
Last edited:
Mine went down after a reboot again.
Screenshot_20200512-134744586~2.jpg

It stayed down until I went inside ntpmerlin and told it to restart ntpd from within ntpmerlin. I have no logs to indicate where it went down at, all the logs show that ntpmerlin was functioning as it should.
 
Well seems I've got another problem. My connection graphs showed this:
View attachment 23449
After I rebooted, the GUI for ntpMerlin is gone again.
I checked the usb log through amtm, and it hasn't logged an entry since Sunday:

Sun May 10 08:06:21 CDT 2020 Probing 'ext4' on device /dev/sda1
Running disk check v2.9, with command 'e2fsck -p' on /dev/sda1
sda1: clean, 1741/948416 files, 653113/3788796 blocks
Sun May 10 08:06:21 CDT 2020 Disk check done on /dev/sda1
---------------------------------------------------
END FILE

Conmon does appear to be running. When I checked connection, I got:

Choose an option: 1
connmon: 30 second ping test to 8.8.8.8 starting...
connmon: Test results - Ping 55.483 ms - Jitter - 29.247 ms - Line Quality 67.000 %
Press enter to continue...

Sorry, I should have boxed those up for clarity.
EDIT: The disk check is now logging at least. Still no ntpMerlin ui tab.
Code:
 Tue May 12 12:17:20 CDT 2020 Waited 1s for NTP to sync date
 Tue May 12 12:17:20 CDT 2020 Probing 'ext4' on device /dev/sda1
 Running disk check v2.9, with command 'e2fsck -p' on /dev/sda1
 sda1: clean, 1745/948416 files, 655743/3788796 blocks
 Tue May 12 12:17:20 CDT 2020 Disk check done on /dev/sda1
 ---------------------------------------------------
 END FILE
Can you PM me a syslog please?
 
Can you PM me a syslog please?
I will be glad to. Do you mean upload it here?
I can't seem to get it to upload, dont' like the log extension.
 
Last edited:
If it happens again, what does
Code:
ps | grep ntp
ntpq -4 -c rv
show?
Does this look normal for
ps | grep ntp
Code:
73148 S    ntpd -c /opt/share/ntpmerlin.d/ntp.conf -g
  5428 S    grep ntp

ntpq -4 -c rv
Code:
associd=0 status=0615 leap_none, sync_ntp, 1 event, clock_sync,
version="ntpd 4.2.8p13@1.3847-o Mon Mar 23 13:21:49 UTC 2020 (1)",
processor="aarch64", system="Linux/4.1.51", leap=00, stratum=2,
precision=-22, rootdelay=22.118, rootdisp=7.696, refid=216.239.35.4,
reftime=e265bc20.81d16b07  Tue, May 12 2020 20:21:52.507,
clock=e265bcb8.c044e1e1  Tue, May 12 2020 20:24:24.751, peer=51544, tc=6,
mintc=3, offset=-0.050354, frequency=11.306, sys_jitter=3.100035,
clk_jitter=4.957, clk_wander=0.002, tai=37, leapsec=201701010000,
expire=202012280000

these are the outputs after a reboot i just did.
 
Does this look normal for
ps | grep ntp
Code:
73148 S    ntpd -c /opt/share/ntpmerlin.d/ntp.conf -g
  5428 S    grep ntp

ntpq -4 -c rv
Code:
associd=0 status=0615 leap_none, sync_ntp, 1 event, clock_sync,
version="ntpd 4.2.8p13@1.3847-o Mon Mar 23 13:21:49 UTC 2020 (1)",
processor="aarch64", system="Linux/4.1.51", leap=00, stratum=2,
precision=-22, rootdelay=22.118, rootdisp=7.696, refid=216.239.35.4,
reftime=e265bc20.81d16b07  Tue, May 12 2020 20:21:52.507,
clock=e265bcb8.c044e1e1  Tue, May 12 2020 20:24:24.751, peer=51544, tc=6,
mintc=3, offset=-0.050354, frequency=11.306, sys_jitter=3.100035,
clk_jitter=4.957, clk_wander=0.002, tai=37, leapsec=201701010000,
expire=202012280000

these are the outputs after a reboot i just did.
Looks like it's running as expected in this output
 
I think I had a glitch with my internet, that is what caused my issue. everything seems to be running fine now.
Good stuff. I pushed out a hotfix last night to all of my scripts in a further attempt to solve WebUI tabs not appearing. I was finally able to reproduce it after a phantom factory reset of my RT-AC86U (by which I mean, I rebooted it because things were running weird and when it came back up I had the Quick Start Wizard and default SSIDs etc...)

The changes I made to make the /jffs/scripts/services-start startup calls non-blocking (since we need NTP and Entware to be available) caused all scripts to end up trying to fire at the same time and modify /tmp/menuTree.js

I'm considering moving code to post-mount instead, so it is only fired after the Entware partition is mounted. I am undecided about that, thus far.
 
Good stuff. I pushed out a hotfix last night to all of my scripts in a further attempt to solve WebUI tabs not appearing. I was finally able to reproduce it after a phantom factory reset of my RT-AC86U (by which I mean, I rebooted it because things were running weird and when it came back up I had the Quick Start Wizard and default SSIDs etc...)

The changes I made to make the /jffs/scripts/services-start startup calls non-blocking (since we need NTP and Entware to be available) caused all scripts to end up trying to fire at the same time and modify /tmp/menuTree.js

I'm considering moving code to post-mount instead, so it is only fired after the Entware partition is mounted. I am undecided about that, thus far.
I am sure in your mind, you have a wealth of knowledge with multiple possible solutions. Some of those solutions may not have revealed themselves yet, but I know you will manage something great.
 
My ntpMerlin graph tab finally reappeared this morning, after about the 3rd reboot since last evening since applying the hotfix update.
Everything seems pretty smooth now.
thanks again,
jts

edit: well, almost everything. Looks like connmon graphs are bottomed out flat.

RT-AC86U w/ 384.17, RT-AC68U Aimesh node w/ same, Diversion, UiDivstats, Skynet, AiProtection, DoT, Scribe, UiScribe, Connmon, SpdMerlin, ScMerlin, Nsrum, NtpMerlin, OpenVPN selective clients
 
Last edited:

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