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) »
  • Silent Import Error - Can't get to step 3 of contacts import (SOLVED)
Pages: [1]

Author Topic: Silent Import Error - Can't get to step 3 of contacts import (SOLVED)  (Read 1448 times)

copeasetic

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.3.5
  • CMS version: Drupal 6.x & 7.x
  • MySQL version: 5.5
  • PHP version: 5.3.27
Silent Import Error - Can't get to step 3 of contacts import (SOLVED)
September 24, 2013, 07:00:16 pm
This topic has come up before (http://forum.civicrm.org/index.php/topic,24704.0.html)  and no resolution was posted, I am hoping we can work to draft a solution as I know the community would benefit.

A bit of background on my system:
I have root access to a dedicated server with:
  • 16GB RAM
  • 8 XEON Processor Cores
  • Apache/2.2.25 - running in FastCGI mode
  • MySQL 5.5.32-cll
  • PHP v. 5.3.27 (cli)

I am running Drupal v7.23 and CiviCRM 4.3.5 on a new system. No additional contrib modules installed.
  • For testing purposes I have CiviCRM debug mode turned on
  • I have enabled Drupal watchdog logging
  • I have display backtrace enabled

Now for the details of my issue:

Every time I attempt to import more than approximately 750 contacts I am able to complete step 1 (telling it to import) and step 2 (mapping fields). After mapping fields I hit continue and my system "thinks" for about 10 to 15 seconds after which I am redirected back to step 1 like I was starting the process from the beginning.

No messages what-so-ever are written to the:
  • - Drupal Log
  • - /var/log/messages
  • - the MySQL logs
  • - /var/log/httpd/error_log
I mean it's like the transaction is not even happening.

I see the MySQL buffers fill (via phpMyAdmin's tools) but nothing is written to the logs.

It HAS to be a memory issue, well, that's my thinking. Like a buffer pool is filling up and when it reaches its max value it just dies, but I can't ID the process. This is KILLING ME!!!! I have a sneeking suspicion that I am missing some basic parameter, but I can't figure it out.

Can someone please provide me with some sizing/tuning advice?


I have included some (what I think are relevant) system settings. 

Relevant Apache Settings (I think)
RewriteEngine on
Timeout 300
<IfModule mod_fcgid.c>
    FcgidMaxRequestLen 1073741824
</IfModule>


Relevant PHP Settings (let me know if I am missing any)
max_execution_time = 600
max_input_time = 600
memory_limit = 2048M
upload_max_filesize = 1024M
default_socket_timeout = 60
mysql.connect_timeout = 60

MySQL Settings (I threw everything but the kitchen sink at MySQL):
  • innodb_file_per_table = 1
  • default-storage-engine = MyISAM
  • general_log
  • slow_query_log
  • key_buffer_size = 64M
  • query_alloc_block_size = 131072
  • wait_timeout = 3600
  • tmp_table_size = 512M
  • join_buffer_size = 64M
  • query_cache_limit = 64M
  • max_user_connections = 100
  • sort_buffer_size = 32M
  • thread_cache_size = 32
  • table_cache = 8193
  • query_cache_size = 128M
  • query_cache_type = 1
  • max_connections = 100
  • thread_stack = 256K
  • query_prealloc_size = 65536
  • long_query_time = 5
  • read_buffer_size = 2M
  • max_allowed_packet= 512M
  • bulk_insert_buffer_size = 32M
  • myisam_sort_buffer_size = 64M
  • connect_timeout=8
  • log-queries-not-using-indexes
  • open_files_limit=38004
  • log_slow_queries = yes
  • max_heap_table_size = 128M
  • table_open_cache = 16368
  • open_files_limit=38572

I LOVE CiviCRM and would like the ability to leverage the import tool and not have to run it from the command line (I need to train users on importing via the UI).

I am praying someone out there can see the trees through the forest and kick me in the right direction.

Thanks in advance for any insight.
« Last Edit: September 26, 2013, 09:27:30 am by copeasetic »

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: Silent Import Error - Can't get to step 3 of contacts import
September 24, 2013, 07:50:33 pm

have u tried using modphp instead of fastcgi. Might be worth doing a quick experiment and seeing if that gives u better results.

if it does, u've kinda narrowed it down to some apache <-> fastcgi config issue

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

copeasetic

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.3.5
  • CMS version: Drupal 6.x & 7.x
  • MySQL version: 5.5
  • PHP version: 5.3.27
Re: Silent Import Error - Can't get to step 3 of contacts import
September 24, 2013, 10:59:58 pm
My PHP handler options are:
- suphp
- dso
- fcgi
- cgi
- none

I am running fcgi for APC caching support.... I think I can run in dso, which is mod_php mode, and still get support for APC, which I am using for caching....
« Last Edit: September 25, 2013, 09:07:32 am by copeasetic »

copeasetic

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.3.5
  • CMS version: Drupal 6.x & 7.x
  • MySQL version: 5.5
  • PHP version: 5.3.27
Re: Silent Import Error - Can't get to step 3 of contacts import
September 24, 2013, 11:53:42 pm
Changing my handler to suPHP solved my issue!!!! Unreal, Lobo, thank you!!! I just imported 5,000 records in about 2 minutes! Nice! I'll let you know how 50K go!

In an effort to be a good "citizen" I am not going to simply reply "I solved my problem! Thanks!" and not leave an explanation as to what I did... So here goes...

Changing my handler to dso (mod_php) did not work for me because I can't allow apache to run as user "nobody". My server is running several virtual hosts, each running under it's own user account. Running in dso mode, albeit the fastest since it runs as an apache module - (so apache interprets it faster), doesn't work for me. I need php scripts to run under their respective users. So, I decided to run the suPHP handler, since it will run under each user.

On a side note, if I were running a single instance off this machine I would probably run the dso php handler....

I would like to understand why running the FastCGI failed. Does anyone have any idea why FastCGO fails?

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: Silent Import Error - Can't get to step 3 of contacts import
September 25, 2013, 07:23:33 am

cool, glad that worked and thx for reporting back

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) »
  • Silent Import Error - Can't get to step 3 of contacts import (SOLVED)

This forum was archived on 2017-11-26.