-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in curl::curl_fetch_disk(url, x$path, handle = handle) : Timeout was reached #72
Comments
I am facing the same issue as well. Using Ubuntu 16.04.
|
@luiandresgonzalez Were you able to fix the issue, or come up with a workaround? |
I just tried this on an Ubuntu 16.04 machine and cannot reproduce any problem. Are you sure there wasn't some temporary network problem on your machine that caused the request to fail? Note that requests fail on a regular basis on wifi or so, but in your browser you might not notice because it just tries again. |
I have been unable to use any function which uses curl, since at least a week. I don't think it is a connection issue, I have a desktop and the connection is via ethernet. Also, I tried using a tethering internet connection via mobile, and it hasn't worked as well. May be, something I installed or some system updates, are causing this. Can you give me some pointers on how to debug this problem, or link to few resources which can help solve this problem, thanks. |
Can you show me output of: curl_fetch_memory("https://httpbin.org/get", new_handle(verbose = TRUE)) |
|
Wow. Can you try: curl::nslookup("httpbin.org")
utils::nsl("httpbin.org") |
curl::nslookup took some time to bring up the result. utils::nsl response was instant |
And can you try in R: system("ping -c5 httpbin.org") |
|
And if you run (outside of R) in the terminal:
|
|
Can you also try: curl_fetch_memory("http://54.175.219.8/get", new_handle(verbose = TRUE))
curl_fetch_memory("http://23.22.14.18/get", new_handle(verbose = TRUE)) |
|
Hmmm so there must be something wrong with your DNS settings. To confirm, the first one fails, but the second one succeeds?
|
So, should I use Google DNS? |
Does the same problem appear when you use R's downloaders? readLines("https://httpbin.org/get") Or when you use the
|
I tried download.file as well and it worked
|
This is so strange. Can you try with the RCurl package: RCurl::getURL("https://httpbin.org/get") |
|
Can you try if this makes a difference: req <- curl_fetch_memory("https://httpbin.org/get")
options(curl_interrupt = FALSE)
req <- curl_fetch_memory("https://httpbin.org/get")
|
Didn't work.
|
OK this is hard to debug. Can I get a shell a guest account your machine or so? |
It seems your DNS server is really slow. It takes (almost exactly) 15 seconds to resolve a name:
It times out in curl_fetch_memory("https://httpbin.org/get", handle = new_handle(CONNECTTIMEOUT = 60)) The same problem appears in the terminal so it is unrelated to R:
But the real question is of course why your dns dns server is so slow. It looks like some misconfiguration where it first tries some DNS server and after 15 seconds gives up and then tries another one or so, because it takes exactly 15sec, each time. |
Ok. If DNS was the issue, then using the mobile internet connection should Is there a option for the CONNECTTIMEOUT so that i can put it in .Rprofile? Thanks for all the help. Thanks, On 13 August 2016 at 18:37, Jeroen Ooms notifications@github.com wrote:
|
I'm not sure, if you have configured a dead DNS in your system it might time out on that for any connection. Maybe read some of this: http://unix.stackexchange.com/questions/141163/dns-lookups-sometimes-take-5-seconds |
I think you have a dead DNS server configured inside |
I can't find the
|
Ow sorry maybe that was on the host machine, I must have gotten confused. I recommend switching to google DNS or OpenDNS servers and see if that resolves the issue. |
Switching to Google DNS solved the issue. Thanks! |
Hi, sorry for the late answer. |
could you helpme i got the following problem when i was installing install_github('dutri001/bfastSpatial') |
hello my dear i face the following problem when i install bfastSpatial in R
|
what i realize, this happen when your network don't allow you to download everything from internet, mostly when you are using network for an organization. Try to do it over internet which is not organization specific. May be in your home it will work for you. For me, It did. |
how image in R markdown ????? |
In my case this problem occurs when I use up all EBS storage in aws ec2 instance. After removing some files, error has gone. |
I'm in Ubuntu 16.04, running R
All packages and dependencies are up to date (includes devtools and Rcurl, curl, httr).
When trying to use install_github to install any package, I get the following:
The text was updated successfully, but these errors were encountered: