How to troubleshoot cron jobs?

Started by guest27102, February 16, 2021, 07:23:51 PM

Previous topic - Next topic
I don't get why my cron jobs doesn't run. I've setup a cron job to automatically update the unbound dns blacklist, but it never runs. I have it configured to run every night at 04. And I have setup a few others to run when I know I'm home to check whether they run or not. For instance before writing this post, I setup a new cron job for updating the blacklist and the reboot at 15 * * * * meaning it shout have ran at 19.15 (now it is 19.22) and it never ran.

I can't figure anywhere to check why if didn't ran, what happened, any error. I can't see a tasklist of completed or fail tasks.

Have you added the cronjob over the Web Interface of OPNsense?
(Unoffial Community) OPNsense Telegram Group: https://t.me/joinchat/0o9JuLUXRFpiNmJk

PM for paid support

Yes, sorry. That is true, I added the cron job via the web interface.

Quote from: C02y on February 16, 2021, 10:13:26 PM
Yes, sorry. That is true, I added the cron job via the web interface.
Take a screenshot of it
(Unoffial Community) OPNsense Telegram Group: https://t.me/joinchat/0o9JuLUXRFpiNmJk

PM for paid support

Quote from: C02y on February 16, 2021, 07:23:51 PM
I've setup a cron job to automatically update the unbound dns blacklist, but it never runs.

Are you sure it doesn't run? This works fine for me, but it doesn't write anything to the system log. You can check the Unbound log for restarts or the modification date of /var/unbound/etc/dnsbl.conf.

Also, make sure to click the Apply button after adding a cron job.
OPNsense virtual machine images
OPNsense aarch64 firmware repository

Commercial support & engineering available. PM for details (en / de).


Quote from: C02y on February 17, 2021, 02:40:14 PM
QuoteTake a screenshot of it
And where do you see that its not working ?
(Unoffial Community) OPNsense Telegram Group: https://t.me/joinchat/0o9JuLUXRFpiNmJk

PM for paid support

If I use a custom link for the blocklist (URLs of Blocklists) instead of the predefined Type of DNSBL, will the cron I had created for the automatic daily (Update Unbound DNSBLs) download will also pull the updates from  the custom URLs of Blocklists link? Thanks