juliaup: MacOS: Download timeout but url works manually
The url works when I try via a browser, but times out via juliaup
ian@IanMBP ~ % juliaup add 1.7
Installing Julia 1.7.3+0.x64 (x64).
Error: Failed to download from url `https://julialang-s3.julialang.org/bin/mac/x64/1.7/julia-1.7.3-mac64.tar.gz`.
Caused by:
0: https://julialang-s3.julialang.org/bin/mac/x64/1.7/julia-1.7.3-mac64.tar.gz: Network Error: timed out reading response
1: timed out reading response
ian@IanMBP ~ % juliaup add 1.7
Installing Julia 1.7.3+0.x64 (x64).
Error: Failed to download from url `https://julialang-s3.julialang.org/bin/mac/x64/1.7/julia-1.7.3-mac64.tar.gz`.
Caused by:
0: https://julialang-s3.julialang.org/bin/mac/x64/1.7/julia-1.7.3-mac64.tar.gz: Network Error: timed out reading response
1: timed out reading response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 23 (6 by maintainers)
I pushed a new build to the release preview channel that uses a different rust package for the downloads. Would be great if folks can give that a try if you are on Linux or Mac. You can switch your installation over to the release preview channel by running
juliaup self channel releasepreview.I have this problem, and have tracked it down to my own misconfigured setup where I have an IPv6 address, but no IPv6 route to the Internet. Possibly others have had the same problem as me.
The problem is as follows:
As to why the problem occurs for juliaup and not in the browser, it seems some software, including web browsers and curl will retry with the A record when they can’t connect to the AAAA record (perhaps web browsers figure out in advance that IPv6 is not usable beyond the router), whereas wget and ureq will not.
I just checked, and hyper, the underlying package that reqwest uses, does implement the happy eyeball approach. So, presumably it should all work now. I am going to close this issue for now, if you run into any similar problems with the latest version again, please either reopen here or a new issue.
Oh wow, that is amazing detective work!
I think this probably has to be addressed upstream in https://github.com/algesten/ureq, right? That is what we use for downloading on Mac/Linux. On Windows we use Windows APIs for downloading, and my assumption would be that those deal with this kind of stuff automatically.
… and one day later still not working. So it’s perhaps reasonable to reopen this issue.