Thanks, works great!v2.2.1 is available
Changelog:
Code:Add option to restart ntpd
admin@inet:/tmp/home/root# ll /jffs/addons/ntpmerlin.d/
-rw-rw-rw- 1 admin root 1253 Jan 26 08:40 ntp.conf
-rw-rw-rw- 1 admin root 872 May 3 2019 ntp.conf.default
-rw-r--r-- 1 admin root 1860608 Jan 29 20:40 ntpdstats.db
-rw-rw-rw- 1 admin root 128280 Jul 4 2019 ntpdstats_rrd.rrd
-rw-rw-rw- 1 admin root 16077 Jan 5 16:06 ntpdstats_www.asp
-rw-rw-rw- 1 admin root 15812 Sep 29 22:02 ntpdstats_www.asp.old
-rw-rw-rw- 1 admin root 76453 Jan 29 20:41 ntpstatsdata.js
-rw-rw-rw- 1 admin root 149 Jan 29 20:41 ntpstatstext.js
Check for browser console errors as a starting pointHello,
I noticed recently that the stats page no longer works... it renders properly, but the three links do nothing. I tried a forced update (I'm on the latest 2.1.1) but that didn't help. It looks like the stats are begin captured in the jffs/addons dir...
Code:admin@inet:/tmp/home/root# ll /jffs/addons/ntpmerlin.d/ -rw-rw-rw- 1 admin root 1253 Jan 26 08:40 ntp.conf -rw-rw-rw- 1 admin root 872 May 3 2019 ntp.conf.default -rw-r--r-- 1 admin root 1860608 Jan 29 20:40 ntpdstats.db -rw-rw-rw- 1 admin root 128280 Jul 4 2019 ntpdstats_rrd.rrd -rw-rw-rw- 1 admin root 16077 Jan 5 16:06 ntpdstats_www.asp -rw-rw-rw- 1 admin root 15812 Sep 29 22:02 ntpdstats_www.asp.old -rw-rw-rw- 1 admin root 76453 Jan 29 20:41 ntpstatsdata.js -rw-rw-rw- 1 admin root 149 Jan 29 20:41 ntpstatstext.js
Not sure what else to check. Any ideas?
Check for browser console errors as a starting point
Very strange. I did update those files while working on modmon, but I haven't seen any errors with the older scripts. Can you check the contents of the files for me?I am seeing the below errors loading the following javascript files... is something no longer installed correctly?
- https://192.168.2.1:8443/ext/shared-jy/moment.js
- https://192.168.2.1:8443/ext/shared-jy/hammerjs.js
- https://192.168.2.1:8443/ext/shared-jy/chartjs-plugin-zoom.js
- https://192.168.2.1:8443/ext/shared-jy/chartjs-plugin-annotation.js
Errors for each file:
(Sorry, I can't post the log file output in a code block since the cloudflare filter is rejecting it as being malicious!)
- The script was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type.
- Loading failed for the script
admin@host:/tmp/home/root# ll /www/ext/shared-jy/
lrwxrwxrwx 1 admin root 52 May 5 2018 chartjs-plugin-annotation.js -> /jffs/scripts/shared-jy/chartjs-plugin-annotation.js
lrwxrwxrwx 1 admin root 46 May 5 2018 chartjs-plugin-zoom.js -> /jffs/scripts/shared-jy/chartjs-plugin-zoom.js
lrwxrwxrwx 1 admin root 35 May 5 2018 hammerjs.js -> /jffs/scripts/shared-jy/hammerjs.js
lrwxrwxrwx 1 admin root 33 May 5 2018 moment.js -> /jffs/scripts/shared-jy/moment.js
admin@host:/jffs/scripts# ll /jffs/scripts/shared-jy
ls: /jffs/scripts/shared-jy: No such file or directory
On my router those links are to the new location /jffs/addons/shared-jy and the js files are there.They seem to be missing!
Code:admin@host:/tmp/home/root# ll /www/ext/shared-jy/ lrwxrwxrwx 1 admin root 52 May 5 2018 chartjs-plugin-annotation.js -> /jffs/scripts/shared-jy/chartjs-plugin-annotation.js lrwxrwxrwx 1 admin root 46 May 5 2018 chartjs-plugin-zoom.js -> /jffs/scripts/shared-jy/chartjs-plugin-zoom.js lrwxrwxrwx 1 admin root 35 May 5 2018 hammerjs.js -> /jffs/scripts/shared-jy/hammerjs.js lrwxrwxrwx 1 admin root 33 May 5 2018 moment.js -> /jffs/scripts/shared-jy/moment.js admin@host:/jffs/scripts# ll /jffs/scripts/shared-jy ls: /jffs/scripts/shared-jy: No such file or directory
Every script run should wipe the links ans recreate. Not sure why it didn't work for you. I'd need you to have run ntpmerlin in terminal to see if anything errorsThis new cloudflare filter is not allowing me to post much (paths, dir walks, code), it claims everything is malicious... very annoying.
Yes, the symlinks were out of date (they were looking in jffs scripts and not jffs addons.) So I corrected them and now ntpmerlin and conmon UIs both work.
@Jack-Yaz you might want to check the symlinks on install to be sure they are not stale.
This. I never wish to complain about wonderful free software, but I disagree with the decision to move ntp.conf out of /jffs/configs. It was unsettling when my hand-crafted config file was mysteriously deleted without notice. I ask @Jack Yaz to reconsider this change, and move ntp.conf back to /jffs/configs where it belongs.Also, it would be super of in ntpMerlin you displayed where the ntp.conf file lives b/c I can never remember and have to read your code. Even better would be an option to backup the ntp.conf with a time/date stamp to /jffs/configs when selected from the menu.
Afraid guidance from above asked addon scripts to keep files relevant to them all in the addons folder.This. I never wish to complain about wonderful free software, but I disagree with the decision to move ntp.conf out of /jffs/configs. It was unsettling when my hand-crafted config file was mysteriously deleted without notice. I ask @Jack Yaz to reconsider this change, and move ntp.conf back to /jffs/configs where it belongs.
I understand, but this is a config file for a system service. Not really part of your script.Afraid guidance from above asked addon scripts to keep files relevant to them all in the addons folder.
Feel free to move the file and configure s77ntpd accordingly. To avoid any updates overriding your changes, I'd recommend forking the script to keep your changes separate.I understand, but this is a config file for a system service. Not really part of your script.
No, I'll go along with whatever you decide. Forking my own version is the last thing I'd want to do. I hope you are not offended when I voice my opinion.Feel free to move the file and configure s77ntpd accordingly. To avoid any updates overriding your changes, I'd recommend forking the script to keep your changes separate.
Thread starter | Title | Forum | Replies | Date |
---|---|---|---|---|
W | ntpMerlin ntpMerlin and timeserverd ntp_ready tests | Asuswrt-Merlin AddOns | 1 | |
D | NTPmerlin config log not found | Asuswrt-Merlin AddOns | 2 | |
A | ntpMerlin Problems with ntpMerlin | Asuswrt-Merlin AddOns | 9 |
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!