Support Forum

cURL error 6: name lookup timed out

WM William Mikell
William Mikell
Member

Not getting any where with hosting support. What do I need to direct them to do or is there a workaround?

Your server has returned a status code ofwhile attempting to communicate with the Simple:Press server to establish up to date version information.
Additionally, WordPress reported the following: cURL error 6: name lookup timed out
WordPress will retry this operation automatically but if the condition persists we firstly recommend seeking assistance from your hosting support team and then contacting Simple:Press support if they are unable to help.

This started after we added a SSL to the site.

Thank You

9 Answers

New Answer

MP Mr Papa
Mr Papa
Member

but you are not using an https url for our site, are you?

WM William Mikell
William Mikell
Member

Not sure I”m using a plugin called real simple SSL that forces SSL and check’s the database. Where would I look

MP Mr Papa
Mr Papa
Member

might have to ask your host where that message is coming from and what url timed out…

WM William Mikell
William Mikell
Member

I get the typical low level don’t want to work response from them.

Added core control plugin this is the error I get

URL https://simple-press.com/downloads/simple-press/simple-press.xml
Method GET
Result error
Error Details
http_request_failed cURL error 6: name lookup timed out
Time Taken 5.00107693672 seconds
HTTP Args
timeout (integer) 5
redirection (integer) 5
httpversion (string) 1.0
user-agent (string) WordPress/4.6.1; https://www.myeroticnight.com
reject_unsafe_urls (boolean) false
blocking (boolean) true
headers
Array ( )
cookies
Array ( )
compress (boolean) false
decompress (boolean) true
sslverify (boolean) true
sslcertificates (string) /home/myerotic/public_html/wp-includes/certificates/ca-bundle.crt
stream (boolean) false
filename NULL
limit_response_size NULL
HTTP Transports WP_Http_Streams
Request Time 2016-10-01 13:50:01 –400

 

Other than getting them to increase the timeout any other suggestions?

MP Mr Papa
Mr Papa
Member

of course they dont…  😉

but that gives me the info I wanted… and verifies that the call to our server api is not https…

so take the url and punch it into  your browser… what do you get?  should be a xml response…

its definitely working and we have thousands of requests to it daily…  so why is it timing out for you?

The 5 second timeout is set by us… the WP default (we use their api) is 1 second… we increased it not for any particular reason but just trying to be safe…  harder to imagine your server would be that slow in talking to ours, but we can try a test and increase it to see what happens…

if you go to file wp-content/plugins/simple-press/sp-startup/site/sp-site-support-functions.php and edit that file around line 665 you will find this line:

        $options = array(‘timeout’ => 5);

try increasing the 5 to 10 or something else as a data point..

MP Mr Papa
Mr Papa
Member

odd that your server communicating with ours would take that long… in testing (and of course far from comprehensive or statistically valid), most connections happen in second or less…

I will open a ticket and see if any downside to increasing that time or allowing a method for users to increase…  thanks for the update…