faisal Posted February 25, 2016 Share Posted February 25, 2016 Hi The main cron job take very long time to finish It stuck in "Starting Updating Disk & Bandwidth Usage Stats" for about an hour! Starting Running Pre-Cron Hooks Starting Generating Invoices Invoicing Loop Service ID 3727 - 1 of 4 Invoicing Loop Service ID 3507 - 2 of 4 Invoicing Loop Service ID 1636 - 3 of 4 Invoicing Loop Service ID 3719 - 4 of 4 Invoicing Loop Addon ID 52 - 1 of 6 Invoicing Loop Addon ID 58 - 2 of 6 Invoicing Loop Addon ID 45 - 3 of 6 Invoicing Loop Addon ID 39 - 4 of 6 Invoicing Loop Addon ID 44 - 5 of 6 Invoicing Loop Addon ID 30 - 6 of 6 Generated Invoice #20799 - 1 Invoices Created Starting Applying Late Fees - Late Invoice Fees added to 0 Invoices Starting Processing Credit Card Charges Processing Capture for Invoice #20703 Capture Failed - Credit Card Payments Processed (0 Captured, 1 Failed) Starting Processing Invoice Reminder Notices - Sent 2 Unpaid Invoice Payment Reminders to Invoice Numbers 20767,20769 - Sent First Notice to User xxx - Sent First Notice to User xxx - Sent First Notice to User xxx - Sent First Notice to User xxx - Sent First Notice to User xxx - Sent 5 Reminders Starting Processing Domain Renewal Notices - Sent 0 Notices Starting Processing Cancellation Requests - Processed 0 Cancellations Starting Processing Overdue Suspensions - ERROR: Manual Suspension Required - No Module - xxx - xxx (Service ID: 1531 - User ID: 895) - Processed 0 Suspensions Starting Processing Overdue Terminations - ERROR: Manual Terminate Required - No Module - xxx - xxx (Service ID: 1531 - User ID: 895) - Processed 0 Terminations Starting Performing Automated Fixed Term Service Terminations - Processed 0 Terminations Starting Auto Closing Inactive Tickets Starting Processing Delayed Affiliate Commissions - Processed 0 Pending Affiliate Payments Starting Processing Email Marketer Rules Starting Sending Credit Card Expiry Reminders - Sent 0 Credit Card Expiry Notices Starting Updating Disk & Bandwidth Usage Stats Any idea why this happen? 0 Quote Link to comment Share on other sites More sharing options...
Soufan Posted February 26, 2016 Share Posted February 26, 2016 Your server doesn't have much/enough resources 0 Quote Link to comment Share on other sites More sharing options...
faisal Posted February 28, 2016 Author Share Posted February 28, 2016 Nice, how to investigate that! I mean how to know what resources need to be increased? Or what is the next step? 0 Quote Link to comment Share on other sites More sharing options...
Soufan Posted February 29, 2016 Share Posted February 29, 2016 If you're WHMCS is hosted on a shared server, CPU might be used by others running their own scripts. 0 Quote Link to comment Share on other sites More sharing options...
faisal Posted February 29, 2016 Author Share Posted February 29, 2016 (edited) No, WHMCS is installed in its own server I try to find some WHMCS related server audit advice but didn't find something useful. Edited February 29, 2016 by faisal 0 Quote Link to comment Share on other sites More sharing options...
faisal Posted March 2, 2016 Author Share Posted March 2, 2016 In "Automation Settings" -> "Miscellaneous" I disabled "Update Usage Statistics" and cron job is faster than ever! 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted March 4, 2016 WHMCS Support Manager Share Posted March 4, 2016 Hi, Please begin by reviewing Utilities > Logs > Activity Log and ensure you see a number of entries beginning "Cron Job" each day. The final entry every day should be "Cron Job: Completed". If you see some Cron Job entries but none after "Cron Job: Running Usage Stats Update" your cron is getting stuck at the Usage Stats Update stage. The most likely cause of this error is that you have an old server in Setup > Servers that is no longer available. To resolve this, you should update or remove any inactive or offline servers from Setup > Servers so that they can all be connected to successfully. Or alternatively Update Usage Statistics can be disabled under Setup > Automation Settings. 0 Quote Link to comment Share on other sites More sharing options...
faisal Posted March 6, 2016 Author Share Posted March 6, 2016 Thanks John I disabled "Update Usage Statistics" for now. 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.