Do you see anything in either of the error logs, when the schedulers are supposed to have run?
(ie: suitecrm.log or the PHP error log?)
I haven’t used cPanel myself, so I’m not sure how much help I’ll be, but i’ve seen a few threads around it with varying levels of success, hopefully one of these has a solution?:
(or, at least, things to investigate that can give more info)
Some common suggestions seem to be:
Specify a full path to cron.php or the php executable in the cron job
ie:
(ie, in the 4th link above, a user noted they had to do this with cron.php)
Another thing to check is what web-server user Cron is running under.
There is a section in the config.php file, wherein you can specify web-server users that Cron is allowed to run on:
ie:
cd /home/!USER!/public_html; /usr/bin/php -f /home/!USER!/public_html/cron.php > /dev/null 2>&1
The only difference made is that I now receive an email every minute from the Cron Daemon saying:
"/usr/local/cpanel/bin/jailshell: .dev/null: No such file or directory"
This is since I added the php.cli cron job.
The only Cron related error I can find in error_log reads:
[25-Feb-2021 03:48:10 UTC] PHP Fatal error: Uncaught Exception: cron.php is CLI only. in /home/!USER!/public_html/include/utils.php:1898
Stack trace:
#0 /home/!USER!/public_html/cron.php(52): sugar_die('cron.php is CLI...')
#1 {main}
thrown in /home/!USER!/public_html/include/utils.php on line 1898
I can’t see any Cron or Scheduler related errors in Admin>System Settings>Log - this is with log level set to error.
I’m struggling to find out what the actual full path is - using cpanel’s search there is no php-cli anywhere in public_html.
There are only these results - are these relevant? /.cpanel/ea-php-cli
🗎/.cpanel/ea-php-cli/.ea-php-cli.cache
🗎/.cpanel/ea-php-cli/public_html/.ea-php-cli.cache
🗎/.cpanel/ea-php-cli/public_html/new/.ea-php-cli.cache
🗎/.cpanel/ea-php-cli/public_html/main/.ea-php-cli.cache
Ideally I’d like to just have one command running
These are my cron daemon messages when I just run one:
command
cron daemon message
cd /home/!USER!/public_html; php -f cron.php
**(this is what suitecrm suggests)**
PHP Warning: PHP Startup: Unable to load dynamic library 'php_fileinfo.dll' (tried: /opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll (/opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll: cannot open shared object file: No such file or directory), /opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll.so (/opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 cron.php is CLI only.
cd /home/!USER!/public_html; /usr/bin/php -f /home/!USER!/public_html/cron.php
PHP Warning: PHP Startup: Unable to load dynamic library 'php_fileinfo.dll' (tried: /opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll (/opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll: cannot open shared object file: No such file or directory), /opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll.so (/opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 cron.php is CLI only.
So the command is now: /usr/local/bin/php /home/!USER!/public_html/cron.php
I’m now no longer getting those mailer daemon emails - and I can see that some schedulers are attempting.
For instance I’m now seeing Cron related Fatal errors in the system log: (Run Report Generation Scheduled Tasks) failed in CRON run (Process Workflow Tasks) failed in CRON run