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) »
  • Importing contacts fails
Pages: [1]

Author Topic: Importing contacts fails  (Read 1280 times)

Ed van Leeuwen

  • I post occasionally
  • **
  • Posts: 68
  • Karma: 1
  • CiviCRM version: 4.7
  • CMS version: Drupal 7.x
  • MySQL version: MariaDB 10
Importing contacts fails
February 03, 2010, 06:07:23 am
I am trying to import (344) records based on the external ID. At the last step, the import fails at 87%, giving the following error:

Warning: MySQL server has gone away query: INSERT INTO drupal_watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (1, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:12:\"user warning\";s:8:\"%message\";s:103:\"MySQL server has gone away\nquery: SELECT role_id FROM drupal_civicrm_group_roles_rules WHERE group_id=2\";s:5:\"%file\";s:135:\"/usr/home/debxxxxx/domains/covs.org/public_html/sites/all/modules/civicrm/drupal/modules/civicrm_group_roles/civicrm_group_roles.module\";s:5:\"%line\";i:166;}', 3, '', 'https://www.covs.org/civicrm/import/contact', 'https://www.covs.org/civicrm/import/contact?_qf_Preview_display=true&qfKey=64c8cdcc84390b54a36f7d7159444d64', 'xx.xx.xx.xxx', 1265194885) in /usr/home/debxxxxx/domains/covs.org/public_html/includes/database.mysqli.inc on line 128

When using 3.0.2 this import succeeded. Other (larger in size, fewer in rows) files succeed as well. On the demo site, importing succeeds. I have tried to increment connection time, memory without any luck. I cannot change the max_input_time (forbidden by provider); could this solve this?

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Importing contacts fails
February 03, 2010, 06:33:41 am
This might be issue with your mysql server, so you should check with your server guys.

Kurund
Found this reply helpful? Support CiviCRM

tog22

  • I’m new here
  • *
  • Posts: 20
  • Karma: 0
  • CiviCRM version: CiviCRM 4
  • CMS version: Drupal 7
  • MySQL version: Varies
  • PHP version: Varies
Re: Importing contacts fails
November 11, 2011, 03:41:28 pm
my.ini and my.cnf have options including packet size - Google 'max packet size' and your error message for more.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Importing contacts fails
November 12, 2011, 10:25:24 am
Did you try running half of the rows at a time? If you can, run half twice and then you're done...
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • Importing contacts fails

This forum was archived on 2017-11-26.