CraigA Posted October 26, 2013 Report Posted October 26, 2013 As the title says, cron hasn't been running since the upgrade. (or perhaps shortly before, not sure) I've been running it manually. I checked crontab as root and the cron string is in there. I'm not sure where else to look to trouble shoot this. Any ideas? Quote
0 Paul Posted October 26, 2013 Report Posted October 26, 2013 What happens if you try to run it manually under Settings > System > Automation? Any errors? Quote
0 CraigA Posted October 26, 2013 Author Report Posted October 26, 2013 Manually runs fine. I've been trying to run it manually as much as I can to make sure account activations are completing. Quote
0 Paul Posted October 26, 2013 Report Posted October 26, 2013 Blesta should be working fine then. Try editing your cron and instead of sending the output to /dev/null, ie > /dev/null direct it to a file. Like > /path/to/file.txt (Make sure you create the file first) Then, wait 5 minutes and see whats in the file. The most common problem thus far has been Ioncube not being loaded via CLI. This could be the issue here. Quote
0 CraigA Posted October 26, 2013 Author Report Posted October 26, 2013 I ran it manually in cli and saw the output: Undefined variable: argv on line I was able to fix it by following @Evaske's instructions here http://www.blesta.com/forums/index.php?/topic/1226-cron-issues/?hl=cron (enable register_argc_argv) Quote
0 Michael Posted October 26, 2013 Report Posted October 26, 2013 I ran it manually in cli and saw the output: Undefined variable: argv on line I was able to fix it by following @Evaske's instructions here http://www.blesta.com/forums/index.php?/topic/1226-cron-issues/?hl=cron (enable register_argc_argv) Nice find, I've turned that on now on my CloudLinux Customer server, @RebornWebs, you should be fine now Matthew . Quote
0 enitan092 Posted October 26, 2013 Report Posted October 26, 2013 i can not run cron on my blesta. i keep getting this error "-":2: bad commanderrors in crontab file, can't install. this is my cron */5 * * * * /usr/bin/php /home/admin2/public_html/client/index.php cron Quote
0 austio Posted January 29, 2014 Report Posted January 29, 2014 I ran it manually in cli and saw the output: Undefined variable: argv on line I was able to fix it by following @Evaske's instructions here http://www.blesta.com/forums/index.php?/topic/1226-cron-issues/?hl=cron (enable register_argc_argv) I have the same problem as referenced in the above quote, but the solution suplied in the link did not work for me. I can see via phpinfo that "register_argc_argv". But does not work... Blesta should be working fine then. Try editing your cron and instead of sending the output to /dev/null, ie > /dev/null direct it to a file. Like > /path/to/file.txt (Make sure you create the file first) Then, wait 5 minutes and see whats in the file. The most common problem thus far has been Ioncube not being loaded via CLI. This could be the issue here. Seeing the ioncube reference, I checked this too. It is also loaded... Running the cron manually it works fine... any ideas? Quote
0 velaware Posted January 29, 2014 Report Posted January 29, 2014 I can see via phpinfo that "register_argc_argv". Checking this by vising a page you created? If so, try running php -i via CLI and it will print out the CLI version of phpinfo(). You want the CLI info not the web info. Quote
0 austio Posted January 29, 2014 Report Posted January 29, 2014 SOLVED. Thanks secforus and paul; "register_argc_argv".was set on my php file, and ioncube was installed on my server but the php.ini didn't have it running. It was fixed by adjusting the php.ini file correctly Quote
0 velaware Posted January 29, 2014 Report Posted January 29, 2014 SOLVED. Thanks secforus and paul; "register_argc_argv".was set on my php file, and ioncube was installed on my server but the php.ini didn't have it running. It was fixed by adjusting the php.ini file correctly No problem. Some server setups will have PHP settings separate for web vs. console/CLI, so its always good to check both. Quote
Question
CraigA
As the title says, cron hasn't been running since the upgrade. (or perhaps shortly before, not sure)
I've been running it manually. I checked crontab as root and the cron string is in there. I'm not sure where else to look to trouble shoot this.
Any ideas?
11 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.