MJHost Posted January 9, 2017 Share Posted January 9, 2017 Hey all, I have found an issue, (that's not really an issue, just annoying) I recently changed the time that the System Cron runs. I am now getting two emails, when it runs, one to say it was successful, and detailing the results, and another with the subject: WHMCS Daily System Cron Attention Needed that states: (Note: Both emails are being received at the same time: 01:00:29AM Your WHMCS is configured to perform the Daily System Cron during the hour of 1am. However, the Daily System Cron did not execute within that hour as expected. This may be due to the scheduled time specified in your web hosting control panel's cron entry. Please ensure your web hosting control panel executes the WHMCS System Cron (cron.php) at least once during the hour of 1 am. If you have confirmed that setting, and you continue to receive this message, then please refer to the WHMCS Cron documentation to ensure you have itemized the appropriate and additional options. 0 Quote Link to comment Share on other sites More sharing options...
twhiting9275 Posted January 9, 2017 Share Posted January 9, 2017 Does it do this every day, or has it been more than a day? Most likely this is due to you changing the time. While annoying, this is absolutely natural, and the error is correct. It assumes that things aren't functioning normally and (rightly) notifies you 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted January 9, 2017 Share Posted January 9, 2017 Hey MJhost, Its possible you may be affected but this issue, https://forum.whmcs.com/showthread.php?122970-HotFix-CORE-10783-Exception-for-system-cron-do-commands please try the hotfix outlined to see if this fixes the issue for you. 0 Quote Link to comment Share on other sites More sharing options...
MJHost Posted January 11, 2017 Author Share Posted January 11, 2017 Hey MJhost, Its possible you may be affected but this issue, https://forum.whmcs.com/showthread.php?122970-HotFix-CORE-10783-Exception-for-system-cron-do-commands please try the hotfix outlined to see if this fixes the issue for you. So follow-up - I tried the hotfix as outlined, to see if it would resolve the issue. It hasn't. I am still getting two emails, when the Cron runs, one stating it was successful, and the other saying it failed. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted January 12, 2017 Share Posted January 12, 2017 So follow-up - I tried the hotfix as outlined, to see if it would resolve the issue. It hasn't. I am still getting two emails, when the Cron runs, one stating it was successful, and the other saying it failed. Ok, if you take a look at the email account that your cron is configured to send reports to do any errors show in there (I mean the email in Cron Jobs in cPanel) 0 Quote Link to comment Share on other sites More sharing options...
MJHost Posted January 13, 2017 Author Share Posted January 13, 2017 Ok, if you take a look at the email account that your cron is configured to send reports to do any errors show in there (I mean the email in Cron Jobs in cPanel) No errors showing there no. 0 Quote Link to comment Share on other sites More sharing options...
CavalloComm Posted January 13, 2017 Share Posted January 13, 2017 I have this same issue 0 Quote Link to comment Share on other sites More sharing options...
MJHost Posted January 13, 2017 Author Share Posted January 13, 2017 I have this same issue Glad to hear I am not the only one. Did you try the HOTFIX? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted January 13, 2017 Share Posted January 13, 2017 No errors showing there no. What is the report showing? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted January 13, 2017 Share Posted January 13, 2017 I have this same issue Hello CavalloComm, Please check the email account cPanel sends your Cron reports to (cPanel -> Cron Jobs -> Cron Email) then log into that email account and check what the last cron.php report shows 0 Quote Link to comment Share on other sites More sharing options...
MJHost Posted January 14, 2017 Author Share Posted January 14, 2017 What is the report showing? All cron automation tasks completed successfully Invoices 0 Generated Late Fees 0 Added Credit Card Charges 0 Captured Invoice & Overdue Reminders 1 Sent Domain Renewal Notices 0 Sent Cancellation Requests 0 Processed Overdue Suspensions 0 Suspended Fixed Term Terminations 0 Terminated Inactive Tickets 0 Closed Delayed Affiliate Commissions 0 Cleared Email Marketer Rules 0 Emails Sent Domain Expiry 0 Expired 0 Quote Link to comment Share on other sites More sharing options...
CavalloComm Posted January 15, 2017 Share Posted January 15, 2017 I get the first one like above, then a second email stating that the job completed successfully. My email is offsite using SMTP, and I am using Linux Plesk 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted January 15, 2017 Share Posted January 15, 2017 Thanks MJHost are you still getting the email to say it didnt run at the expected time? 0 Quote Link to comment Share on other sites More sharing options...
MJHost Posted January 16, 2017 Author Share Posted January 16, 2017 Thanks MJHost are you still getting the email to say it didnt run at the expected time? Yes. Both emails, one saying it hasn't run, and then the report showing it has. 0 Quote Link to comment Share on other sites More sharing options...
xyzulu Posted January 16, 2017 Share Posted January 16, 2017 What is the actual cronjob command being run by your server? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted January 16, 2017 Share Posted January 16, 2017 Yes. Both emails, one saying it hasn't run, and then the report showing it has. Can you please check the settings under General Setup -> Automation Settings and make sure the cron run time is set to the same hour that your cron normally runs as well if you are running more than once a day try changing the hour to see if that helps, it seems that the cron isn't fully writing the LastExecutionTime to the Database 0 Quote Link to comment Share on other sites More sharing options...
MJHost Posted January 18, 2017 Author Share Posted January 18, 2017 Can you please check the settings under General Setup -> Automation Settings and make sure the cron run time is set to the same hour that your cron normally runs as well if you are running more than once a day try changing the hour to see if that helps, it seems that the cron isn't fully writing the LastExecutionTime to the Database Okay, so following a recent migration, the Cron is now not running at all. The cron is running every 5 minutes in cPanel, but according to WHMCS it has not run for almost 48 hours. 0 Quote Link to comment Share on other sites More sharing options...
MJHost Posted January 18, 2017 Author Share Posted January 18, 2017 I have opened a ticket, in the hope that technical support will be able to shed some light on the issue. #GFD-561944 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.