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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • scheduled tasks failed following upgrade to 4.4.5
Pages: [1]

Author Topic: scheduled tasks failed following upgrade to 4.4.5  (Read 372 times)

ldgpangeo

  • I post occasionally
  • **
  • Posts: 38
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: drupal-7.17
  • MySQL version: 5.5.23
  • PHP version: 5.3.13
scheduled tasks failed following upgrade to 4.4.5
August 30, 2014, 04:44:17 pm
I've now upgraded three sites from civicrm 4.3.x to 4.4.5.  Two went fine with no complications.  The third went fine but no scheduled tasks work. 

They do not run from crontab and crontab reports no messages.
If I use a Unix shell command to run the same job, it completes with no errors but civicrm does nothing.
If I check the scheduled jobs web page, the needed jobs are all scheduled correctly.
    if I use "execute now" on that page, the job runs fine.
    I tried disabling the job and renabling the job -- it still does not run off the scheduler.
Manual inspection of the civicrm_job table shows each job properly configured and enabled.
I tried switching from cli.php to wget in the crontab job definition -- no change in above situation

Suggestions/recommendations on what to do to get the jobs running properly.


Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: scheduled tasks failed following upgrade to 4.4.5
August 31, 2014, 03:37:46 pm
We had this happen using drush. Adding -u=1 to the command fixed it ie

drush -u=1 cvapi job.execute

The problem was that without being resolved to a contact with 'view all contacts' permissions it was not sending civimails as the 'logged in contact' couldn't 'see' them. There is also an 'auth=0' param. I think it's no longer required but it doesn't get around the requirement for CiviCRM to think you are logged on as someone with permission to see all relevant contacts
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

ldgpangeo

  • I post occasionally
  • **
  • Posts: 38
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: drupal-7.17
  • MySQL version: 5.5.23
  • PHP version: 5.3.13
Re: scheduled tasks failed following upgrade to 4.4.5
August 31, 2014, 06:09:54 pm
Thanks,

I finally tracked it down by setting wget to verbose instead of quiet and testing from a second host.

Turns out I had to disable authenticating the ssl certificate.  Apparently when invoked from within the hosting service, the cert comes up as invalid while it's valid from the outside world.

Just one of those gottchas that never makes it into documentation since it's specific to certain hosting situations.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • scheduled tasks failed following upgrade to 4.4.5

This forum was archived on 2017-11-26.