We had a case today where a customers cron was not running, and when you look in /var/log/cron it didn’t even show that the task was even trying to run.
When we run the task manually, as the user, it worked fine. So we know the issue was not with the script.
Turns out, there is an issue when using CSF (Configserver Security & Firewall).
You need to make sure that RESTRICT_SYSLOG is disabled in the CSF configuration file. It prevents non-root users from logging anything via syslog, so users’s cron jobs are not logged to /var/log/cron.
To fix this, set the RESTRICT_SYSLOG to 0 in the configuration, then change the permissions of /dev/log from 0660 to 0666(the default permissions)
After you have done those two things, you need to restart the crond service.