-
Notifications
You must be signed in to change notification settings - Fork 952
error: could not download file from ... #1328
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
Comments
|
Have this problem solved? I meet the same issue........ |
Any word on this? I'm running into the same issue and I can't figure out what's wrong. |
@GildedHonour When you copied and pasted that URL into When I run
In #1400, @jneumann writes "When I ran the command with For me, both To debug such a problem, it would be useful for someone seeing the problem to try doing a packet capture during the That resulting |
A few other things that I might use to debug the issue: run |
@lambda Thanks for the tips. I narrowed it down to an issue with my ISP's DNS. Unfortunately, I don't know enough about how the Internet works to narrow it down further. |
@GildedHonour @sgy1993 can you confirm whether changing your DNS fixes the problem? (eg. try google's DNS on 8.8.8.8) |
When install 1.28 on macos, this problem occurs. rustup --verbose default stable |
windows10
that's my first install the Rust program language and I can assess to the office website.but this problem still exist. |
I meet the same issue.
|
me too |
try again... |
Having this exact problem on a fresh Ubuntu 18.04 install no it's not my router or DNS, other machines on the same network and DNS work fine |
I have the same issue on https://build.snapcraft.io.
Full build log is below: |
@dalance Is there a non-standard network setup in the snapcraft build environment? Rustup defaults to making direct connections unless there's an appropriate proxy configured in the environment. If snapcraft relies on an altered |
@kinnison Thank you for your suggestion. Snapcraft environment seems to use proxy.
|
Okay, that's interesting. Does cURL still manage to download if you unset the proxy environment variables? rustup should honour those environment variables using the reqwest backend, so perhaps something else is in play? |
If unset, cURL can't download.
|
@dalance Fascinating, our reqwest backend really ought to be working with all that. I wonder what's going on. I will be at Snapcraft Summit next week in Montréal, so if you could possibly provide details of how to reproduce that environment I will see if I can debug it while with Snappy people. |
@kinnison My
I tried to reproduce qemu and docker environment on x86_64 by multiarch/ubuntu-core:armhf-bionic docker image. |
Thanks. Hopefully I'll be able to get someone at the conference to help me reproduce this. |
I have the similar problems, but I don't know how to resolve it. I need your help ,thankyou very much: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightlyinfo: downloading installer Welcome to Rust! This will download and install the official compiler for the Rust programming It will add the cargo, rustc, rustup and other commands to Cargo's bin /root/.cargo/bin This path will then be added to your PATH environment variable by modifying the /root/.profile You can uninstall at any time with rustup self uninstall and these changes will Current installation options: default host triple: x86_64-unknown-linux-gnu
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu' |
I run# curl https://static.rust-lang.org/dist/channel-rust-stable.toml.sha256 |
It worked after I disabled network proxy... |
@RainKolwa It would be super-helpful if you could provide an example of your proxy setup. Our shift from cURL to reqwest as an HTTP backend should have been feature-compatible, but clearly it's not quite. |
I mean I disabled the Proxy, actually I was using shadowsocks, and then I turned it off. |
Aah so you had a proxy but hadn't got the environment variables for it. I understand, okay thanks. |
@kinnison shadowsocks is a MITM socket level proxy - https://shadowsocks.org/en/index.html - not an HTTP proxy. I think this is a case of an attractive-nuisance bug title: its likely that none of the reports are connected, but they all show the same error, so we have a dogpile. I suggest closing this and being super quick about retitling all new reports. |
I agree with that, and will close this now. For future download problems, please file new issues with specific titles. |
Turned off VPN here... |
I have strat Tor ( service tor start ) of course after installing the Tor. |
I'm experiencing this error today. I am not on a VPN nor have a proxy. Curl doesn't seem to have an issue though.
|
@LoZeno It would help if you could get a network trace of what |
This error started to happen yesterday, on a Linux server behind proxy:
|
@felipenoris In future it's better to open a fresh issue for new problems. In this case though, we're aware there's a bug in the proxy code and we're working on getting a fix out ASAP. |
confirmed. same error when the machine is behind a proxy with |
@dzhang-b Please either find an open issue which appears related, or else open a fresh issue with your situation in it. Especially important is to consider the error you get if you specify |
@kinnison Sure. I will open a new issue with it. |
What a spectacularly bad experience for new rust users. I have this same error. I have no http or https proxies set. Curl can download just fine WITHOUT a proxy. Very bad first impression of this. Standard Ubuntu 20.04 LTS
|
@thardie That is very unfortunate looking. Could you please open a fresh issue so that we can discuss things there? Though when you do, please include some indication of your IP setup (both v4 and v6) since I'm starting to suspect this is something to do with falling back from v6 to v4 incorrectly. |
Opened #2929 |
Any updates to solution for this issue? curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh |
Also looking for updates on this issue! Using the install script gives me:
Seems to be something with the
Testing the
It definitely seems related to SSL/OpenSSL somehow but it's beyond my knowledge how to take it from here. Suggestions? |
Probably a problem with network settings, for normal work just try Cloudflare WARP. Working for me. |
I had the same issue, what worked for me was removing my |
|
See #1400 (comment), this was my case inside a Docker container. Don't know what network config inside the container made the reqwest backend unusable. |
if you are in china, try use aliyun source. |
Same issues here, using wsl |
@adamjc |
Thanks for hints I sorted it by disabling vpn that break SSL root of trust... It would help to have rustup-init supporting an envar like RUSTUP_USE_CURL=1 to allow insecure download |
Arch linux
Internet connection has no problem
The text was updated successfully, but these errors were encountered: