Open mgalgs opened 1 year ago
Thats .. .strange. The first error is likely something in the reqwest -> hyper -> tokio stack (using reqwest blocking client).
The second suggests either bad DNS, bad TLS certs, or some wicked combination.
Can you explore this a bit? e.g. with strace? Duplicate the HTTP call that fails with a command line curl?
I'm able to curl
the last URL printed to the console:
curl https://static.rust-lang.org/dist/channel-rust-stable.toml.sha256
81d62a9e0d32f621d8cd83c07640bf91adc3467cb72dafd2e46f004a3d00cb27 channel-rust-stable.toml
I'm not really sure what to look for in the strace
output... I see a bunch of socket operations that seem reasonable, though there are a few recvfrom
s returning an error code (-1).
I took a network capture and dropped it into Wireshark but not really seeing anything jump out at me there either... I do see the DNS requests and responses and they seem fine. Only thing jumping out at me is that I'm getting IPv6 addresses back... I'm going to try disabling IPv6 altogether to see if I have any better luck.
Welp, I disabled IPv6 (and verified that I'm getting IPv4 addresses back via network capture) but still no luck...
I realize this is a real stinker of an issue since "it works on my machine" -- I mean, it actually works on MY machine on the same network, using the same OS and similar configuration... If anyone has any tips on further strace
debugging or things to look for in the network capture please let me know!
You could copy the ~/.rustup directory between the two machines to get a working install, and then grab the rustup source, build it locally and step into it with a debugger. I'd love to know whats going on here.
Problem
I'm trying to install Rust using the recommended
rustup
command:but it's failing like so (with
--verbose
):I've also tried forcing the
curl
fallback download helper as recommended in #1328 (by settingRUSTUP_USE_CURL=1
), but it fails with a different error:Steps
Possible Solution(s)
No response
Notes
This is on Arch Linux, x86_64. No network proxy. I'm able to
curl https://static.rust-lang.org/dist/channel-rust-stable.toml.sha256
just fine:Oddly enough, I have another machine on this same network also running Arch, using the same DNS, same default route, same kernel, same network proxy settings (no proxy), similar package selection (both fully up-to-date), and
rustup
(same version) works just fine on that machine.Rustup version
Installed toolchains
Guess I'm not bootstrapped far enough along to have a working
show
subcommand?Oh wait, hold on, here you go: