What's new

Seems like cron is letting me down

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

M

MvW

Guest
Not sure whether this is Asuswrt-Merlin related or whether it should be in the Add-ons subforum. Feel free to move it if I guessed wrong. Earlier today I posted how Diversion hadn't update its blocking files nor sent out it's weekly stats, but I just realised the issue is bigger. All the add-on graphs are empty, it looks like yesterday at 10.14 CEST nearly every task run by cron has come to a halt without any interaction on my behalf or other obvious reason.

Looking at the history of graphs over the past 30 days this happens more often, this appears the fifth time since I'm back on board the Asuswrt-Merlin train. Can anyone please help me troubleshoot this? @Jack Yaz, is there any way you can implement a check whether your scripts are still running (it concerns connmon, ntpmerlin, spdmerlin, but also uiDivStats is affected, so I suspect cron is the underlying culprit. Yet, everything looks normal:

Code:
marco@RT-AC86U:/tmp/home/root# cru l
30 3 * * * /jffs/addons/flexqos/flexqos.sh -check #flexqos#
*/2 * * * * /etc/openvpn/server1/vpn-watchdog1.sh #CheckVPNServer1#
*/2 * * * * /etc/openvpn/server2/vpn-watchdog2.sh #CheckVPNServer2#
5 0 * * * /opt/sbin/logrotate /opt/etc/logrotate.conf >> /opt/tmp/logrotate.daily 2>&1 #logrotate#
25 7 */7 * * service restart_letsencrypt #LetsEncrypt#
*/3 0-23 * * * /jffs/scripts/connmon generate #connmon#
25 7 * * * sh /jffs/scripts/firewall banmalware #Skynet_banmalware#
14 1 * * Mon sh /jffs/scripts/firewall update #Skynet_autoupdate#
*/10 * * * * /jffs/scripts/ntpmerlin generate #ntpMerlin#
0 * * * * sh /jffs/scripts/firewall save #Skynet_save#
12,42 0-23 * * * /jffs/scripts/spdmerlin generate #spdMerlin#
00 1 * * Mon sh /opt/share/diversion/file/update-bl.div reset #Diversion_UpdateBL#
00 1 * * Thu sh /opt/share/diversion/file/update-bl.div #Diversion_UpdateBLTwo#
20 5 * * * sh /opt/share/diversion/file/rotate-logs.div #Diversion_RotateLogs#
20 17 * * * diversion count_ads count #Diversion_CountAds#
30 0 * * Mon sh /opt/share/diversion/file/stats.div #Diversion_WeeklyStats#
50 0 * * Mon sh /opt/share/diversion/file/backup.div #Diversion_AutoBackup#
10 0 * * Mon sh /opt/share/diversion/file/update.div #Diversion_UpdateCheck#
0 * * * * /jffs/scripts/uiDivStats generate #uiDivStats_generate#
3 0 * * * /jffs/scripts/uiDivStats trimdb #uiDivStats_trim#
* * * * * /jffs/scripts/uiDivStats querylog #uiDivStats_querylog#
4,9,14,19,24,29,34,39,44,49,54,59 * * * * /jffs/scripts/uiDivStats flushtodb #uiDivStats_flushtodb#
*/10 * * * * /jffs/scripts/YazFi check #YazFi#
28 */12 * * * sh /jffs/scripts/firewall debug genstats #Skynet_genstats#
*/2 * * * * sh /opt/share/diversion/file/yt-blocking.div #Diversion_YTblocking#

I would like things to keep on running without the need for hourly check to see if cron is still doing it's job. For now the only way I know how to fix this is to reboot the entire system, which isn't desirable for several reasons.

Where do I start to troubleshoot this?

Any help is appreciated.

Best regards,
Marco

Edit: Node and main router are running 386.1_2 without any other issues.
 
Where do I start to troubleshoot this?
See if cron is running.
Code:
ps | grep cron
If it isn't start it.
Code:
service start_crond
 
If the cron jobs are listed but not running it might be time for a factory reset
This setup is only a few weeks old, I just rejoined with 386.1_b5, I believe.
See if cron is running.
Code:
ps | grep cron
If it isn't start it.
Code:
service start_crond
I rebooted just the router and the node, so everything is running again, but will check whether cron is running the next time things come to a halt.

Thank you both for your quick 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