Hi..

I have been working on a drupal site which depends highly on cron job as indexing is neede for site to work properly. Initially cron was running fine but after my client changed the server, problem aroused with cron job.

In status report..it shows cron not run for 1 week though i had set the cron job to run every hour. I tried to run it manually but always it comes"Cron run failed". I checked the log.it shows"trying to run cron while a cron a is already running". To solve it I deleted the 'cron_semaphore" and 'cron_last' from variable table. Then I tried to run cron manually but again same error"Cron run failed".
Then I cleared the index in search settings and run cron again and it worked fine. Then I set the command in control panel of server so that it can run every 5 minutes. It worked fine . Then set the intervel to 1 hour and it was working fine. But as indexing reaches to 94% it stucks and and when i tried running it manually, again same error "Cron run failed".
I tried same steps many times but same problem arouse.

Can anyone please help me out this problem...

Thank you in advance.

Comments

chinabruce’s picture

Have other logs such as access denied?

I think it related to the node or content permission.

skctek’s picture

There is no such log in log table.

Thank u

skctek’s picture

Error thrown in ...\sites\all\modules\luceneapi/lib\Zend\Search\Lucene\Storage\File\filesystem.pgp at line 66 in status report.

skctek’s picture

Error thrown in /home/bbot/public_html/home/sites/all/modules/luceneapi_dym/luceneapi_dym.module on line 366.

Error thrown in /home/bbot/public_html/home/sites/all/modules/luceneapi/contrib/luceneapi_node/luceneapi_node.index.inc on line 71.

The directory sites/default/files/luceneapi_node is not writable, because it does not have the correct permissions set.

chinabruce’s picture

The directory sites/default/files/luceneapi_node is not writable, because it does not have the correct permissions set.

This caused the cron stoped.

skctek’s picture

I am trying to set the premission but it gives message"Operation not permitted"..whiel I can change permission of other files except this one.

But still I have one question why it stops cron only after 96% of indexing.

skctek’s picture

Hi...

I have finally chnaged the permission successfully and after doin that warning messages at status report page has also been gone.

Now am reindexing the site and lets c what happen afetr 96% of indexing.....

Thank you for your support

skctek’s picture

still indexing stucked at 96%...and cron also not running.

To make the cron run I added "cron-control" module. After adding cron is running fine but still indexing stucked at 96%.I don't know why?

Please help me.

Thank u.
Sanjay