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) »
  • Unable to proceed from Mapping step to Preview step.
Pages: [1]

Author Topic: Unable to proceed from Mapping step to Preview step.  (Read 1577 times)

BrianV

  • Guest
Unable to proceed from Mapping step to Preview step.
June 10, 2010, 07:17:56 pm
Hi all. I've been trying to import into a fresh CiviCRM install, but I'm not having much luck. The import source is a database query pulling data from an ~8,000 row db table.

When I complete the mapping step, and click 'Continue', the httpd process jumps up to 100% CPU utilization, and sits there until PHP eventually times out, without ever making it to the preview step. While this is happening, it doesn't look like any queries are hitting MySQL. Also, there are no messages in the Apache error log file...

I have a fairly long PHP timeout set up - long enough that I was able to shower and return to my system before the script timed out.

I'd appreciate any thoughts on what's causing this - please let me know if there is any more information I can provide!

  • CiviCRM 3.1.5
  • Drupal 6.17
  • MySQL 5.0.77
  • PHP 5.2.10

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: Unable to proceed from Mapping step to Preview step.
June 10, 2010, 07:32:14 pm

any reason why u think its not making any queries? are u monitoring the query log?

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

BrianV

  • Guest
Re: Unable to proceed from Mapping step to Preview step.
June 10, 2010, 10:38:12 pm
Quote from: Donald Lobo on June 10, 2010, 07:32:14 pm

any reason why u think its not making any queries? are u monitoring the query log?

lobo


That was based on the observation that mysql never showed up on top. It could actually be making queries, but what I intended to convey was that the load was all in httpd, not mysql.

xcf33

  • I post frequently
  • ***
  • Posts: 181
  • Karma: 7
  • CiviCRM version: 3.3.2
  • CMS version: Drupal 6.19/6.20
  • MySQL version: 5.x
  • PHP version: 5.2.6
Re: Unable to proceed from Mapping step to Preview step.
June 11, 2010, 06:10:50 am
What LAMP environment are you running on?

Shared hosting?
Dedicated hosting?
localhost (wampp, xampp, etc)

The reason I ask is because my hosting environment does the same thing, it never gets to the preview stage if the import file is fairly large. If the import file is large enough I won't even be able to pass the first step of uploading the import file.

BrianV

  • Guest
Re: Unable to proceed from Mapping step to Preview step.
June 11, 2010, 06:11:56 am
Quote from: xcf33 on June 11, 2010, 06:10:50 am
What LAMP environment are you running on?

Shared hosting?
Dedicated hosting?
localhost (wampp, xampp, etc)

The reason I ask is because my hosting environment does the same thing, it never gets to the preview stage if the import file is fairly large. If the import file is large enough I won't even be able to pass the first step of uploading the import file.

I'm on a Rackspace clouds server. Note that this happens whatever setting I select for dupe checking.

Thanks for the responses so far, folks!
« Last Edit: June 11, 2010, 06:36:13 am by BrianV »

BrianV

  • Guest
Re: Unable to proceed from Mapping step to Preview step.
June 11, 2010, 07:48:08 am
OK, on dlobo's suggestion in chat, I tried limiting the number of rows for the import, and here's my observations:

When importing 200 rows, preview step came up immediately.
When importing 1000 rows, preview step came up after a few seconds
When importing 2000 rows, preview step came up after ~20 seconds.
When importing 4000 rows, preview step came up after 2 minutes.
When importing 8000 rows, preview step doesn't come up, even after 20 minutes.

Looks like the execution time is exponentially related to the number of rows imported.

xcf33

  • I post frequently
  • ***
  • Posts: 181
  • Karma: 7
  • CiviCRM version: 3.3.2
  • CMS version: Drupal 6.19/6.20
  • MySQL version: 5.x
  • PHP version: 5.2.6
Re: Unable to proceed from Mapping step to Preview step.
June 11, 2010, 09:15:25 am
Lol,

I'm on Rackspace as well,

This issue is well documented, it is not a timeout issue but a load balancer issue. Everything times out* (or actually just switches your site to another server node) after 30 seconds because if the load balancer does not receive any html outputs. To avoid that, I have used the cron and shell_exec to do a lot of processing to avoid this system restriction.

However, if you go into your database you should see that actually the process finishes running and you will have a temporary table created in your CiviCRM DB with all the records populated. This is because even if the load balancer switches you to another node* (server), the original node should still finish run whatever script that was processing.

It is because CiviCRM import process is a multistep process that's why it doesn't work for any big import,


Read my thread here
http://forum.civicrm.org/index.php/topic,13630.0.html

And my blog post
http://civicrm.org/blogs/xcf33/scaling-contact-import-process-civicrm-perspective-and-solution


Hopefully it helps

BrianV

  • Guest
Re: Unable to proceed from Mapping step to Preview step.
June 11, 2010, 10:25:58 am
Hey - thanks for the info. Actually, that's really helpful, although I finished the import about 10 minutes ago (by migrating the users in 2000-user chunks...)


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • Unable to proceed from Mapping step to Preview step.

This forum was archived on 2017-11-26.