Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
On my live site the only way I can get cron to run is to do it manually even though I have the crontab set to 1 hour - this causes problems with search as the site is not being indexed on a regular basis . As I have additional modules which I thought might be causing problems I decided to test the cron by creating a vanilla open outreach site using Pantheon, check the cron and then add in the additional modules.
I set the vanilla site's cron tab to 1 hour but it is behaving in exactly the same way - cron only runs if I do it manually.
Is there something I am missing?
Comments
Comment #1
nedjoWhen you config cron at admin/config/system/cron, a user must visit the site after the cron period has passed. See documentation for Drupal 7 here: http://drupal.org/cron. If you are having issues, you can consult the log for any error messages.
Comment #2
alicemoon CreditAttribution: alicemoon commentedyes I read the cron documentation.
Cron does not appear to run on either the live site (regular visits by users) or the test vanilla site (I have two users created to test it) - both sites have crontab set to 1hour.
I can get cron to run via admin/config/system/cron and click the run cron button - then I get a log message to say that cron has run successfully - I get no cron log messages other than that and no errors relating to cron.
Comment #3
alicemoon CreditAttribution: alicemoon commentedI have managed to get crontab to run on the live site using c-panel and curl as my hosting service prevents wget and lynx.
However I could not identify why cron was not triggered when a user visited the site - I had no error messages in the log and it ran fine if I did it manually - this was true for both the live and test site.
A vanilla drupal 7 site runs cron as it should but with the vanilla openoutreach the cron is not triggered by a user visiting the site
Comment #4
firesidelibrarian CreditAttribution: firesidelibrarian commentedI am experiencing the same problem on 7.x-1.2
Comment #5
edubacco CreditAttribution: edubacco commentedI have exactly the same problem on my site, both in production site, visited by many people everyday and in development site.
I've installed the openoutreach-7.x-1.1 version.
I've also installed these modules:
Edit: cron is set to automatically update every hour
Comment #6
edubacco CreditAttribution: edubacco commentedUpdated priority to major, because more people experience this issue, and cron is important for the site healt.
Comment #7
thangarajks CreditAttribution: thangarajks commentedhttps://drupal.org/node/1677640
Comment #8
firesidelibrarian CreditAttribution: firesidelibrarian commentedIn response to #7, I have used my web host to set a regular cron run, but that does not seem to trigger the indexing needed.
Comment #9
fr34ck CreditAttribution: fr34ck commentedI have the same issue.
The #7 don't resolve, like the #8 i have used my web hosting to set the cron.
Comment #10
firesidelibrarian CreditAttribution: firesidelibrarian commentedIs there a fix for this issue any time soon?
Comment #11
ergonlogicThis issue is categorized as a 'support request'. This implies that work-arounds and other suggestions are the appropriate deliverables. If you feel this is a bug in Open Outreach, then I suggest updating the category to 'bug report'.
Comment #12
nedjoIt appears that, at least on some Open Outreach sites, the 'install_task' variable is not properly set to 'done' when installation is completed. This prevents cron running. See system_run_automated_cron() for the relevant code.
To fix the issue on a given site, set the variable to the expected value. For example, you could do one of the following:
, and submit.
drush vset install_task done
.$conf
section:If you try this, please report back here as to whether it's fixed the issue on your site.
I'll look into fixing this in Open Outreach and adding an update for existing sites.
Comment #13
nedjoI edited comment #12 to correct an error, so if you try the fix be sure to get the corrected version in #1897076-12: Cron not running.
Comment #15
edubacco CreditAttribution: edubacco commentedI used the fix in #12, point 3, and worked for me.
Comment #16
nedjoComment #18
stevenx CreditAttribution: stevenx commented#12 worked for me too