Email
Share

We Rock Your Web Forum » Content Management Systems » Drupal

Cron run exceeded the time limit and was aborted

(4 posts)
  1. Networx

    member
    Joined: Oct '09
    Posts: 11

    On my Drupal 6.x site, with backup_migrate installed, and cron running every 3 hours (via poormanscron module), I keep getting the error "Cron run exceeded the time limit and was aborted."

    Any ideas how to resolve this? My backup/ migrate schedule (once a day) is unable to run because cron keeps timing out. It's working fine on my other site, I simply can't figure out what's causing cron to time out...

    Posted 3 months ago #

  2. Posted 3 months ago
  3. Anonymous



    Hmmm, I'm having the same problem here and can't seem to pin it down. I should point out that before I upgrade to Drupal 6.22 (from Drupal 5) backup & migrate was working just fine (ie. cron not timing out and scheduled backups going according to plan).

    Posted 3 months ago #
  4. DrupalJunkie

    senior member
    Joined: Oct '09
    Posts: 77

    Ahhhh! This is driving me crazy. It's also causing our content rotator to time-out and not work correctly (because the cache isn't being cleared by a cron run). Backup/ migrate is also affected, and maybe even boost?

    Posted 3 months ago #
  5. Web Rocker

    admin
    Joined: Jun '11
    Posts: 26

    Okay Web Rockers, we've got a potential solution (should work for Drupal 5.x and up). Edit the file /includes/module.inc. temporarily by adding the line:

    foreach (module_implements($hook) as $module) {
        $function = $module .'_'. $hook;
    
        if ($hook == 'cron') watchdog('cron', "hit $module cron");   // add this line

    This should have cron spit out detailed messages and give you a clue as to why cron is timing out (you should see it give you a list of modules it's hit (ie. hit search cron, hit poll cron, hit ping cron, etc.). The last one caused it to stall, so you can investigate that module or input filter further.

    The most common solutions if you want to try these:

    • Disable the "PHP filter" module, run cron. If that works, try re-enabling PHP filter, and running cron again. If that works - you're in the clear.
    • Check your input formats and make sure there's no conflicts with tags (ie. allowing an "embed" tag for both input filter and video filter).

    Any more problems, please post back with details on what you've tried.

    Posted 3 months ago #

RSS feed for this topic

Reply

(required)

Allowed markup: BBcode blockquote code em strong ul ol li font strike center u hr.
You can also put code in between backtick ( ` ) characters.