I have problem with the cron job. The problem is not on running it automatically (this will be the second step), but even to run it manually.
Both typing www.my_site/cron.php on the browser or running the cron tasks from the report page produce the same result:
Attempting to re-run cron while it is already running.
This morning I asked my ISP to restart the web server, in order to kill all running processes.
After that, I deleted the cron_semaphore and the cron_last from the variable table... as suggest by the post http://drupal.org/node/146551.
Then I ran again the cron job from the report page, but "Cron run failed" came again.
Now on the log I have (in chronological order - first before) the following errors:
- cron was running for more than one hour. Probably is blocked.
- array_keys() [function.array-keys]: The first argument should be an array in /workdisk/home/web/www.my-site.org/htdocs/includes/menu.inc nella riga 328.
- Wrong parameter count for min() in /workdisk/home/web/www.my-site.org/htdocs/includes/menu.inc nella riga 328.
Any suggestion?
Michele
Comments
check why it is failing?
check why it is failing?
you crontab entry should like like:
0 * * * * /path/to/wget -q http://www.mywebsite.com/path_to_drupal/cron.php
From the drupal documentation:
http://drupal.org/node/31549
=-=
After deleting cron_semaphore I tried to do the following.
I deactived all the modules, except those belonging to the core.
I typed www.my_site.org/cron.php on the browser.
As normally I have a blank page, but in the log I have the following message:
Attempting to re-run cron while it is already running.
Doing it different times, produces the same result.
After one hour the message on the logs become:
cron was running for more than one hour. Probably is blocked.
Anyway no cron task is exectuted.
I'm wondering if this is an ISP issue... but I've no idea how t investigate it.
Any suggestion ?
Thanks,
Michele
is it cron
causing the errors? I would doubt that any cron function is messing with menus. The already running and running for more than hour messages eventualy clear themselves on subsequent cron runs and cron then runs "normally". Point number 1 above is strange because you should have cleared the semaphores. Points 2 and 3 are both in menu.inc line 328. The function is menu_set_location(). If you search in files for this only taxonomy, forum, comment, book, blog, og .module and template.php (in garland theme) call that function (on my setup). I used agent ransack to do the search on win xp. I haven't checked to see if any of those calls are with the cron hook. You may have to try a process of elimination by disabling modules until you find out which module is causing the problem.
www.purpleoar.co.nz/scryptik - Javascript editor with syntax error checking
www.purpleoar.co.nz - Web development, Drupal consultancy
www.purpleoar.co.nz/scryptik - Javascript editor with syntax error checking
www.purpleoar.co.nz - Web development, Drupal consultancy
Could be some ISP related
Could be some ISP related problem?
I'm saying it because I have a trial site, with the same installed modules, running on a free ISP... there I have no problem at all regarding the cron job execution...