CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • problem with scheduled cron jobs in 4.3.5 with Drupal multi-site
Pages: [1]

Author Topic: problem with scheduled cron jobs in 4.3.5 with Drupal multi-site  (Read 6636 times)

jimmy_row

  • I’m new here
  • *
  • Posts: 23
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: Drupal 7.27
  • MySQL version: 5.5.37
  • PHP version: 5.4
problem with scheduled cron jobs in 4.3.5 with Drupal multi-site
August 06, 2013, 11:14:13 am
REcent update broke this, and it's not the password issue because I included it.  It's a multi-site Drupal set up, and it appears that the job tries to access civicrm.settings.php in the default directory, not in the proper site directory (and yes, I included -s 'nameofmydomain' at the end of the command).  Any ideas?

jimmy_row

  • I’m new here
  • *
  • Posts: 23
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: Drupal 7.27
  • MySQL version: 5.5.37
  • PHP version: 5.4
Re: problem with scheduled cron jobs in 4.3.5 with Drupal multi-site
August 12, 2013, 11:41:21 am
No one has any ideas?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: problem with scheduled cron jobs in 4.3.5 with Drupal multi-site
August 12, 2013, 12:50:10 pm
I don't but at least you shouldn't feel that no one is reading your posts. You may need to try to debug this yourself and see what's going wrong...
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: problem with scheduled cron jobs in 4.3.5 with Drupal multi-site
August 12, 2013, 05:14:44 pm
If u r willing to investigate and debug the code, folks can help u get started on irc

Lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

jimmy_row

  • I’m new here
  • *
  • Posts: 23
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: Drupal 7.27
  • MySQL version: 5.5.37
  • PHP version: 5.4
Re: problem with scheduled cron jobs in 4.3.5 with Drupal multi-site
August 13, 2013, 01:08:37 pm
thanks folks, but i'm not qualified for that.  i'll keep trying to figure something out, and will report if I can solve it.  but if no one else experiences a similar problem, then I suppose the problem is probably on my end.  the entire sites folder is symlinked to the home directory, but this didn't cause a problem before so I can't see why it would now

just curious, what is the preferred (best practice) method for running scheduled jobs?  is it my server's cron process or should I try the url method?  I see there is even a drupal module that will do this, maybe I'll try that...

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: problem with scheduled cron jobs in 4.3.5 with Drupal multi-site
August 13, 2013, 01:11:49 pm
Quote from: jimmy_row on August 13, 2013, 01:08:37 pm
just curious, what is the preferred (best practice) method for running scheduled jobs?  is it my server's cron process or should I try the url method?  I see there is even a drupal module that will do this, maybe I'll try that...

Cron and the URL method or the CLI method go together. You pick your method and then cron runs that for you.

Or use the module.

Which is preferred? Probably CLI or the module.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: problem with scheduled cron jobs in 4.3.5 with Drupal multi-site
August 13, 2013, 02:57:56 pm
Hi,

If symlinks, you probably needs to add a settings_location.php files in the root of your civicrm that contains

Code: [Select]
<?php
define
( 'CIVICRM_CONFDIR', '/var/www/yourdrupal/sites' );


and the cli cron should work fine.

This being said, I'm moving to using drush to call the api (so you don't need to provide any user info beside the id) and seems to work as well, but easier to maintain.

to be continued...

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Slovak

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 3
    • My website
  • CiviCRM version: 3.4.x, 4.2.x
  • CMS version: Drupal 6.x, 7.x
  • MySQL version: 5.5.29
  • PHP version: 5.3.10
Re: problem with scheduled cron jobs in 4.3.5 with Drupal multi-site
September 19, 2013, 08:36:13 pm
Quote from: xavier on August 13, 2013, 02:57:56 pm

This being said, I'm moving to using drush to call the api (so you don't need to provide any user info beside the id) and seems to work as well, but easier to maintain.

Can you expand on how to run the cron job via drush call to the api?

Slovak

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 3
    • My website
  • CiviCRM version: 3.4.x, 4.2.x
  • CMS version: Drupal 6.x, 7.x
  • MySQL version: 5.5.29
  • PHP version: 5.3.10
Re: problem with scheduled cron jobs in 4.3.5 with Drupal multi-site
September 19, 2013, 08:56:43 pm
Trial/error indicates this could be used to run all scheduled jobs:

Code: [Select]
drush example.org civicrm-api job.execute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • problem with scheduled cron jobs in 4.3.5 with Drupal multi-site

This forum was archived on 2017-11-26.