Where are crontab errors logged?

czerdrill

Well-Known Member
Feb 18, 2011
70
0
56
I have a cronjob set up but it failed to run recently. It worked fine before. It's the cPanel backup script thats readily available on the internet. Only change I made to the server was changing the ssh port from the default 22. Is there somewhere I can view what errors were thrown when a cronjob failed to run?
 

czerdrill

Well-Known Member
Feb 18, 2011
70
0
56
I was able to run it from shell with no issue, and the command I had in crontab worked until today. Any ideas?
 

NetMantis

BANNED
Apr 22, 2012
116
1
66
Utah
cPanel Access Level
DataCenter Provider
Do you have "shell fork bomb protection" enabled on your server?

If so, disable it and see if your script runs

You can also take a look at /var/log/messages and watch the email account listed
in /root/.forward as that is where cron error reports would usually show up.
 
  • Like
Reactions: Alex C