Why is my WHMCS not completing the cron job?
Access your server’s command line. Examine the output for any errors. The final line output should be ” [OK] Completed “. Seeing this error output indicates that the PHP configuration for your WHMCS installation may be different than the one on the command line. Log in as the same user that the cron job runs under.
Why is cron job not running with same user?
The cron job doesn’t run with the same user with which you are executing the script manually – so it doesn’t have access to the same $PATH variable as your user which means it can’t locate the Java executable to execute the commands in the script. We should first fetch the value of PATH variable as below and then set it (export) in the script –
How often should I execute a cron command?
Examine the output for any errors. This should only ever be executed once in any 24 hour period. Do this with the explicit intention of identifying why the cron may not be completing successfully. For more information please see Cron Commands.
What to do if Bash is not running via crontab?
To make sure it is, run the following command: Do crontab -e for whichever crontab you’re using and replace it with output of the above command. This should mirror most of your environment in case there is some missing path issue or something else. Also check logs for any errors it’s getting.
Why is my server terminating my cron job?
This error indicates that the system is terminating the cron job because it has exceeded the ‘memory_limit’ value of 32 MB. Increase this to 64 MB (128 MB if possible) to resolve this. Contact your server administrator or hosting provider for assistance with this. You can check the limit using this command:
How to troubleshoot a cron error in PHP?
Where possible, executing cron.php from your server’s command line interface is the recommended troubleshooting method. Access your server’s command line. Where userName represents the user on the server for which the cron command is configured under. Examine the output for any errors. This should only ever be executed once in any 24 hour period.
Why is my cron.php file unable to communicate with WHMCS?
Work with your hosting provider or server administrator to ensure that the ionCube loaders are available to the cron job user. This error occurs when the cron.php file is unable to communicate with the WHMCS installation. This typically occurs when you are using a custom location for the /crons directory.
Why is my cron job terminating after 30 seconds?
Whoops[&Exception&][&ErrorException&]’ with message ‘Maximum execution time of 30 seconds exceeded This error indicates that the system is terminating the cron job because it has exceeded the ‘max_execution_limit’ value of 30 seconds. Increase this to an appropriate value for the size of your installation.
How often should a cron be executed on a server?
Access your server’s command line. Where userName represents the user on the server for which the cron command is configured under. Examine the output for any errors. This should only ever be executed once in any 24 hour period. Do this with the explicit intention of identifying why the cron may not be completing successfully.