Drupal Help Needed

  • warning: Creating default object from empty value in /home/buckman/public_html/neo/modules/advanced_forum/advanced_forum.module on line 492.
  • warning: Creating default object from empty value in /home/buckman/public_html/neo/modules/advanced_forum/advanced_forum.module on line 492.
  • warning: Creating default object from empty value in /home/buckman/public_html/neo/modules/advanced_forum/advanced_forum.module on line 492.
  • warning: Creating default object from empty value in /home/buckman/public_html/neo/modules/advanced_forum/advanced_forum.module on line 492.
  • warning: Creating default object from empty value in /home/buckman/public_html/neo/modules/advanced_forum/advanced_forum.module on line 492.
Matt Barton's picture

Hi, folks. We need your help. Drupal has been giving us issues for a few weeks now, and I can't figure out how to solve it. I know there are some good folks here with this kind of stuff, so I thought I'd just bring this up in my blog and see if anyone is willing to help.

In a nutshell, we can't run cron. When we try, we get "cron job failed." Persisting sometimes leads to an internal server error. Drupal's log reports "Cron has been running for more than an hour and is most likely stuck" or that it's already running.

I've done a lot of research on this and tried the stuff I found on various forums and websites, such as clearing the caches, deleting semaphore variables, and empty out cache tables manually in the database. Nothing has worked.

If anybody has thoughts or expertise with stuff like this, please speak up. None of us are professionals at this and we need help to keep it running.

Comments

gilgamesh (not verified)
crond

Cron has nothing to do with drupal in particular. It is an Unix daemon, meaning that it is a program of the OS executing background jobs on a regular basis. There's something wrong with your server. Firstly you should try to restart crond. If you don't know how to do that restart the server *yuck*.

Cron executes tasks. It might me cron gets stuck, e.g. because disk space is low. It might as well be that one task cron should execute is misconfigured, e.g. drupal. You should consult the system's global error logs to see if there is some hint on what is going wrong.

gilgamesh (not verified)
Btw, crond is automatically

Btw, crond is automatically respawned every time it gets killed. No wonder you can't run it.

Matt Barton
Matt Barton's picture
Offline
Joined: 01/16/2006
Thanks, Gilgamesh! We're on a

Thanks, Gilgamesh!

We're on a managed server, so no way I can reset it myself. I looked into trying to restart cron from the host's cpanel pages, but didn't find it. As far as I can tell, it's setup to run once per day. We haven't changed anything in Drupal, so I don't know it would just suddenly start acting up. We have had problems with mysql and the host occasionally takes us down for exceeding connections or some such.

The fact is, none of us really know what the heck we're doing here. IMO, we shouldn't have to be experts, since we're just running a default Drupal installation...! Grr.

n/a
Matt Barton
Matt Barton's picture
Offline
Joined: 01/16/2006
Here's an example of the

Here's an example of the mysql error some people are getting when they try to post comments:

Service unavailable
Warning: MySQL server has gone away query: dblog_watchdog /* Anonymous : dblog_watchdog */ INSERT INTO watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:12:\"user warning\";s:8:\"%message\";s:2420:\"MySQL server has gone away\nquery: dblog_watchdog\n/* Anonymous : dblog_watchdog */ INSERT INTO watchdog\n (uid, type, message, variables, severity, link, location, referer, hostname, timestamp)\n VALUES\n (0, 'antispam', '%message<p>Additional information:</p>%items', 'a:2:{s:8:\\"%message\\";s:51:\\"Spambot detected (action: 503 Service unavailable).\\";s:6:\\"%items\\";s:1528:\\"<div class=\\"item-list\\"><ul><li class=\\"fi in /home/buckman/public_html/neo/includes/database.mysql.inc on line 135

n/a
gilgamesh (not verified)
MySQL Max Allowed Packet Size

Queries can get so big that MySQL refuses to process them. This might be a solution
http://drupal.org/node/186384#comment-284542

mombibia (not verified)
moncler

get cheap moncler outlet ErEUvOpj [URL=http://monclerjacketswomen.metroblog.com/ - moncler store[/URL - at my estore woTmxCun http://monclerjacketswomen.metroblog.com/

Matt Barton
Matt Barton's picture
Offline
Joined: 01/16/2006
I tried disabling those

I tried disabling those modules they talk about (syslog, database logging, and update status), but just got a 500 internal server error when I tried to run cron again.

n/a
gilgamesh (not verified)
my.ini

You don't have access to my.ini? Otherwise I'd try
-------------------------------------
[mysqld]
max_allowed_packet=24M
-------------------------------------
first.

Matt Barton
Matt Barton's picture
Offline
Joined: 01/16/2006
We don't have access to it.

We don't have access to it.

n/a

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.