danielsm Posted January 27, 2022 Share Posted January 27, 2022 Hello, I have a strage situation with whmcs after upgrade to last version. The cron its running without problem aparently, but i dont receive the email regarding "Cron Job Activity". I did all stuff from docs, debug cron, andvance debug cron, but in llog file everything is ok (ive attached the cron log). in General settings ive checked "display erros" and no errors are shown in system logs, everything is running. I also checked the DB to see if changes are made, and yes, all changes are made Now, if somene can help me, or pointing me to the right direction , what should i also check and where please do so. for a better understanging, i will describe my whmcs details License from a third party vendor (reseller with included license) All my crons are outside public_html folder, PHP version: 7.4 if i run the cron manualy, again, no errors, but this time the email is sent. Thank you cron.log 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted January 28, 2022 WHMCS Support Manager Share Posted January 28, 2022 Hi @danielsm Thanks for sharing those logs, they show the Cron Digest email being sent and no PHP errors occurring to indicate a fault. Is that log from your running cron.php via the command line, or a log generated by the cron job? If the issue only occurrs when running cron.php via a Cron Job, then the next step is to pipe the output to a file and observe what happened. 0 Quote Link to comment Share on other sites More sharing options...
danielsm Posted January 28, 2022 Author Share Posted January 28, 2022 (edited) 5 hours ago, WHMCS John said: Hi @danielsm Thanks for sharing those logs, they show the Cron Digest email being sent and no PHP errors occurring to indicate a fault. Is that log from your running cron.php via the command line, or a log generated by the cron job? If the issue only occurrs when running cron.php via a Cron Job, then the next step is to pipe the output to a file and observe what happened. Its the log generated by daily cron https://help.whmcs.com/m/automation/l/1282145-advanced-cron-troubleshooting-intermittent-issues when im running manualy the email is sent Edited January 28, 2022 by danielsm 0 Quote Link to comment Share on other sites More sharing options...
danielsm Posted January 30, 2022 Author Share Posted January 30, 2022 And strage, this is the last cron log (from a huge log) WHMCS Automation Task Utility: all ================================== Daily Cron Automation Mode Queuing Tasks ------------- Applying "in progress" and "is due" state filters Task queues ready Executing Application Queue --------------------------- Currency Exchange Rates Product Pricing Updates Invoices Late Fees Credit Card Charges Invoice & Overdue Reminders Domain Renewal Notices Cancellation Requests Overdue Suspensions Overdue Terminations Fixed Term Terminations Inactive Tickets Delayed Affiliate Commissions Process Email Queue Email Marketer Rules Process Email Campaigns SSL Sync Server Usage Stats after Server Usage Stats the cron stops, but if i run it manually. after Server Usage Stats the cron still running with this https://gyazo.com/9fd8960b46809308da63e33ba7c1130d Now, i think its somenting with that, how can i investigate the server usage stats to see whats happening there? or shoul i increase php execution time? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted January 31, 2022 WHMCS Support Manager Share Posted January 31, 2022 Hi @danielsm, Thanks for providing that information. This does indeed indicate that the cron.php script is being killed prematurely by the server, as there's no PHP Fatal error being recorded, and no error when run manually. This guide will help identify the php.ini to modify:https://help.whmcs.com/m/automation/l/969680-identifying-the-php-ini-used-for-in-command-line-cron-engine There may be other server-side restrictions limiting the execution time for cron scripts to be aware of. 0 Quote Link to comment Share on other sites More sharing options...
danielsm Posted February 5, 2022 Author Share Posted February 5, 2022 Problem solved, was a php issue. Thank you for support. 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.