WPCloud Deploy Documentation

Troubleshooting The “Critical Cron” Email And Related Message Alerts

WPCD uses a lot of CRON processes to manage things for you.  Therefore we also have a mechanism to check to make sure that the CRONS are running on a regular basis.  If we detect that they are not running we send an email to the site admin and add an alert to the top of the wp-admin area.

However, there are times when you might receive these alert emails and they turn out to be false positives.  You’ll know that this is the case when you login to troubleshoot, and realize that all your RONS are running.

If that’s the case, here are a couple of things to check:

  1. Did you recently run any plugin updates (even non-WPCD updates)?  If so, then it’s possible that it took longer to run the updates than our check interval so it appeared that the CRONS were not running.  In this case you should only get the email once (until you run updates again).
  2. Are you running the REDIS object cache with the site?  If so it is possible that the cache is ‘stuck’ and isn’t clearing transients properly when we delete them.  If this is the case, turning off the cache should resolve the issue.  If it does then you’ll know this is the root cause of the false positive issue.
  3. If you do frequent automatic plugin updates to your site, you’re likely to run into the issue.  This is because of the way WordPress CRONS work in conjunction with smaller CRON intervals (1 minute).  When WordPress runs automatic updates it puts the site into maintenance mode which can interrupt any CRONS that are running.  Because they’re interrupted, they are not allowed to reset themselves which removes them from the CRON scheduler.  A good practice would be to deactivate and reactivate WPCD to re-register all CRONS after running automatic updates.

If it turns out that the email as not a false positive you’ll know because when you login there will be a similar warning at the top of the SERVERs and SITE list.

Here are some ideas on what might be the underlying cause of the issue:

  1. Double-check to make sure that the option to disable the native WP CRON is active in your wp-config.php file.  If it’s not and you also have a LINUX CRON active, the two will conflict thereby causing CRONS to be dropped.
  2. Please double-check that you have a LINUX CRON enabled and firing at 1 min intervals.  As mentioned in item 1 above, the native WP CRON process should be disabled in wp-config.php.

If it turns out that CRONS are indeed missing then the simplest resolution is to deactivate all the WPCD plugins and re-enable them.

How do you know if CRONS are missing?  Check out the section below!


Core Crons

You can use the WP CRONTROL plugin to view which crons are running on your site.  After the plugin is installed you can use the SETTINGS->TOOLS->CRON EVENTS menu option to view the cron processes that are scheduled for the site.

To view the WPCD CRONS simply use the search field in the upper right of the list to search for ‘wpcd’.  As of WPCD 5.0, there should be six core crons:

If you are running our POWER TOOLS premium add-on there are additional CRONS that are scheduled as well:


Turn off The Email Notification

If you keep getting the email notification but they are always false positives, you can turn them off as follows:

  • Go to WPCLOUDDEPLOY -> SETTINGS -> MISC tab
  • Scroll down to the CRON WARNING EMAILS section
  • Check the box for DO NOT SEND CRON WARNING EMAILS
  • Click the SAVE SETTINGS button at the bottom.

 

Share: