I can’t believe I still have problems configuring crontab after using VPS for 10+ years, but here is my current problem:
Dec 14 04:00:01 s2 CRON: (root) CMD (/home/myuser/cert/certbot-auto renew --post-hook "service nginx reload" > /dev/null) Dec 14 04:00:03 s2 CRON: (CRON) info (No MTA installed, discarding output)
And no log for this cron job in
My certificate isn’t updated automatically. I have to do manual update (does work).
A few troubleshooting:
cronservice is running.
- Manually running command works (using my
- Manual run doesn’t produce error and does log in
- I am using
crontab -u root -eto setup my cron jobs.
- my root account doesn’t have a password, ie.
sudo passwd -dl root.
So, should I somehow run cron job using my own account or should I configure root cron job differently to troubleshoot my problem?