Zen Cart Logo
Forums / Installing on a Linux/Unix Server / installing 1.5.1: CURL problems connect() timed out!

installing 1.5.1: CURL problems connect() timed out!

Views: 3,023

Results 1 to 7 of 7
21 Jan 2014, 5:10 AM
#1
thannaree avatar

thannaree

Zen Follower

Join Date:
Dec 2010
Location:
Thailand
Posts:
304
Plugin Contributions:
1

installing 1.5.1: CURL problems connect() timed out!

Hello,

I'm encountering the following CURL problems while installing 1.5.1:

  • CURL problems detected: 28 => connect() timed out!
  • CURL requires SSL support. Please notify webmaster or hosting company. 28 => connect() timed out!

I've checked php.info, which confirms that curl is enabled.

  • cURL support enabled
  • cURL Information 7.24.0
  • SSL Version OpenSSL/1.0.0

I ran the curltester.php file, which result reads:

28 connect() timed out!
Array
(
[url] => "http://www.zen-cart.com/testcurl.php"
[content_type] =>
[http_code] => 0
[header_size] => 0
[request_size] => 0
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 20.020957
[namelookup_time] => 0.058825
[connect_time] => 0
[pretransfer_time] => 0
[size_upload] => 0
[size_download] => 0
[speed_download] => 0
[speed_upload] => 0
[download_content_length] => -1
[upload_content_length] => -1
[starttransfer_time] => 0
[redirect_time] => 0
[certinfo] => Array
(
)

[redirect_url] =>

The server admins also ran their own curltest file to test and sent me the following response:

My first 5 tests were to two different google pages, facebook, linkedin, and twitter - all of which were able to connect fine. The next 4 are all the URLs that your script is trying to test, which are all failing. If you take a look at the reasons for the errors on the bottom, you'll see things like "invalid xml" and "invalid account id and password", Accordingly, I think that the CURL testing script may just be outdated and using bad sites to test if the connection actually works. You can see that curl is loaded and it seems to work fine within this script.

Have you tried reaching out to the script's developers about this? They would likely be able to advise you of a workaround for this, I'm sure you're not the first person to experience this issue.

What next can I do?

Thanks

22 Jan 2014, 2:03 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: installing 1.5.1: CURL problems connect() timed out!

Check in your admin/tools/server version info and see if curlssl shows up

25 Jan 2014, 3:10 AM
#3
thannaree avatar

thannaree

Zen Follower

Join Date:
Dec 2010
Location:
Thailand
Posts:
304
Plugin Contributions:
1

Re: installing 1.5.1: CURL problems connect() timed out!

kobra:

Check in your admin/tools/server version info and see if curlssl shows up

I'm actually installing a new site and therefore have not yet access to the admin. However I have created a "php.info" file and can see on the server that it's enabled (see the full CURL info below).

cURL support 	enabled
cURL Information 	7.24.0
Age 	3
Features
AsynchDNS 	No
Debug 	No
GSS-Negotiate 	No
IDN 	Yes
IPv6 	Yes
Largefile 	Yes
NTLM 	Yes
SPNEGO 	No
SSL 	Yes
SSPI 	No
krb4 	No
libz 	Yes
CharConv 	No
Protocols 	dict, file, ftp, ftps, gopher, http, https, imap, imaps, pop3, pop3s, rtsp, smtp, smtps, telnet, tftp
Host 	x86_64-unknown-linux-gnu
SSL Version 	OpenSSL/1.0.0
ZLib Version 	1.2.3 
25 Jan 2014, 4:24 AM
#4
thannaree avatar

thannaree

Zen Follower

Join Date:
Dec 2010
Location:
Thailand
Posts:
304
Plugin Contributions:
1

Re: installing 1.5.1: CURL problems connect() timed out!

I am not sure whether that would help determine what the issue is or not, but I paste below the result of the curl test the server admins ran:

Testing ... http://www.google.com/intl/en/contact/ - http://www.google.com/intl/en/contact/
....HTTP to Google - OK
Testing ... https://www.google.com/intl/en/contact/ - https://www.google.com/intl/en/contact/
....HTTPS to Google - OK
Testing ... https://www.facebook.com/ - https://www.facebook.com/
....HTTPS to Facebook - OK
Testing ... https://www.linkedin.com/ - https://www.linkedin.com/
....HTTPS to LinkedIn - OK
Testing ... https://twitter.com/ - https://twitter.com/
....HTTPS to Twitter - OK
Testing ... https://www.zen-cart.com/testcurl.php - https://www.zen-cart.com/testcurl.php
....Test 1 - Problem

connect() timed out!Array
(
    [url] => https://www.zen-cart.com/testcurl.php
    [content_type] => 
    [http_code] => 0
    [header_size] => 0
    [request_size] => 0
    [filetime] => -1
    [ssl_verify_result] => 0
    [redirect_count] => 0
    [total_time] => 10.008512
    [namelookup_time] => 0.042003
    [connect_time] => 0
    [pretransfer_time] => 0
    [size_upload] => 0
    [size_download] => 0
    [speed_download] => 0
    [speed_upload] => 0
    [download_content_length] => -1
    [upload_content_length] => -1
    [starttransfer_time] => 0
    [redirect_time] => 0
    [certinfo] => Array
        (
        )

    [redirect_url] => 
)

There is a problem with cURL. You need to contact your server admin or hosting provider.Testing ... https://secure.linkpt.net:1129/LSGSXML - https://secure.linkpt.net:1129/LSGSXML
....Test 2 - Problem

Array
(
    [url] => https://secure.linkpt.net:1129/LSGSXML
    [content_type] => 
    [http_code] => 0
    [header_size] => 2
    [request_size] => 152
    [filetime] => -1
    [ssl_verify_result] => 0
    [redirect_count] => 0
    [total_time] => 0.339936
    [namelookup_time] => 0.038244
    [connect_time] => 0.085865
    [pretransfer_time] => 0.277834
    [size_upload] => 0
    [size_download] => 267
    [speed_download] => 785
    [speed_upload] => 0
    [download_content_length] => -1
    [upload_content_length] => 0
    [starttransfer_time] => 0.338686
    [redirect_time] => 0
    [certinfo] => Array
        (
        )

    [redirect_url] => 
)

<r_csp></r_csp><r_time></r_time><r_ref></r_ref><r_error>SGS-020003: Invalid XML</r_error><r_ordernum></r_ordernum><r_message></r_message><r_code></r_code><r_tdate></r_tdate><r_score></r_score><r_authresponse></r_authresponse><r_approved></r_approved><r_avs></r_avs>

There is a problem with cURL. You need to contact your server admin or hosting provider.Testing ... https://secure.authorize.net/gateway/transact.dll - https://secure.authorize.net/gateway/transact.dll
....Test 3 - Problem

Array
(
    [url] => https://secure.authorize.net/gateway/transact.dll
    [content_type] => text/html
    [http_code] => 200
    [header_size] => 263
    [request_size] => 163
    [filetime] => -1
    [ssl_verify_result] => 0
    [redirect_count] => 0
    [total_time] => 0.275952
    [namelookup_time] => 0.036535
    [connect_time] => 0.075451
    [pretransfer_time] => 0.232803
    [size_upload] => 0
    [size_download] => 151
    [speed_download] => 547
    [speed_upload] => 0
    [download_content_length] => 151
    [upload_content_length] => 0
    [starttransfer_time] => 0.275941
    [redirect_time] => 0
    [certinfo] => Array
        (
        )

    [redirect_url] => 
)
<HTML><BODY><H3>The following errors have occurred.</H3>(13) The merchant login ID or password is invalid or the account is inactive.<BR></BODY></HTML>

There is a problem with cURL. You need to contact your server admin or hosting provider.Testing ... https://api-3t.paypal.com/nvp - https://api-3t.paypal.com/nvp
....Test 4 - Problem

Array
(
    [url] => https://api-3t.paypal.com/nvp
    [content_type] => text/plain; charset=utf-8
    [http_code] => 200
    [header_size] => 153
    [request_size] => 143
    [filetime] => -1
    [ssl_verify_result] => 0
    [redirect_count] => 0
    [total_time] => 0.434799
    [namelookup_time] => 0.038454
    [connect_time] => 0.087631
    [pretransfer_time] => 0.258932
    [size_upload] => 0
    [size_download] => 146
    [speed_download] => 335
    [speed_upload] => 0
    [download_content_length] => 146
    [upload_content_length] => 0
    [starttransfer_time] => 0.434767
    [redirect_time] => 0
    [certinfo] => Array
        (
        )

    [redirect_url] => 
)
ACK=Failure&L_ERRORCODE0=81002&L_SHORTMESSAGE0=Unspecified%20Method&L_LONGMESSAGE0=Method%20Specified%20is%20not%20Supported&L_SEVERITYCODE0=Error

There is a problem with cURL. You need to contact your server admin or hosting provider.
26 Jan 2014, 1:39 AM
#5
thannaree avatar

thannaree

Zen Follower

Join Date:
Dec 2010
Location:
Thailand
Posts:
304
Plugin Contributions:
1

Re: installing 1.5.1: CURL problems connect() timed out!

Since cURL and cURL with SSL work fine, it would appear that it's indeed the ZenCart destinations that are failing and not cURL itself.

Is there anyone else who's currently experiencing the same cURL issue while trying and install (fresh install, not upgrade) version 1.5.1?

26 Jan 2014, 5:21 AM
#6
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: installing 1.5.1: CURL problems connect() timed out!

Thannaree:

Since cURL and cURL with SSL work fine, it would appear that it's indeed the ZenCart destinations that are failing and not cURL itself.

Is there anyone else who's currently experiencing the same cURL issue while trying and install (fresh install, not upgrade) version 1.5.1?

Tried curltester.php with both secure and non-secure connection. No problem from local computer.

There could be a firewall issue between where you're testing from and zen cart. Wouldn't be the first time that something like that has happened.

27 Jan 2014, 3:05 AM
#7
thannaree avatar

thannaree

Zen Follower

Join Date:
Dec 2010
Location:
Thailand
Posts:
304
Plugin Contributions:
1

Re: installing 1.5.1: CURL problems connect() timed out!

Hi mc12345678,

I've tried from another location with the same result. I also get the following problem while testing from another website/server:

7 couldn't connect to host

Array
(
    [url] => "http://www.zen-cart.com/testcurl.php"
    [content_type] => 
    [http_code] => 0
    [header_size] => 0
    [request_size] => 0
    [filetime] => -1
    [ssl_verify_result] => 0
    [redirect_count] => 0
    [total_time] => 19.999818
    [namelookup_time] => 0.063557
    [connect_time] => 0
    [pretransfer_time] => 0
    [size_upload] => 0
    [size_download] => 0
    [speed_download] => 0
    [speed_upload] => 0
    [download_content_length] => -1
    [upload_content_length] => -1
    [starttransfer_time] => 0
    [redirect_time] => 0
    [certinfo] => Array
        (
        )

    [redirect_url] => 
)

Thanks,
Alex