B9eapf8hxSugJA80OjyE
Dabbler
- Joined
- Sep 11, 2021
- Messages
- 11
Update: see solution in 3rd post
I'm on TrueNAS-SCALE-23.10.0.1, but this issue has been with me for a while. I've set up a few cron jobs (in system settings/advanced), and while they run without problems when executed manually (triangle icon), they never run automatically.
One of my jobs runs "heavyscript backup" at 3 am (see attached image). After a manual run, I'm sent an e-mail with the output. It's all good as long as I run it manually, however, nothing happens at 3 am - no email, no backup made. On the other hand, replication tasks run on time and reports are sent, and I also get emails about other outstanding issues, so it's not an issue with the notification system or all cron jobs. Nextcloud cron jobs (configured by the Truecharts app) also run regularly (as far as they're present in journalctl), but my own cron jobs don't. And this isn't something that worked until one point and then broke, this cron job has never run by itself as far as I can tell.
I'd appreciate any advice on how to dig deeper to understand and fix the issue.
I've found some threads in these forums about cron jobs, but none of these seemed to focus on a similar issue.
I'm on TrueNAS-SCALE-23.10.0.1, but this issue has been with me for a while. I've set up a few cron jobs (in system settings/advanced), and while they run without problems when executed manually (triangle icon), they never run automatically.
One of my jobs runs "heavyscript backup" at 3 am (see attached image). After a manual run, I'm sent an e-mail with the output. It's all good as long as I run it manually, however, nothing happens at 3 am - no email, no backup made. On the other hand, replication tasks run on time and reports are sent, and I also get emails about other outstanding issues, so it's not an issue with the notification system or all cron jobs. Nextcloud cron jobs (configured by the Truecharts app) also run regularly (as far as they're present in journalctl), but my own cron jobs don't. And this isn't something that worked until one point and then broke, this cron job has never run by itself as far as I can tell.
I'd appreciate any advice on how to dig deeper to understand and fix the issue.
I've found some threads in these forums about cron jobs, but none of these seemed to focus on a similar issue.
Attachments
Last edited: