Dev@SH Posted January 7, 2016 Share Posted January 7, 2016 (edited) Question: Subject : Our daily cron job hangs up but not in a reproducible way. Recently - we have noticed that our daily cron is having issues with completing. After examining the cron log (whmcscron.log), it appears that the cron job is failing while processing payments. The log does not state that is where it is getting hung up but the log looks like: " Capture Successful (Time: 0.59 Memory: 70.55) Processing Capture for Inv " and " Capture Successful (Time: 0.43 Memory: 66.90) Processing Capture for Invoice #302561 (Time: 0 Memory: The server has plenty of memory for PHP (4GB) and the cron to process and the max execution time is set to 18000. As you can see, we enabled the 'debug' flag in the crontab but it really does not provide the best information. Now - if we manually run the cron via cli, it seems to work just fine. Again - there is no rhyme or reason as to when this will fail. We noticed this happening more and more frequently. So, what are the next steps? Experienced something similar? WHMCS version : 6.2.0 Edited January 7, 2016 by Dev@SH 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted January 11, 2016 WHMCS Support Manager Share Posted January 11, 2016 Hi, As there output doesn't contain a PHP error, it's likely to be a code error, but does the problem always occur on invoices assigned to a particular payment gateway? In my experience, the most likely cause would be some other kind of server usage limitation system that prevents long running scripts via crons. This is seemingly validated by the fact the corn runs fine from the command line. 0 Quote Link to comment Share on other sites More sharing options...
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.