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 Import (Moderator: Yashodha Chaku) »
  • import timeouts (fastcgi nginx) - can we be cleverer about stopping them?
Pages: [1]

Author Topic: import timeouts (fastcgi nginx) - can we be cleverer about stopping them?  (Read 1113 times)

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
import timeouts (fastcgi nginx) - can we be cleverer about stopping them?
March 14, 2012, 12:40:12 pm
Hey there,

Was doing an import via the UI (ooh, crazy, I know, but) and I was getting timeout issues.

So I increased the fastcgi_read_timeout from 60 to 600.

My script then timed out at about 80%.

So then I increased the fastcgi_read_timeout from 600 to 6000 (aka 100 minutes - I don't reckon I'll be doing any UI imports that last longer than that).

When I was looking at the http://wiki.nginx.org/HttpFcgiModule#fastcgi_read_timeout docs, I saw that the docs say

"Directive sets the amount of time for upstream to wait for a fastcgi process to send data. Change this directive if you have long running fastcgi processes that do not produce output until they have finished processing. If you are seeing an upstream timed out error in the error log, then increase this parameter to something more appropriate."

The bit that stuck out was "that do not produce output".  I am wondering if we can get our import script to ping back periodically to stop this happening. Thus allowing us to not worry about setting a setting like 100 minutes which seems a bit risky.
My nginx config is as follows:
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

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: import timeouts (fastcgi nginx) - can we be cleverer about stopping them?
March 14, 2012, 01:31:58 pm

import is actually two processes:

1. The one on the web, which periodically uses an ajax script to go to the web and refresh the status

2. A background AJAX initiated process which does the import and periodically writes the status file which the browser ajax process reads

would be great if you'll can experiment with a similar setup (using sleep etc) and see what needs to be done

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 Import (Moderator: Yashodha Chaku) »
  • import timeouts (fastcgi nginx) - can we be cleverer about stopping them?

This forum was archived on 2017-11-26.