Cannot run scheduled jobs - cli.php errors out with uninformative "Error"
Overview
Our scheduled jobs stopped working, possibly after upgrading to 5.56. Investigating this further revealed that the crontab command failed.
Reproduction steps
- Execute
cd $CIVI_ROOT; $PHP bin/cli.php -j -s $CIVISITE -u $CIVIUSER -p $CIVIPASS -e Job -a execute
Current behaviour
The command exits without triggering the scheduled jobs, displaying the text "Error".
Expected behaviour
That the scheduled CiviCRM jobs are triggered.
Environment information
- CiviCRM: 5.56.0
- PHP: 7.4_
- CMS: Joomla 3.10.11
- Web Server: Apache 2.4
Comments
Is there a way to debug/trace the execution of the bin/cli.php
?