Cron run failed error in Drupal 6

Mar 14th, 2012 | By | Category: Internet, Linux / Freebsd

So I encountered this problem today and thought I’d share the solution.  So this is most likely going to happen to you on a shared server where your procs get killed if they are running hot for too long. The server where I host my drupal site is one of these and I my happens to be a little aggressive with this kind of thing.  So what happens is that you run the cron, it takes 10-30 seconds and then the proc gets killed by the server but no one remembers to tell drupal and it gets left out of the loop.

It’s kind of like a group of friends telling someone that they’re going out tonight and that they’ll swing by around 7 to pick them up.  Well 7 rolls around and the group of friends completely forget about picking him up, so he just waits and waits.  Other friends call him and ask him if he wants to do something but he says no cause he’s waiting for these guys to pick him up but no one shows up so he just keeps on waiting.. except if this friend was drupal he’d wait for all of eternity! What you have to do is drug and hypnotize the friend so that he forgets he was ever going out with those douchbags.

This is what we’re doing to drupal.  Go into mysql and use the database your drupal install is running off of. Then just type:

DELETE FROM variable WHERE name=”cron_semaphore”;
DELETE FROM variable WHERE name=”cron_last”;

You could use phpmysql(but I’ll make fun of you for it) and go find those variables and delete em.

That’s it, problem solved, now go and run your cron again so it can go out, get drunk and hopefully laid.

Tags: , , , , , ,

Leave a Comment