Attempting to re-run cron

Joined: 05/18/2007

ok, There's been a number of posts at Drupal.org but no real solutions to this problem so I was hoping someone here might know the answer...

Drupal 5.1 - I can no longer run the cron.php without getting this error in the logs:

"Attempting to re-run cron while it is already running."

I've tried removing the cron_semaphore entries in the variables table as well as disabling modules I thought might cause the problem like status_update - with no luck.

Anyone run into this problem?

Thanks for any pointers!

/keith

G&G Podcast Host
Matt Farina's picture
Joined: 06/01/2006
logs?

In the logs are there any entries like "Cron run completed." or "Cron has been running for more than an hour and is most likely stuck."

The message you get says that cron is already running from something else. The message "Cron has been running for more than an hour and is most likely stuck." is what you get when it goes running for too long and if cron runs are being completed it should record "Cron run completed."

Are there any of these other messages in the log?

Matt Farina
Geeks and God Co-Host
www.mattfarina.com

Matt Farina
Geeks and God Former Co-Host
www.mattfarina.com

Joined: 05/18/2007
Yes, the last good cron run

**UPDATE - I finally got it working!

I played around with the common.inc file - I copied and pasted variable_set('cron_last', time()) to the beginning of the drupal_cron_run() function and re-ran cron.php and although I still recieved a few of the errors below, I saw newsletters start coming in and finally got a good cron run...

/kp

----------------
Yes, the last good cron run was on 9/17 and its been messed up since with a few different messages depending on how often I tried to re-run it:

Cron run exceeded the time limit and was aborted
Cron run exceeded the time limit and was aborted. Attempting to re-run cron while it is already running.

I believe this is in the database somewhere but even after deleting the cron_semaphore from the variable table as explained elsewhere on Drupal.org, I still get the same error. This is a site that uses the simplenews module for a newsletter and it's really put a cramp in things...

Any ideas on what I can do to free this up?

It looks like the offending code is in includes directory in the common.inc file but I'm not sure how to work around it.

Thanks!

G&G Podcast Host
Matt Farina's picture
Joined: 06/01/2006
upgrade

Since you are on 5.1 I'd upgrade and see if the issue is fixed in the bug fix release 5.2.

Matt Farina
Geeks and God Co-Host
www.mattfarina.com

Matt Farina
Geeks and God Former Co-Host
www.mattfarina.com

Joined: 05/18/2007
Good advice - I'm planning

Good advice - I'm planning on doing that as well. On another note - I'm glad you guys are back from your hiatus - I look forward to listening to your podcasts. :-)

Thanks again!

/kp