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 Drupal Modules (Moderator: Donald Lobo) »
  • Member Roles Sync: Cron fails repeatedly
Pages: [1]

Author Topic: Member Roles Sync: Cron fails repeatedly  (Read 1212 times)

mariagwyn

  • I post frequently
  • ***
  • Posts: 149
  • Karma: 4
  • CiviCRM version: CiviCRM 3.3.3
  • CMS version: Drupal 6.20
  • MySQL version: 5.2.14
  • PHP version: 5.0.91-50-log
Member Roles Sync: Cron fails repeatedly
February 24, 2011, 12:27:13 pm
Since I upgraded to 3.3.3 I am having a serious problem with using cron to sync my civi member status to my drupal roles.  If I run the sync with the cron, it fails.  If I manually sync, it also seems to fail (shows a page not found).  No drupal roles change.  They sync works only if I set it to do so when a user logs in/out.  The problem with this is that it is taking so long to perform the sync that users think the site is down/not working/they can't login, etc.  And sometimes, it appears to be throwing a 'page not found' error at them.

Is there a way to set it to run with a cron, but in smaller increments, say, 100 users at at time, and then just run it more frequently?  I really need this module to work, but since the upgrade, it is just very very slow.

Any help would be appreciated.
Maria

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Member Roles Sync: Cron fails repeatedly
February 24, 2011, 01:22:55 pm
Running the cron should not result in a 404 error.  My first thought is that there might be some kind of configuration problem on your site.   Sync on login should not take that long, I use it successfully on a site with hundreds of users and members. 

I would check the following:

1. PHP memory
2. Base_URL in settings.php and civicrm.settings.php
3. What are the errors in the error_log if any?
4. What's your hosting setup, is it a VPS or what?
5. What are errors in CiviCRM.log if any?


My second thought is that 3.3.5 has been released with many bug fixes.  Upgrade?
Try CiviTeacher: the online video tutorial CiviCRM learning library.

mariagwyn

  • I post frequently
  • ***
  • Posts: 149
  • Karma: 4
  • CiviCRM version: CiviCRM 3.3.3
  • CMS version: Drupal 6.20
  • MySQL version: 5.2.14
  • PHP version: 5.0.91-50-log
Re: Member Roles Sync: Cron fails repeatedly
February 25, 2011, 09:34:13 am
Right now, any process that takes too long is producing a 404 error.  My concern is why it is taking so long. 

So...

1.  PHP memory: 160 MB (I think)
2.  Base url in both is the same, http://scethics.org.  However, I do use a secure area for civi, so civi is actually at https://scethics.org/civicrm
3.  There are no php erros in the error log.  No errors anywhere.  That is part of the frustration is that I have no idea how to troubleshoot this.
4.  Shared server.  Sorry, this is a non-profit academic society, low budget.  Sigh.
5.  CiviCRM.log: I don't have any recent logs since I turned debugging off.  Is there a way I can test only this function?

Other crons (those in civicrm/bin) run on a regular basis without error.  Drupal crons run fine.  This one just kills it all (literally...yesterday half of the drupal side of the site disappeared after running this file, I had to restore a backup db).

Upgrading: because my client asked for a CC surcharge, which required hacking the core files, upgrading is a pain.  It took long enough to upgrade to 3.3.3, and I am a bit loathe to move to 3.3.5, though I might look into that today.  However, this should be working in 3.3.3, yes?

mariagwyn

  • I post frequently
  • ***
  • Posts: 149
  • Karma: 4
  • CiviCRM version: CiviCRM 3.3.3
  • CMS version: Drupal 6.20
  • MySQL version: 5.2.14
  • PHP version: 5.0.91-50-log
Re: Member Roles Sync: Cron fails repeatedly
March 09, 2011, 07:50:21 am
I am still having this problem, despite attempting a number of cleanup steps.

One thing I am noticing is that immediately upon running the sync manually, I get an error in the drupal log:
"CiviCRM contact not found for ..."

The problem is that the contact it cannot find is me, drupal/civi ID 1.  My account has both a drupal and civi side, they are fully linked.  Is it possible that it is not finding all the accounts, and therefore timing out with an error?

I really need help debugging this as this site has a deadline for submissions, and the ability to submit is based on the current member status in civi.  I am not seeing errors in civi debug (nothing is being written to drupal log or to civilog in /upload).  I am at a total loss, but this is causing many problems.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Member Roles Sync: Cron fails repeatedly

This forum was archived on 2017-11-26.