Answers.Body: <p>As per comments the problem was an address standardization provider lookup failing.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-11-16T12:22:55.747Z
Answers.LastActivityDate: 2021-11-16T12:22:55.747Z
Answers.UserDisplayName: Demerit
Body: <p>I recently updated CiviCRM in Drupal 7 from version 5.17.3 to 5.42.1</p>
  <p>Now when I try to import contacts, I get to final step and click &quot;import now&quot;. After a few seconds that I see the popup with &quot;importing records&quot; I get the following error:</p>
  <p>cURL error 6: Could not resolve host: 320RK93TB985 (see <a href="https://curl.haxx.se/libcurl/c/libcurl-errors.html" rel="nofollow noreferrer">https://curl.haxx.se/libcurl/c/libcurl-errors.html</a>)</p>
  <pre><code>    #0 /mnt/www/html/vitintranetp3xtagv7qp/docroot/sites/all/modules/contrib/civicrm/CRM/Contact/Import/Parser/Contact.php(1587): civicrm_api3(&quot;Contact&quot;, &quot;create&quot;, (Array:17))
  #1 /mnt/www/html/vitintranetp3xtagv7qp/docroot/sites/all/modules/contrib/civicrm/CRM/Contact/Import/Parser/Contact.php(633): CRM_Contact_Import_Parser_Contact-&gt;createContact((Array:13), (Array:36), &quot;4&quot;, NULL, TRUE, &quot;1&quot;)
  #2 /mnt/www/html/vitintranetp3xtagv7qp/docroot/sites/all/modules/contrib/civicrm/CRM/Contact/Import/Parser.php(196): CRM_Contact_Import_Parser_Contact-&gt;import(&quot;4&quot;, (Array:25), NULL)
  #3 /mnt/www/html/vitintranetp3xtagv7qp/docroot/sites/all/modules/contrib/civicrm/CRM/Contact/Import/ImportJob.php(233): CRM_Contact_Import_Parser-&gt;run(&quot;civicrm_tmp_d_dflt_68a71677e392d1db8155657ca45c97c2&quot;, (Array:22), 8, 1, &quot;_id&quot;, &quot;_status&quot;, &quot;4&quot;, &quot;0ea8ff7d03ae43f35391c591657e5d6a&quot;, 16, NULL, 30, NULL, &quot;1&quot;)
  #4 /mnt/www/html/vitintranetp3xtagv7qp/docroot/sites/all/modules/contrib/civicrm/CRM/Contact/Import/Form/Preview.php(254): CRM_Contact_Import_ImportJob-&gt;runImport(Object(CRM_Contact_Import_Form_Preview))
  #5 /mnt/www/html/vitintranetp3xtagv7qp/docroot/sites/all/modules/contrib/civicrm/CRM/Core/Form.php(527): CRM_Contact_Import_Form_Preview-&gt;postProcess()
  #6 /mnt/www/html/vitintranetp3xtagv7qp/docroot/sites/all/modules/contrib/civicrm/CRM/Core/StateMachine.php(144): CRM_Core_Form-&gt;mainProcess()
  #7 /mnt/www/html/vitintranetp3xtagv7qp/docroot/sites/all/modules/contrib/civicrm/CRM/Core/QuickForm/Action/Next.php(43): CRM_Core_StateMachine-&gt;perform(Object(CRM_Contact_Import_Form_Preview), &quot;next&quot;, &quot;Next&quot;)
  #8 /mnt/www/html/vitintranetp3xtagv7qp/docroot/sites/all/modules/contrib/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Next-&gt;perform(Object(CRM_Contact_Import_Form_Preview), &quot;next&quot;)
  #9 /mnt/www/html/vitintranetp3xtagv7qp/docroot/sites/all/modules/contrib/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller-&gt;handle(Object(CRM_Contact_Import_Form_Preview), &quot;next&quot;)
  #10 /mnt/www/html/vitintranetp3xtagv7qp/docroot/sites/all/modules/contrib/civicrm/CRM/Core/Controller.php(352): HTML_QuickForm_Page-&gt;handle(&quot;next&quot;)
  #11 /mnt/www/html/vitintranetp3xtagv7qp/docroot/sites/all/modules/contrib/civicrm/CRM/Core/Invoke.php(313): CRM_Core_Controller-&gt;run((Array:3), NULL)
  #12 /mnt/www/html/vitintranetp3xtagv7qp/docroot/sites/all/modules/contrib/civicrm/CRM/Core/Invoke.php(69): CRM_Core_Invoke::runItem((Array:13))
  #13 /mnt/www/html/vitintranetp3xtagv7qp/docroot/sites/all/modules/contrib/civicrm/CRM/Core/Invoke.php(36): CRM_Core_Invoke::_invoke((Array:3))
  #14 /mnt/www/html/vitintranetp3xtagv7qp/docroot/sites/all/modules/contrib/civicrm/drupal/civicrm.module(458): CRM_Core_Invoke::invoke((Array:3))
  #15 [internal function](): civicrm_invoke(&quot;import&quot;, &quot;contact&quot;)
  #16 /mnt/www/html/vitintranetp3xtagv7qp/docroot/includes/menu.inc(527): call_user_func_array(&quot;civicrm_invoke&quot;, (Array:2))
  #17 /mnt/www/html/vitintranetp3xtagv7qp/docroot/index.php(21): menu_execute_active_handler()
  #18 {main}
  </code></pre>
  <p>The only thing I changed during the upgrade is in the cicivcrm.settings.php where the old CiviCRM root variable wasn't finding the path to jQuery and JavaScript files and I had to change it to <code>sites/all/modules/contrib/civicrm/</code> instead of <code>/var/www/html/site_name/docroot/sites/all/modules/contrib/civicrm/</code> (where instead of site_name there is the name of my site).</p>
  <p>Could this change cause the error? Everything else in CiviCRM seems to work fine.</p>
  <p>Thank you</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-11-15T17:08:41.397Z
Comments.Text: Do you have geocoding turned on or maybe some kind of postal address service? Also it's strange you would have to change civicrm_root that way, but I note that before it started with `var` whereas in the log message it looks like `mnt`. Are mnt and var aliases for each other?
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-11-16T08:33:36.687Z
Comments.Text: Hi @Demerit thank you for your reply! I can try using mnt maybe? I don't know exactly if var is an alias becuase it was always set up (not by me) like that and I never had any problems. I am hosting the site in Acquia so I will clarify that part with them. How do I check if geocoding is turned on? I don't use any postal address services.
Comments.UserDisplayName: acaselli
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-11-16T09:04:52.740Z
Comments.Text: @Demerit I actually had an address standardization provider!! I was totally unaware of it! I found it under Administer->Localisation->Address Settings. thank you so much!! Just out of curiosity, how did you know that could be a problem?
Comments.UserDisplayName: acaselli
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-11-16T12:22:11.787Z
Comments.Text: I guessed becaused the error is about making a remote network call and the log shows it failing at the point where it creates/updates a contact, and I know that geocoding and address lookups are two things that use remote network calls and that happen when creating/updating contacts.
Comments.UserDisplayName: Demerit
Tags: <import><civicrm.settings.php>
Title: cURL error 6: Could not resolve host when importing contacts
ThreadText: # cURL error 6: Could not resolve host when importing contacts
  
  (Asked by: username_0 on 2021-11-15)
  
  I recently updated CiviCRM in Drupal 7 from version 5.17.3 to 5.42.1
  
  Now when I try to import contacts, I get to final step and click "import now". After a few seconds that I see the popup with "importing records" I get the following error:
  
  cURL error 6: Could not resolve host: 320RK93TB985 (see <https://curl.haxx.se/libcurl/c/libcurl-errors.html>)
  
  ```
      #0 /mnt/www/html/vitintranetp3xtagv7qp/docroot/sites/all/modules/contrib/civicrm/CRM/Contact/Import/Parser/Contact.php(1587): civicrm_api3("Contact", "create", (Array:17))
  #1 /mnt/www/html/vitintranetp3xtagv7qp/docroot/sites/all/modules/contrib/civicrm/CRM/Contact/Import/Parser/Contact.php(633): CRM_Contact_Import_Parser_Contact->createContact((Array:13), (Array:36), "4", NULL, TRUE, "1")
  #2 /mnt/www/html/vitintranetp3xtagv7qp/docroot/sites/all/modules/contrib/civicrm/CRM/Contact/Import/Parser.php(196): CRM_Contact_Import_Parser_Contact->import("4", (Array:25), NULL)
  #3 /mnt/www/html/vitintranetp3xtagv7qp/docroot/sites/all/modules/contrib/civicrm/CRM/Contact/Import/ImportJob.php(233): CRM_Contact_Import_Parser->run("civicrm_tmp_d_dflt_68a71677e392d1db8155657ca45c97c2", (Array:22), 8, 1, "_id", "_status", "4", "0ea8ff7d03ae43f35391c591657e5d6a", 16, NULL, 30, NULL, "1")
  #4 /mnt/www/html/vitintranetp3xtagv7qp/docroot/sites/all/modules/contrib/civicrm/CRM/Contact/Import/Form/Preview.php(254): CRM_Contact_Import_ImportJob->runImport(Object(CRM_Contact_Import_Form_Preview))
  #5 /mnt/www/html/vitintranetp3xtagv7qp/docroot/sites/all/modules/contrib/civicrm/CRM/Core/Form.php(527): CRM_Contact_Import_Form_Preview->postProcess()
  #6 /mnt/www/html/vitintranetp3xtagv7qp/docroot/sites/all/modules/contrib/civicrm/CRM/Core/StateMachine.php(144): CRM_Core_Form->mainProcess()
  #7 /mnt/www/html/vitintranetp3xtagv7qp/docroot/sites/all/modules/contrib/civicrm/CRM/Core/QuickForm/Action/Next.php(43): CRM_Core_StateMachine->perform(Object(CRM_Contact_Import_Form_Preview), "next", "Next")
  #8 /mnt/www/html/vitintranetp3xtagv7qp/docroot/sites/all/modules/contrib/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Next->perform(Object(CRM_Contact_Import_Form_Preview), "next")
  #9 /mnt/www/html/vitintranetp3xtagv7qp/docroot/sites/all/modules/contrib/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Contact_Import_Form_Preview), "next")
  #10 /mnt/www/html/vitintranetp3xtagv7qp/docroot/sites/all/modules/contrib/civicrm/CRM/Core/Controller.php(352): HTML_QuickForm_Page->handle("next")
  #11 /mnt/www/html/vitintranetp3xtagv7qp/docroot/sites/all/modules/contrib/civicrm/CRM/Core/Invoke.php(313): CRM_Core_Controller->run((Array:3), NULL)
  #12 /mnt/www/html/vitintranetp3xtagv7qp/docroot/sites/all/modules/contrib/civicrm/CRM/Core/Invoke.php(69): CRM_Core_Invoke::runItem((Array:13))
  #13 /mnt/www/html/vitintranetp3xtagv7qp/docroot/sites/all/modules/contrib/civicrm/CRM/Core/Invoke.php(36): CRM_Core_Invoke::_invoke((Array:3))
  #14 /mnt/www/html/vitintranetp3xtagv7qp/docroot/sites/all/modules/contrib/civicrm/drupal/civicrm.module(458): CRM_Core_Invoke::invoke((Array:3))
  #15 [internal function](): civicrm_invoke("import", "contact")
  #16 /mnt/www/html/vitintranetp3xtagv7qp/docroot/includes/menu.inc(527): call_user_func_array("civicrm_invoke", (Array:2))
  #17 /mnt/www/html/vitintranetp3xtagv7qp/docroot/index.php(21): menu_execute_active_handler()
  #18 {main}
  
  ```
  
  The only thing I changed during the upgrade is in the cicivcrm.settings.php where the old CiviCRM root variable wasn't finding the path to jQuery and JavaScript files and I had to change it to `sites/all/modules/contrib/civicrm/` instead of `/var/www/html/site_name/docroot/sites/all/modules/contrib/civicrm/` (where instead of site\_name there is the name of my site).
  
  Could this change cause the error? Everything else in CiviCRM seems to work fine.
  
  Thank you
  
  **Tags:** import, civicrm.settings.php
  
  > **Comments:**
  > **username_1**: Do you have geocoding turned on or maybe some kind of postal address service? Also it's strange you would have to change civicrm_root that way, but I note that before it started with `var` whereas in the log message it looks like `mnt`. Are mnt and var aliases for each other?  
  > **username_0**: Hi @username_1 thank you for your reply! I can try using mnt maybe? I don't know exactly if var is an alias becuase it was always set up (not by me) like that and I never had any problems. I am hosting the site in Acquia so I will clarify that part with them. How do I check if geocoding is turned on? I don't use any postal address services.  
  > **username_0**: @username_1 I actually had an address standardization provider!! I was totally unaware of it! I found it under Administer->Localisation->Address Settings. thank you so much!! Just out of curiosity, how did you know that could be a problem?  
  > **username_1**: I guessed becaused the error is about making a remote network call and the log shows it failing at the point where it creates/updates a contact, and I know that geocoding and address lookups are two things that use remote network calls and that happen when creating/updating contacts.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-11-16. Score: 0
  
  As per comments the problem was an address standardization provider lookup failing.
  
  
  ---
  
  