"Cron run failed"

NancyDru - May 24, 2007 - 15:37
Project:Drupal
Version:7.x-dev
Component:base system
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

The message that Cron run failed should, IMHO, be at least a warning level message not just a notice level.

The real problem is Attempting to re-run cron while it is already running. But it is not running, and has not run in over 3 days.

If it matters: Drupal 5.1 running on Windows XP (SP2), Apache/2.2.3 (Win32) mod_ssl/2.2.3 OpenSSL/0.9.8d PHP/5.2.0 mod_perl/2.0.3-dev Perl/v5.8.8, MySQL database/5.0.27

#1

catch - May 24, 2007 - 18:15

There's currently no way to fix this without doing:

DELETE FROM `variable` WHERE name = 'cron_semaphore';
DELETE FROM `variable` WHERE name = 'cron_last';

It'd be good to have a "restart cron" button which does this somewhere - maybe in /admin/logs/status next to "run cron manually".

#2

NancyDru - May 24, 2007 - 20:54

Yes, I did this. The "problem" is Update_Status and the length of time it takes it get data from DO.

BTW, I also added a check for this condition in my Site Documentation module.

#3

catch - May 24, 2007 - 21:17

/wonders if drupal.org slowness has anything to do with update status. Haven't checked out your site documentation module yet, but it looks interesting.

#4

NancyDru - May 24, 2007 - 21:27

This feature has not been committed yet.

#5

NancyDru - May 31, 2007 - 15:26
Status:active» fixed

The problem has not recurred since the big update and table moves. And I know how to fix it easily, so I'm closing this.

#6

Anonymous - June 14, 2007 - 15:56
Status:fixed» closed

#7

gdtechindia - July 19, 2008 - 12:12

even after deleting the values from variables table, Cron failed to run for my site.

DELETE FROM `variable` WHERE name = 'cron_semaphore';
DELETE FROM `variable` WHERE name = 'cron_last';

#8

NancyDru - July 19, 2008 - 16:41

try clearing the cache

#9

gdtechindia - July 20, 2008 - 10:09

it worked for me after trying for many times.

running the command.

restarting apache

and clearing cache

#10

MikeyLikesIt - July 29, 2008 - 02:09

I was getting this error for over an hour (thought waiting for the process to finish might help, but didn't seem to). So, I searched and found this issue and this article: http://www.mojahmedia.net/drupal-cron-run-failed-cron-busy-probably-stuc..., which has more details, that I haven't tried yet.

The first thing that is mentioned here and there:

DELETE FROM `variable` WHERE name = 'cron_semaphore';
DELETE FROM `variable` WHERE name = 'cron_last';

seemed to fix everything.

Thanks

#11

filip_tc - September 9, 2008 - 01:19
Version:5.1» 7.x-dev
Status:closed» active

Bumping this thread because I ran over the same problem with D6. This needs something like in #1 (or a *real* fix). This is especially confusing for novice users.

Setting version status to 7.x-dev for discussing about this functionality to getting included, and for drawing attention to the subject which is not so trivial as one may think (broken cron is serious). Cheers.

#12

nmashruwala - September 16, 2008 - 20:44

Same symptoms as everyone else.

Fixed by disabling the Search module.

As a suggestion, instead of printing only "Cron run failed", some sort of error information would be helpful as it seems cron can break in a few different ways.

 
 

Drupal is a registered trademark of Dries Buytaert.