Cron is running for hours - what to do?

TheProf - January 19, 2009 - 03:46

Hello,

I hope everyone is doing well.

I have a clean installation of Drupal 6.9 with no traffic yet. I'm hoping to get it launched this week so I'm concerned that this will prevent that. The error I'm getting is:

"Cron has been running for more than an hour and is most likely stuck."

Based on what I can tell from the reports, it runs for 3 or 4 hours. There really isn't any content on the site yet! Just a shell. What should I do to debug / resolve this?

I have the following modules installed (other than core):

Cache browser, CCK, Bible, Counter, SpamSpan, Tag Editor, Brilliant Gallery, Backup & Migrate, Cache Disable, DHTML Menu, Favicon, Format Number API, Guestbook, IMCE, Lightbox2, Video Filter, Panels, Printer-friendly-pages, CAPTCHA, Google Analytics, Tagadelic, and Views.

Thank you

Hi, How you are running the

eotinfotech - January 19, 2009 - 04:01

Hi,

How you are running the cron ?

Our suggestion to use http://drupal.org/project/poormanscron for the auto corn running.

1. You can set the time
2. It run the cron for one module at a time, (this reduce load on the website) IMP FEATURE
3. We removed the system cron, from cpanel or plesk, whcih decrease the load from the server itself.

We are using this for all the website, and we are more comfortable on it. Write us for any more questions.

Regards, and Have a nice day.

Prachait Saxena
---------------------------
(M) :- +91 9953 200 299
(W) :- http://www.eotinfotech.com/

Cron

TheProf - January 19, 2009 - 16:23

Hello,

Thank you for your reply!

My site is hosted on dreamhost, so I have command line access. To that end I am running crond with the following line (from crontab -l

0 * * * * /usr/bin/wget http://www.mydomain.com/cron.php

I thought running it this way would be better as I'm using the server's cron itself.

What do you think?

Thank you.

 
 

Drupal is a registered trademark of Dries Buytaert.