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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Drush job execution broken on 4.5.4?
Pages: [1]

Author Topic: Drush job execution broken on 4.5.4?  (Read 637 times)

lee.gooding

  • I post occasionally
  • **
  • Posts: 83
  • Karma: 1
    • Clear River Church
  • CiviCRM version: 4.5
  • CMS version: Drupal 7
  • MySQL version: 5.7
  • PHP version: 5.3
Drush job execution broken on 4.5.4?
November 25, 2014, 12:11:34 pm
The day that I updated to 4.5.4 (from 4.5.3) all of my drush cronjobs stopped working. I'm using the drush method described here: http://wiki.civicrm.org/confluence/display/CRMDOC/Managing+Scheduled+Jobs

When attempting to run the job manually I get the following error:
Quote
Command civicrm-api needs the following module(s) enabled to run: civicrm.                                                                                                                                                                                          [error] The drush command 'civicrm-api job.execute auth=0' could not be executed.

Obviously civicrm is enabled. I verified this with drush pm-list, which shows civicrm as enabled. All logs show the scheduled jobs working fine up until the update.

Can someone else test this and verify? Clearly I can't do this on the demo site. Thanks!

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Drush job execution broken on 4.5.4?
December 01, 2014, 09:55:17 am
I tried and it worked for me on 4.5.4

Quote
michael@xps13:~/Sites/civicrm-website-org/drupal$ drush -u 1 civicrm-api job.disable_expired_relationships auth=0 -y
Array
(
    [is_error] => 0
    [version] => 3
    [count] => 1
    [values] => 1
)

michael@xps13:~/Sites/civicrm-website-org/drupal$ drush -u 1 civicrm-api job.execute auth=0 -y
Array
(
    [is_error] => 0
    [version] => 3
    [count] => 1
    [values] => 1
)
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: Drush job execution broken on 4.5.4?
December 02, 2014, 10:22:42 am
same issue on 4.5.2 - very strange.  also failed with --strict=0.

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: Drush job execution broken on 4.5.4?
December 02, 2014, 10:27:13 am
Worked after 'drush cc all'

lee.gooding

  • I post occasionally
  • **
  • Posts: 83
  • Karma: 1
    • Clear River Church
  • CiviCRM version: 4.5
  • CMS version: Drupal 7
  • MySQL version: 5.7
  • PHP version: 5.3
Re: Drush job execution broken on 4.5.4?
December 03, 2014, 01:05:07 pm
I can confirm that 'drush cc all' fixes the issue.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Drush job execution broken on 4.5.4?

This forum was archived on 2017-11-26.