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 »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Update membership job not completing in cron
Pages: [1]

Author Topic: Update membership job not completing in cron  (Read 1374 times)

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Update membership job not completing in cron
June 14, 2012, 05:24:16 am
The job 'Update Membership Statuses and Send Renewal Reminders' starts, but does not complete when run by cron.  I get a 'Starting' message but nothing else and no processing appears to be done.   However, if I submit the job manually it works just fine. with a 'Finished' message as well.

This is in 4.1.3.  Looks like a bug....  any suggestions as to the next step?
Andy Clark

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Update membership job not completing in cron
June 14, 2012, 07:35:14 am
are you sending your UpdateMembershipRecord.php cron output anywhere to see if it's hitting an error?

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: Update membership job not completing in cron
June 14, 2012, 09:05:57 am
Thanks for the advice.  Here's some output from the cron job, which obviously shows a problem.

"Fatal error:  Call to undefined function module_exists() in /home/maadmino/public_html/test/sites/all/modules/civicrm/CRM/Core/BAO/Navigation.php on line 612"

So it works when run from the screen ('Execute now') but crashes with the above when run by cron.   Should I submit this as a bug?
Andy Clark

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Update membership job not completing in cron
June 14, 2012, 09:46:43 am
looks like it may be related to this issue: http://issues.civicrm.org/jira/browse/CRM-9857

can u see if you run the cronjob as user 1 if it works? also try checking all the civi related permissions for your civi cron user and see if that fixes it and then go back through permissions 1 by 1 to see which is the trigger.

there is also an issue on the forum here that sounds the same: http://forum.civicrm.org/index.php?topic=23450.0

let us know which fixes it.

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: Update membership job not completing in cron
June 14, 2012, 01:09:53 pm
Thank you for your help with this.

I ran with user 1 as you suggested and it worked OK!  ???   The user I was running with had a role assigned of 'Civiuser' and has permissions for everything.  User 1 does not have that role, but of course is a superuser (sort of).

So what's going on here?  Why do my other jobs work ok with the 'Civiuser' role, but not the membership update job?  This certainly seems to be the same as http://issues.civicrm.org/jira/browse/CRM-9857
Andy Clark

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Update membership job not completing in cron
June 14, 2012, 01:20:37 pm
not sure but i added this post as another reference to the issue -- you can watch that issue on jira to stay updated with it.

Neil Adair

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 4
  • CiviCRM version: 4.5.8
  • CMS version: Drupal 7
  • MySQL version: MariaDB 10
  • PHP version: 5.5 FPM
Re: Update membership job not completing in cron
June 15, 2012, 07:56:30 am
I've also run into this bug since updating to 4.1.1
Using the wget method to run cron with a Drupal 6 site. CiviMail cron has been working fine but CiviMember update status has been starting but not finishing. Runs fine when initiated manually as user 1.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Update membership job not completing in cron
June 28, 2012, 07:03:29 pm
Just to confirm the previous comment - we only experienced this on one job - CiviMember update status. All others ran fine

I can't see why although the function has a require_once on api.php which should not be necessary if Civi is initiated
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

Neil Adair

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 4
  • CiviCRM version: 4.5.8
  • CMS version: Drupal 7
  • MySQL version: MariaDB 10
  • PHP version: 5.5 FPM
Re: Update membership job not completing in cron
September 04, 2012, 03:42:41 pm
It seems that despite the messages upon running Update membership status manually it is not working fully. Reminder emails are being sent but membership statuses are not being updated. Any ETA on CiviCRM 4.1.6?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Update membership job not completing in cron

This forum was archived on 2017-11-26.