← Back to team overview

mahara-contributors team mailing list archive

[Bug 788020] Re: cron fails to run due to next run time too old

 

Hi John,

The way cron treats those late jobs has changed in 1.4, and you won't
see this error after the upgrade. Because it's been rewritten, we won't
bother fixing this error on 1.3.x.

However, if you search the forums on mahara.org you can find details of
a workaround.  It works best to just run it every minute, but if you
really don't want to do that, go into your database, look at the cron
table, and all the *_cron tables, and change all the values so that no
function is set to run more frequently than your cron runs.


** Changed in: mahara
       Status: New => Won't Fix

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/788020

Title:
  cron fails to run due to next run time too old

Status in Mahara ePortfolio:
  Won't Fix

Bug description:
  Mahara v1.3.6
  Linux 2.6.18-238.5.1.el5 (Centos 64bit)
  PHP 5.2.10 (cli) (built: Nov 13 2009 11:44:05) 
  Copyright (c) 1997-2009 The PHP Group
  Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
  Apache/2.2.3
  mysql-server-5.0.77-4.el5_5.5

  We are trialing Mahara and I thought running the cron every minute was
  excessive so set to an hour. Students portfolio upload emails stopped
  being sent. Each hour the cron tried to run but failed

  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1] [DBG] c9 (lib/cron.php:70) ---------- cron running Sun, 22 May 2011 04:05:03 +0100 ----------
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1] [WAR] c9 (lib/cron.php:126) cronjob "externalfeed.cleanup_feeds" didn't get run because the nextrun time was too old
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1] Call stack (most recent first):
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1]   * log_message("cronjob "externalfeed.cleanup_feeds" didn't get ru...", 8, true, true) at /var/www/html/mahara/lib/errors.php:109
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1]   * log_warn("cronjob "externalfeed.cleanup_feeds" didn't get ru...") at /var/www/html/mahara/lib/cron.php:126
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1] 
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1] [WAR] c9 (lib/cron.php:126) cronjob "externalfeed.refresh_feeds" didn't get run because the nextrun time was too old
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1] Call stack (most recent first):
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1]   * log_message("cronjob "externalfeed.refresh_feeds" didn't get ru...", 8, true, true) at /var/www/html/mahara/lib/errors.php:109
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1]   * log_warn("cronjob "externalfeed.refresh_feeds" didn't get ru...") at /var/www/html/mahara/lib/cron.php:126
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1] 
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1] [WAR] c9 (lib/cron.php:126) cronjob "forum.interaction_forum_new_post" didn't get run because the nextrun time was too old
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1] Call stack (most recent first):
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1]   * log_message("cronjob "forum.interaction_forum_new_post" didn't ...", 8, true, true) at /var/www/html/mahara/lib/errors.php:109
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1]   * log_warn("cronjob "forum.interaction_forum_new_post" didn't ...") at /var/www/html/mahara/lib/cron.php:126
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1] 
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1] [WAR] c9 (lib/cron.php:167) core cronjob "rebuild_artefact_parent_cache_dirty" didn't get run because the nextrun time (2011-05-22 03:06:00) was too old (less than 1306033203)
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1] Call stack (most recent first):
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1]   * log_message("core cronjob "rebuild_artefact_parent_cache_dirty"...", 8, true, true) at /var/www/html/mahara/lib/errors.php:109
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1]   * log_warn("core cronjob "rebuild_artefact_parent_cache_dirty"...") at /var/www/html/mahara/lib/cron.php:167
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1] 
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1] [WAR] c9 (lib/cron.php:167) core cronjob "rebuild_artefact_parent_cache_complete" didn't get run because the nextrun time (2011-05-22 04:00:00) was too old (less than 1306033203)
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1] Call stack (most recent first):
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1]   * log_message("core cronjob "rebuild_artefact_parent_cache_comple...", 8, true, true) at /var/www/html/mahara/lib/errors.php:109
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1]   * log_warn("core cronjob "rebuild_artefact_parent_cache_comple...") at /var/www/html/mahara/lib/cron.php:167
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1] 
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1] [WAR] c9 (lib/cron.php:167) core cronjob "activity_process_queue" didn't get run because the nextrun time (2011-05-22 03:10:00) was too old (less than 1306033203)
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1] Call stack (most recent first):
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1]   * log_message("core cronjob "activity_process_queue" didn't get r...", 8, true, true) at /var/www/html/mahara/lib/errors.php:109
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1]   * log_warn("core cronjob "activity_process_queue" didn't get r...") at /var/www/html/mahara/lib/cron.php:167
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1] 
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1] [WAR] c9 (lib/cron.php:167) core cronjob "import_process_queue" didn't get run because the nextrun time (2011-05-22 03:10:00) was too old (less than 1306033203)
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1] Call stack (most recent first):
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1]   * log_message("core cronjob "import_process_queue" didn't get run...", 8, true, true) at /var/www/html/mahara/lib/errors.php:109
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1]   * log_warn("core cronjob "import_process_queue" didn't get run...") at /var/www/html/mahara/lib/cron.php:167
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1] 
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1] [WAR] c9 (lib/cron.php:167) core cronjob "import_cleanup_old_imports" didn't get run because the nextrun time (2011-05-22 04:00:00) was too old (less than 1306033203)
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1] Call stack (most recent first):
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1]   * log_message("core cronjob "import_cleanup_old_imports" didn't g...", 8, true, true) at /var/www/html/mahara/lib/errors.php:109
  [Sun May 22 04:05:04 2011] [error] [client 127.0.0.1]   * log_warn("core cronjob "import_cleanup_old_imports" didn't g...") at /var/www/html/mahara/lib/cron.php:167

  Ran the cron manually twice to fix and backlog of emails sent out.

  I know the install says to run every minute but I wasn't expecting
  using a longer time would actually break the housekeeping activities.


References