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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Greeting updater errors with timeout
Pages: [1]

Author Topic: Greeting updater errors with timeout  (Read 1197 times)

questions

  • I post occasionally
  • **
  • Posts: 79
  • Karma: 2
  • CiviCRM version: 4.4.6
  • CMS version: Durpal, 7
  • MySQL version: 5.1
  • PHP version: 5.3
Greeting updater errors with timeout
September 24, 2013, 07:27:00 pm
I updated to the current version and now I can't get the greeting processor to finish.

First it errors Maximum execution time of 30 seconds exceeded.  It complains about our custom hooks file.  Why is it even running that file?  The custom hooks only have hooks for email processing and they work fine for that.  Or if it goes there because there might be a hook for greeting processing, how do I tell it these hooks aren't for you?

So in test, I disabled the custom hooks module and tried again.  Then it failed with max execution time in sites/all/modules/civicrm/CRM/Contact/BAO/Query.php on line 589

I bumped up the php_value max_execution_time in php.ini to 600.  I got it to complete.

I enabled the custom hooks module again, it fails.  Bumped the timeout to 900 and then 1800.  Still fails, well I think it fails.  The gateway times out so I don't see the failure message from civi and the job log only shows that the job started.  It never gets the completion.  I'm not sure why it isn't logging the failures.

How does one monitor these jobs when they are running?  Is there some process I should see on the server (probably some generic php that's impossible to figure which one is for what).  Is there some level of debug I can turn on to see what it's doing?


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: Greeting updater errors with timeout
September 24, 2013, 07:49:36 pm

The hook system is not smart enough to figure out what module / file implements which specific hooks (as yet, will change when we move to a new architecture)

You'll need to monitor the PHP process running on the system. a long listing might give you more clues. If the process dies / is aborted, the code does not get control to log anything

at least in this case seems like u've narrowed it down to something custom module and/or something that is triggered because it is involved

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

questions

  • I post occasionally
  • **
  • Posts: 79
  • Karma: 2
  • CiviCRM version: 4.4.6
  • CMS version: Durpal, 7
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Greeting updater errors with timeout
September 24, 2013, 08:18:06 pm
I'm not sure where to go from here.  The custom hook is just creating some tokens.  One of the queries goes against civicrm_contact.  I'm not sure what it's really doing.  Is it trying to create the tokens for each contact it is processing the greeting for?

I only import contacts once or twice a year, which leads to needing to run this (imho, the import process should really run greeting stuff on the contacts it imports), so I suppose, I could just disable the hook, run the updater and then reenable the hooks.  We only use the hooks for mailing a few times a year, so I suppose I could leave them disabled most of the time.

Any idea if other processes grind through them needlessly, i.e. would I see any performance improvement by only enabling when we send out email that needs them?

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: Greeting updater errors with timeout
September 24, 2013, 08:38:18 pm

sorry, no idea what your custom code does without looking thru the code and analysing it.

For now, i suspect your best bet might be to just disable the hooks while u do the import since u only do it a couple o times a year

if your org can afford to sponsor import improvements and optimizations, that would be great. its a bit hard to improve import since its not used too often by most orgs

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Greeting updater errors with timeout

This forum was archived on 2017-11-26.