What's new

ntpMerlin no clock sync with chrony after router powerdown / reboot [solved]

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

slytho

Regular Contributor
Hi!

I have a AC86U router, firmware 386.4, using amtm 3.2.3 and ntpmerlin 3.4.5 (installed through amtm). I configured ntpmerlin to use chrony. It works fine, but there is one situation that seems to cause problems.

This router isn't always on (due to its location), i.e. it's often shut down (cmd "halt") and powered off for a day or so.

After powering on, the router's initial system time defaults to May 5th, 2018, 7:05 am - and apparently this also seems to be the case after each reboot?! So, this might be a general issue?

Anyway, before installing ntpmerlin, clock sync during boot up was no problem and the router's clock was set to the current time. After i installed ntpmerlin the following problems came up after a reboot/power off:
  1. The clock doesn't sync anymore and sticks at its default intial time May 5, 2018. Chrony logs a snyc fail after 10 minutes. I tested it a few times (rebooting, powering off/on, etc.), no success. As soon as I uninstall ntpmerlin clock sync works again at next boot.
  2. Access to the ntpmerlin configuration panel of amtm is blocked, error message: "Waiting for NTP to sync ..." (also see the attached screenshot). So, ntpmerlin is waiting for the clock to be synced before it grants access to the configuation menu but as the sync doesn't succeed the user is locked out from it. (And by the way, this also prevents access to amtm's uninstall command for ntpmerlin.)
  3. I tried to use chronyc command line tool to get access to chrony, but this always lead to "506 Cannot talk to daemon". I tried "- d 127.0.0.1", my router's IP address and also tried "cmdallow all" and "bindcm... 0.0.0.0" in the chrony.conf. Unfortunately to no avail: "cannot talk to daemon". I checked the router's syslog and ntpmerlin seems to be up and running. So, I didn't find a way to circumvent the "Waiting for NTP to sync" error message.
  4. Then I manually ran chronyd ("chronyd -q 'server ptbtime1.ptb.de iburst' -u nobody") and yay, this at least synced the router's clock to the current time. So, internet access and DNS work but for some reason ntpmerlin isn't able to get there on its own. And despite the manually set system clock (chronyd -q) nothing changed: I'm neither able to access amtm's config panel for ntpmerlin ("Waiting for NTP to sync...") nor to use chronyc ("506 Cannot talk to daemon"). To prevent ntpmerlin to start, I manually deleted the init.d-file.
This is my system log with ntpmerlin installed and after a reboot:
(please see the next posting)

Maybe you can help me to find out what is wrong and what I can do to fix it.

Kind regards
slytho
 

Attachments

  • amtm ntpmerlin.png
    amtm ntpmerlin.png
    106.9 KB · Views: 173
Last edited:
Here is my system log:
Code:
May  5 07:05:05 syslogd started: BusyBox v1.25.1
[...]
May  5 07:05:15 custom_script: Running /jffs/scripts/nat-start
[...]
May  5 07:05:15 ntpMerlin: Sleeping for 5s to allow firewall/nat startup to be completed...
[...]
May  5 07:05:16 wan: finish adding multi routes
May  5 07:05:16 rc_service: udhcpc 2094:notify_rc stop_ntpd
May  5 07:05:16 custom_script: Running /jffs/scripts/service-event (args: stop ntpd)
May  5 07:05:16 rc_service: udhcpc 2094:notify_rc start_ntpd
May  5 07:05:16 rc_service: waitting "stop_ntpd" via udhcpc ...
May  5 07:05:16 kernel: scsi 0:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.00 PQ: 0 ANSI: 6
May  5 07:05:16 kernel: sd 0:0:0:0: Attached scsi generic sg0 type 0
May  5 07:05:16 kernel: sd 0:0:0:0: [sda] 30605312 512-byte logical blocks: (15.7 GB/14.6 GiB)
May  5 07:05:16 kernel: sd 0:0:0:0: [sda] Write Protect is off
May  5 07:05:16 kernel: sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
May  5 07:05:16 kernel: sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
May  5 07:05:16 kernel:  sda: sda1 sda2
May  5 07:05:16 kernel: sd 0:0:0:0: [sda] Attached SCSI removable disk
May  5 07:05:16 cfg_server:  event: wl_chanspec_changed_action
May  5 07:05:16 cfg_server: skip event due no re
May  5 07:05:17 custom_script: Running /jffs/scripts/service-event (args: start ntpd)
May  5 07:05:17 ntpd: Started ntpd
[...]
May  5 07:05:19 dnsmasq[2279]: started, version 2.86 cachesize 1500
May  5 07:05:19 dnsmasq[2279]: compile time options: IPv6 GNU-getopt no-RTC no-DBus no-UBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset no-auth cryptohash DNSSEC no-ID loop-detect no-inotify no-dumpfile
May  5 07:05:19 dnsmasq[2279]: DNSSEC validation enabled
May  5 07:05:19 dnsmasq[2279]: DNSSEC signature timestamps not checked until receipt of SIGINT
[...]
May  5 07:05:19 Samba_Server: daemon is started
May  5 07:05:19 wsdd2[2295]: starting.
May  5 07:05:20 kernel: nf_conntrack: automatic helper assignment is deprecated and it will be removed soon. Use the iptables CT target to attach helpers instead.
May  5 07:05:23 roamast: ROAMING Start...
[...]
May  5 07:05:23 custom_script: Running /jffs/scripts/post-mount (args: /tmp/mnt/usb_87_fat)
May  5 07:05:23 Entware: (Notice) /tmp/mnt/usb_87_fat does not contain Entware, skipping device
May  5 07:05:23 rc_service: hotplug 2348:notify_rc restart_nasapps
May  5 07:05:23 custom_script: Running /jffs/scripts/service-event (args: restart nasapps)
May  5 07:05:23 avahi-daemon[1880]: Files changed, reloading.
May  5 07:05:23 avahi-daemon[1880]: Loading service file /tmp/avahi/services/mt-daap.service.
May  5 07:05:23 ntpMerlin: /tmp/mnt/usb_87_fat does not contain Entware, not starting ntpMerlin
May  5 07:05:23 iTunes: daemon is stopped
May  5 07:05:23 FTP_Server: daemon is stopped
May  5 07:05:23 wsdd2[2295]: Terminated received.
May  5 07:05:23 wsdd2[2295]: terminating.
May  5 07:05:24 WAN_Connection: WAN was restored.
[...]
May  5 07:05:24 avahi-daemon[1880]: Service "homerouter" (/tmp/avahi/services/mt-daap.service) successfully established.
May  5 07:05:25 Samba_Server: smb daemon is stopped
May  5 07:05:25 avahi-daemon[1880]: Got SIGTERM, quitting.
May  5 07:05:25 avahi-daemon[1880]: Leaving mDNS multicast group on interface br0.IPv4 with address 192.168.66.1.
May  5 07:05:25 avahi-daemon[1880]: Leaving mDNS multicast group on interface lo.IPv4 with address 127.0.1.1.
May  5 07:05:25 avahi-daemon[1880]: avahi-daemon 0.7 exiting.
May  5 07:05:27 Timemachine: daemon is stopped
May  5 07:05:27 avahi-daemon[2452]: Found user 'nobody' (UID 65534) and group 'nobody' (GID 65534).
May  5 07:05:27 avahi-daemon[2452]: Successfully dropped root privileges.
May  5 07:05:27 avahi-daemon[2452]: avahi-daemon 0.7 starting up.
May  5 07:05:27 Samba_Server: daemon is started
May  5 07:05:27 wsdd2[2465]: starting.
May  5 07:05:28 custom_script: Running /jffs/scripts/pre-mount (args: /dev/sda1 ext2)
May  5 07:05:28 pre-mount: Running 'e2fsck -p -v /dev/sda1' - see output in /var/log/fsck.log
May  5 07:05:28 kernel: EXT4-fs (sda1): mounting ext2 file system using the ext4 subsystem
May  5 07:05:28 hotplug: USB ext2 fs at /dev/sda1 mounted on /tmp/mnt/usb_87_ext2
May  5 07:05:28 usb: USB ext2 fs at /dev/sda1 mounted on /tmp/mnt/usb_87_ext2.
May  5 07:05:28 kernel: EXT4-fs (sda1): mounted filesystem without journal. Opts: user_xattr
May  5 07:05:28 custom_script: Running /jffs/scripts/post-mount (args: /tmp/mnt/usb_87_ext2)
May  5 07:05:28 Entware: Starting Entware services on /tmp/mnt/usb_87_ext2
May  5 07:05:28 timeserverd: Waiting for NTP to sync before starting...
May  5 07:05:28 operator: Started timeserverd from /jffs/scripts/post-mount.
May  5 07:05:28 rc_service: hotplug 2355:notify_rc restart_nasapps
May  5 07:05:28 custom_script: Running /jffs/scripts/service-event (args: restart nasapps)
May  5 07:05:28 avahi-daemon[2452]: Server startup complete. Host name is homerouter.local. Local service cookie is 2265668244.
May  5 07:05:28 avahi-daemon[2452]: Alias name "RT-AC86U" successfully established.
May  5 07:05:28 avahi-daemon[2452]: Files changed, reloading.
May  5 07:05:28 avahi-daemon[2452]: Loading service file /tmp/avahi/services/mt-daap.service.
May  5 07:05:28 iTunes: daemon is stopped
May  5 07:05:28 ntpMerlin: /tmp/mnt/usb_87_ext2 contains Entware, starting ntpMerlin
May  5 07:05:28 FTP_Server: daemon is stopped
May  5 07:05:28 wsdd2[2465]: Terminated received.
May  5 07:05:28 wsdd2[2465]: terminating.
May  5 07:05:28 ntpMerlin: Waiting for NTP to sync...
May  5 07:05:29 avahi-daemon[2452]: Service "homerouter" (/tmp/avahi/services/mt-daap.service) successfully established.
May  5 07:05:29 Samba_Server: smb daemon is stopped
May  5 07:05:29 avahi-daemon[2452]: Got SIGTERM, quitting.
May  5 07:05:29 avahi-daemon[2452]: Leaving mDNS multicast group on interface br0.IPv4 with address 192.168.66.1.
May  5 07:05:29 avahi-daemon[2452]: Leaving mDNS multicast group on interface lo.IPv4 with address 127.0.1.1.
May  5 07:05:29 avahi-daemon[2452]: avahi-daemon 0.7 exiting.
May  5 07:05:33 Timemachine: daemon is stopped
May  5 07:05:33 avahi-daemon[2597]: Found user 'nobody' (UID 65534) and group 'nobody' (GID 65534).
May  5 07:05:33 avahi-daemon[2597]: Successfully dropped root privileges.
May  5 07:05:33 avahi-daemon[2597]: avahi-daemon 0.7 starting up.
May  5 07:05:33 Samba_Server: daemon is started
May  5 07:05:33 wsdd2[2610]: starting.
May  5 07:05:34 avahi-daemon[2597]: Server startup complete. Host name is homerouter.local. Local service cookie is 713109656.
May  5 07:05:34 avahi-daemon[2597]: Alias name "RT-AC86U" successfully established.
May  5 07:05:58 ntpMerlin: Waiting for NTP to sync...
May  5 07:06:13 dnsmasq-script[2279]: json_object_from_file: error opening file /jffs/nmp_vc_json.js: No such file or directory
May  5 07:06:28 ntpMerlin: Waiting for NTP to sync...
May  5 07:06:58 ntpMerlin: Waiting for NTP to sync...
May  5 07:07:28 ntpMerlin: Waiting for NTP to sync...
May  5 07:07:58 ntpMerlin: Waiting for NTP to sync...
 
Here is my system log:
Code:
May  5 07:05:05 syslogd started: BusyBox v1.25.1
[...]
May  5 07:05:15 custom_script: Running /jffs/scripts/nat-start
[...]
May  5 07:05:15 ntpMerlin: Sleeping for 5s to allow firewall/nat startup to be completed...
[...]
May  5 07:05:16 wan: finish adding multi routes
May  5 07:05:16 rc_service: udhcpc 2094:notify_rc stop_ntpd
May  5 07:05:16 custom_script: Running /jffs/scripts/service-event (args: stop ntpd)
May  5 07:05:16 rc_service: udhcpc 2094:notify_rc start_ntpd
May  5 07:05:16 rc_service: waitting "stop_ntpd" via udhcpc ...
May  5 07:05:16 kernel: scsi 0:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.00 PQ: 0 ANSI: 6
May  5 07:05:16 kernel: sd 0:0:0:0: Attached scsi generic sg0 type 0
May  5 07:05:16 kernel: sd 0:0:0:0: [sda] 30605312 512-byte logical blocks: (15.7 GB/14.6 GiB)
May  5 07:05:16 kernel: sd 0:0:0:0: [sda] Write Protect is off
May  5 07:05:16 kernel: sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
May  5 07:05:16 kernel: sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
May  5 07:05:16 kernel:  sda: sda1 sda2
May  5 07:05:16 kernel: sd 0:0:0:0: [sda] Attached SCSI removable disk
May  5 07:05:16 cfg_server:  event: wl_chanspec_changed_action
May  5 07:05:16 cfg_server: skip event due no re
May  5 07:05:17 custom_script: Running /jffs/scripts/service-event (args: start ntpd)
May  5 07:05:17 ntpd: Started ntpd
[...]
May  5 07:05:19 dnsmasq[2279]: started, version 2.86 cachesize 1500
May  5 07:05:19 dnsmasq[2279]: compile time options: IPv6 GNU-getopt no-RTC no-DBus no-UBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset no-auth cryptohash DNSSEC no-ID loop-detect no-inotify no-dumpfile
May  5 07:05:19 dnsmasq[2279]: DNSSEC validation enabled
May  5 07:05:19 dnsmasq[2279]: DNSSEC signature timestamps not checked until receipt of SIGINT
[...]
May  5 07:05:19 Samba_Server: daemon is started
May  5 07:05:19 wsdd2[2295]: starting.
May  5 07:05:20 kernel: nf_conntrack: automatic helper assignment is deprecated and it will be removed soon. Use the iptables CT target to attach helpers instead.
May  5 07:05:23 roamast: ROAMING Start...
[...]
May  5 07:05:23 custom_script: Running /jffs/scripts/post-mount (args: /tmp/mnt/usb_87_fat)
May  5 07:05:23 Entware: (Notice) /tmp/mnt/usb_87_fat does not contain Entware, skipping device
May  5 07:05:23 rc_service: hotplug 2348:notify_rc restart_nasapps
May  5 07:05:23 custom_script: Running /jffs/scripts/service-event (args: restart nasapps)
May  5 07:05:23 avahi-daemon[1880]: Files changed, reloading.
May  5 07:05:23 avahi-daemon[1880]: Loading service file /tmp/avahi/services/mt-daap.service.
May  5 07:05:23 ntpMerlin: /tmp/mnt/usb_87_fat does not contain Entware, not starting ntpMerlin
May  5 07:05:23 iTunes: daemon is stopped
May  5 07:05:23 FTP_Server: daemon is stopped
May  5 07:05:23 wsdd2[2295]: Terminated received.
May  5 07:05:23 wsdd2[2295]: terminating.
May  5 07:05:24 WAN_Connection: WAN was restored.
[...]
May  5 07:05:24 avahi-daemon[1880]: Service "homerouter" (/tmp/avahi/services/mt-daap.service) successfully established.
May  5 07:05:25 Samba_Server: smb daemon is stopped
May  5 07:05:25 avahi-daemon[1880]: Got SIGTERM, quitting.
May  5 07:05:25 avahi-daemon[1880]: Leaving mDNS multicast group on interface br0.IPv4 with address 192.168.66.1.
May  5 07:05:25 avahi-daemon[1880]: Leaving mDNS multicast group on interface lo.IPv4 with address 127.0.1.1.
May  5 07:05:25 avahi-daemon[1880]: avahi-daemon 0.7 exiting.
May  5 07:05:27 Timemachine: daemon is stopped
May  5 07:05:27 avahi-daemon[2452]: Found user 'nobody' (UID 65534) and group 'nobody' (GID 65534).
May  5 07:05:27 avahi-daemon[2452]: Successfully dropped root privileges.
May  5 07:05:27 avahi-daemon[2452]: avahi-daemon 0.7 starting up.
May  5 07:05:27 Samba_Server: daemon is started
May  5 07:05:27 wsdd2[2465]: starting.
May  5 07:05:28 custom_script: Running /jffs/scripts/pre-mount (args: /dev/sda1 ext2)
May  5 07:05:28 pre-mount: Running 'e2fsck -p -v /dev/sda1' - see output in /var/log/fsck.log
May  5 07:05:28 kernel: EXT4-fs (sda1): mounting ext2 file system using the ext4 subsystem
May  5 07:05:28 hotplug: USB ext2 fs at /dev/sda1 mounted on /tmp/mnt/usb_87_ext2
May  5 07:05:28 usb: USB ext2 fs at /dev/sda1 mounted on /tmp/mnt/usb_87_ext2.
May  5 07:05:28 kernel: EXT4-fs (sda1): mounted filesystem without journal. Opts: user_xattr
May  5 07:05:28 custom_script: Running /jffs/scripts/post-mount (args: /tmp/mnt/usb_87_ext2)
May  5 07:05:28 Entware: Starting Entware services on /tmp/mnt/usb_87_ext2
May  5 07:05:28 timeserverd: Waiting for NTP to sync before starting...
May  5 07:05:28 operator: Started timeserverd from /jffs/scripts/post-mount.
May  5 07:05:28 rc_service: hotplug 2355:notify_rc restart_nasapps
May  5 07:05:28 custom_script: Running /jffs/scripts/service-event (args: restart nasapps)
May  5 07:05:28 avahi-daemon[2452]: Server startup complete. Host name is homerouter.local. Local service cookie is 2265668244.
May  5 07:05:28 avahi-daemon[2452]: Alias name "RT-AC86U" successfully established.
May  5 07:05:28 avahi-daemon[2452]: Files changed, reloading.
May  5 07:05:28 avahi-daemon[2452]: Loading service file /tmp/avahi/services/mt-daap.service.
May  5 07:05:28 iTunes: daemon is stopped
May  5 07:05:28 ntpMerlin: /tmp/mnt/usb_87_ext2 contains Entware, starting ntpMerlin
May  5 07:05:28 FTP_Server: daemon is stopped
May  5 07:05:28 wsdd2[2465]: Terminated received.
May  5 07:05:28 wsdd2[2465]: terminating.
May  5 07:05:28 ntpMerlin: Waiting for NTP to sync...
May  5 07:05:29 avahi-daemon[2452]: Service "homerouter" (/tmp/avahi/services/mt-daap.service) successfully established.
May  5 07:05:29 Samba_Server: smb daemon is stopped
May  5 07:05:29 avahi-daemon[2452]: Got SIGTERM, quitting.
May  5 07:05:29 avahi-daemon[2452]: Leaving mDNS multicast group on interface br0.IPv4 with address 192.168.66.1.
May  5 07:05:29 avahi-daemon[2452]: Leaving mDNS multicast group on interface lo.IPv4 with address 127.0.1.1.
May  5 07:05:29 avahi-daemon[2452]: avahi-daemon 0.7 exiting.
May  5 07:05:33 Timemachine: daemon is stopped
May  5 07:05:33 avahi-daemon[2597]: Found user 'nobody' (UID 65534) and group 'nobody' (GID 65534).
May  5 07:05:33 avahi-daemon[2597]: Successfully dropped root privileges.
May  5 07:05:33 avahi-daemon[2597]: avahi-daemon 0.7 starting up.
May  5 07:05:33 Samba_Server: daemon is started
May  5 07:05:33 wsdd2[2610]: starting.
May  5 07:05:34 avahi-daemon[2597]: Server startup complete. Host name is homerouter.local. Local service cookie is 713109656.
May  5 07:05:34 avahi-daemon[2597]: Alias name "RT-AC86U" successfully established.
May  5 07:05:58 ntpMerlin: Waiting for NTP to sync...
May  5 07:06:13 dnsmasq-script[2279]: json_object_from_file: error opening file /jffs/nmp_vc_json.js: No such file or directory
May  5 07:06:28 ntpMerlin: Waiting for NTP to sync...
May  5 07:06:58 ntpMerlin: Waiting for NTP to sync...
May  5 07:07:28 ntpMerlin: Waiting for NTP to sync...
May  5 07:07:58 ntpMerlin: Waiting for NTP to sync...
I suggest installing scmerlin and using the NTP watchdog script offered by scmerlin. The fact that your initial clock is not syncing doesn't have anything to do with ntpmerlin (since ntpmerlin is "waiting" for such to happen) and has everything to do with your routers environmental factors on reboot. NTP watchdog script may help force your routers ntp to work.
 
Last edited:
You may try ntp watchdog script by @Jack Yaz and see if that help. You can also access to ntpmerlin directly from ssh session by enter ntpmerlin in the command prompt.
 
I suggest installing scmerlin and using the NTP watchdog script. The fact that your initial clock is not syncing doesn't have anything to do with ntpmerlin (since ntpmerlin is "waiting" for such to happen) and has everything to do with your routers environmental factors on reboot. NTP watchdog script may help force your routers ntp to work.
Hi! Alright. I assumed it has something to do with ntpmerlin because clock sync stops working once I install ntpmerlin and starts working again as soon as I uninstall ntpmerlin.

I'll check what that NTP watchdog is about - haven't heard about it before.
 
Hi! Alright. I assumed it has something to do with ntpmerlin because clock sync stops working once I install ntpmerlin and starts working again as soon as I uninstall ntpmerlin.

I'll check what that NTP watchdog is about - haven't heard about it before.
The problem you are running into with NTPmerlin is that it is waiting for your router to sync its clock on its own before NTPmerlin will step in. The ntp watchdog script should help assist your routers clock to sync. Some issues have been found with some ISP not providing an adequate connection until late into the boot process thus hindering the initial clock sync of the router. NTP watch dog will wait well into this process and restart ntp clock sync in the event this is happening.

We all owe @Jack Yaz

for providing us with such niche scripts.
 
ignoring a logging error (which i've just pushed a fix for), timeserverd (which starts chrony or ntp), specifically does not step in until the router time has synceD:

Code:
logger -st timeserverd "Waiting for NTP to sync before starting..."
ntpwaitcount=0
while [ "$(nvram get ntp_ready)" -eq 0 ] && [ "$ntpwaitcount" -lt 600 ]; do
    ntpwaitcount="$((ntpwaitcount + 30))"
    logger -st timeserverd "Waiting for NTP to sync..."
    sleep 30
done
if you wait 10 minutes, do you see any ntp sync errors logged from timeserverd?
 
ignoring a logging error (which i've just pushed a fix for), timeserverd (which starts chrony or ntp), specifically does not step in until the router time has synceD:

Code:
logger -st timeserverd "Waiting for NTP to sync before starting..."
ntpwaitcount=0
while [ "$(nvram get ntp_ready)" -eq 0 ] && [ "$ntpwaitcount" -lt 600 ]; do
    ntpwaitcount="$((ntpwaitcount + 30))"
    logger -st timeserverd "Waiting for NTP to sync..."
    sleep 30
done
if you wait 10 minutes, do you see any ntp sync errors logged from timeserverd?
:eek:
 
ignoring a logging error (which i've just pushed a fix for), timeserverd (which starts chrony or ntp), specifically does not step in until the router time has synceD:

Code:
logger -st timeserverd "Waiting for NTP to sync before starting..."
ntpwaitcount=0
while [ "$(nvram get ntp_ready)" -eq 0 ] && [ "$ntpwaitcount" -lt 600 ]; do
    ntpwaitcount="$((ntpwaitcount + 30))"
    logger -st timeserverd "Waiting for NTP to sync..."
    sleep 30
done
if you wait 10 minutes, do you see any ntp sync errors logged from timeserverd?
Hello!

I don't have the orignal log file here at the moment, but I remember it saying somethink like "failed to sync for 10 minutes. please take care of it." And that's it. There are no more messages regarding NTP afterwards. But I'll have a closer look next time. For now I rolled back my router and will try to see what scMerlin is.
 
Hello!

I don't have the orignal log file here at the moment, but I remember it saying somethink like "failed to sync for 10 minutes. please take care of it." And that's it. There are no more messages regarding NTP afterwards. But I'll have a closer look next time. For now I rolled back my router and will try to see what scMerlin is.
I use scmerlin to solve all my stop/start/watchdog/service monitoring needs.
 
Alright. I installed scMerlin and that watchdog script. Does it work in the background or do I have to do/check something? I can't see controls or measurements in the GUI except for switching the watchdog script on/off.
 
Alright. I installed scMerlin and that watchdog script. Does it work in the background or do I have to do/check something? I can't see controls or measurements in the GUI except for switching the watchdog script on/off.
it runs in the background at the start of the reboot process. it polls the NTP ready variable of nvram where it waits for ntp sync success if it doesn't occur durring the wait time specifications, ntp watchdog step ins and restart ntp process if needed.
 
Oh, well, no. :) I simply don't need this router to be on during night and while I'm out in the office. It would run several hours a day and consume power for no reason. I have been powering it down each night for like a decade now and it worked liked a charm ... until I tried to set up a local time server with ntpmerlin.
 
Cool. :) Thank you. I'll try that and see if it works in the follwing days. :)
Hallelujah :D Your hints made it work again. Thank you! scMerlin and that NTP watchdog script in particular does its magic and the router's clock becomes synced again. Very appreciated!

Issue solved.
 
Is there a real fix? I don't want to rely on some hacky fixing script
Lol... "hacky" and @Jack Yaz certainly should never be said in the same sentence. :p

Can't get more real than the NTP watchdog! Like @SomeWhereOverTheRainBow suggested earlier on, install scMerlin, and enable the NTP watchdog. Easy-peasy.
 
Last edited:

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