Jump to content

Daily System Cron


MJHost

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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

 

 

Cron Report.png

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated