clopezi Posted December 22, 2015 Share Posted December 22, 2015 Hi, I have a problem with cronjob since a month. Sometimes the cronjob finish right, sometimes it fails. When i go to see activity log, when it fails it ends in invoice reminder notices. I tried to enable debug errors and call it from browser, but it only offers a blank page. I call it with debug in SSH and i obtain this: Starting (Time: 0.42 Memory: 16.57) Running Pre-Cron Hooks (Time: 0.01 Memory: 16.63) Starting Generating Invoices (Time: 0 Memory: 16.63) Invoicing Loop Service ID 120 - 1 of 27 (Time: 0 Memory: 16.74) Invoicing Loop Service ID 131 - 2 of 27 (Time: 0 Memory: 16.74) Invoicing Loop Service ID 198 - 3 of 27 (Time: 0 Memory: 16.74) Invoicing Loop Service ID 199 - 4 of 27 (Time: 0 Memory: 16.74) Invoicing Loop Service ID 108 - 5 of 27 (Time: 0 Memory: 16.74) Invoicing Loop Service ID 109 - 6 of 27 (Time: 0 Memory: 16.74) Invoicing Loop Service ID 94 - 7 of 27 (Time: 0 Memory: 16.74) Invoicing Loop Service ID 110 - 8 of 27 (Time: 0 Memory: 16.74) Invoicing Loop Service ID 139 - 9 of 27 (Time: 0 Memory: 16.74) Invoicing Loop Service ID 196 - 10 of 27 (Time: 0 Memory: 16.74) Invoicing Loop Service ID 223 - 11 of 27 (Time: 0 Memory: 16.74) Invoicing Loop Service ID 77 - 12 of 27 (Time: 0 Memory: 16.74) Invoicing Loop Service ID 61 - 13 of 27 (Time: 0 Memory: 16.74) Invoicing Loop Service ID 226 - 14 of 27 (Time: 0 Memory: 16.74) Invoicing Loop Service ID 95 - 15 of 27 (Time: 0 Memory: 16.74) Invoicing Loop Service ID 228 - 16 of 27 (Time: 0 Memory: 16.74) Invoicing Loop Service ID 186 - 17 of 27 (Time: 0 Memory: 16.74) Invoicing Loop Service ID 160 - 18 of 27 (Time: 0 Memory: 16.74) Invoicing Loop Service ID 167 - 19 of 27 (Time: 0 Memory: 16.74) Invoicing Loop Service ID 163 - 20 of 27 (Time: 0 Memory: 16.74) Invoicing Loop Service ID 2 - 21 of 27 (Time: 0 Memory: 16.74) Invoicing Loop Service ID 181 - 22 of 27 (Time: 0 Memory: 16.74) Invoicing Loop Service ID 5 - 23 of 27 (Time: 0 Memory: 16.74) Invoicing Loop Service ID 177 - 24 of 27 (Time: 0 Memory: 16.74) Invoicing Loop Service ID 179 - 25 of 27 (Time: 0 Memory: 16.74) Invoicing Loop Service ID 222 - 26 of 27 (Time: 0 Memory: 16.74) Invoicing Loop Service ID 231 - 27 of 27 (Time: 0 Memory: 16.75) Invoicing Loop Domain ID 11 - 1 of 11 (Time: 0 Memory: 17.11) Invoicing Loop Domain ID 88 - 2 of 11 (Time: 0 Memory: 17.11) Invoicing Loop Domain ID 77 - 3 of 11 (Time: 0 Memory: 17.11) Invoicing Loop Domain ID 89 - 4 of 11 (Time: 0 Memory: 17.11) Invoicing Loop Domain ID 95 - 5 of 11 (Time: 0 Memory: 17.11) Invoicing Loop Domain ID 75 - 6 of 11 (Time: 0 Memory: 17.11) Invoicing Loop Domain ID 72 - 7 of 11 (Time: 0 Memory: 17.11) Invoicing Loop Domain ID 74 - 8 of 11 (Time: 0 Memory: 17.11) Invoicing Loop Domain ID 65 - 9 of 11 (Time: 0 Memory: 17.11) Invoicing Loop Domain ID 76 - 10 of 11 (Time: 0 Memory: 17.11) Invoicing Loop Domain ID 27 - 11 of 11 (Time: 0 Memory: 17.11) - 0 Invoices Created (Time: 0 Memory: 17.11) Starting Applying Late Fees (Time: 0 Memory: 17.11) - Late Invoice Fees added to 0 Invoices (Time: 0 Memory: 17.11) Starting Processing Credit Card Charges (Time: 0 Memory: 17.11) Starting Processing Invoice Reminder Notices (Time: 0 Memory: 17.11) The system works fine, i can see PDF without problems and send mail notification without problem also. As i say, the cron sometimes fails and sometimes works right. The PHP have 1024MB availables, and the server is an updated cPanel system with CloudLinux. Thank you very much. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted December 22, 2015 Share Posted December 22, 2015 opening it from browser will not display any report and this is ok. instead it may print error messages if any exist! If you know exactly where it fails this will be very helpful, you may split the cron tasks into two or three 0 Quote Link to comment Share on other sites More sharing options...
clopezi Posted December 22, 2015 Author Share Posted December 22, 2015 opening it from browser will not display any report and this is ok. instead it may print error messages if any exist! If you know exactly where it fails this will be very helpful, you may split the cron tasks into two or three Hi, How can i do this? However, when it fails, it fails ever on the same step, invoice reminder notices. Thank you, 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted December 22, 2015 Share Posted December 22, 2015 its very easy, check the documentation http://docs.whmcs.com/Cron_Tasks 0 Quote Link to comment Share on other sites More sharing options...
clopezi Posted December 22, 2015 Author Share Posted December 22, 2015 its very easy, check the documentation http://docs.whmcs.com/Cron_Tasks Ah, of course. Sorry, i wasnt understanding it. If i execute the cron with "skip_invoicereminders", the cron finish correctly Thank you, 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted December 22, 2015 Share Posted December 22, 2015 If i execute the cron with "skip_invoicereminders", the cron finish correctly if this was the only issue with it you will need to add new/separate cron with do_invoicereminders to complete it too 0 Quote Link to comment Share on other sites More sharing options...
clopezi Posted December 22, 2015 Author Share Posted December 22, 2015 if this was the only issue with it you will need to add new/separate cron with do_invoicereminders to complete it too Thank you for your help I tried to do it, and it stops # php -q /.../cron.php do_invoicereminders Starting Running Pre-Cron Hooks Skipping Generating Invoices Skipping Applying Late Fees Skipping Processing Credit Card Charges Starting Processing Invoice Reminder Notices And nothing more Thank you, 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.