-
Notifications
You must be signed in to change notification settings - Fork 946
Rustup fails with os error 10054 on a new Windows 11 machine #3791
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
Full output of a failing call to
|
Does it work if you set a |
It appears to work now, no matter if I set |
@fh-igd-mueller-roemer Thanks for the report anyway! Looks like a @rust-lang/infra problem though... |
Oof. 😮💨 Thanks for reporting this, @fh-igd-mueller-roemer. The reason why it might work sometimes is that we split traffic for Can you test my theory that this is a problem with one of the two by explicitly downloading the file from both? curl https://cloudfront-static.rust-lang.org/dist/channel-rust-stable.toml.sha256 curl https://fastly-static.rust-lang.org/dist/channel-rust-stable.toml.sha256 I would suspect that the download through Fastly works, while downloading from CloudFront fails. If it's the case that one of them fails, it would also be interesting to test whether the issue exists for both IPv4 and IPv6. You can force the protocol version with the (Off-topic: I immediately recognized the background in your profile picture. I used to work for the IGD as well. 😄) |
@jdno You are correct. The Cloudfront-link failed 4 times out of 5, the Fastly-link worked fine on every attempt. The Cloudfront-link also works with (Off-topic: yes, although a different background was used for our new photos - I need to swap this one 😀 We probably crossed paths at some point since I've been at IGD since 2011) |
@jdno I'm asking for @nopeless (#3797 (comment)) since I don't know anything about the deployment of these websites :| But if @fh-igd-mueller-roemer's experiences apply, maybe we should have a closer look at CloudFront IPv6. |
@rami3l I don't think setting Maybe also check in with the people encountering the linked Cargo issue. There were (at least) two more people there with issues on Windows 11 |
@fh-igd-mueller-roemer what do you think about the solution listed in #3797? |
Maybe that could be done as a last resort? I.e. if the retries all fail then it tries once more with ipv4 only? |
@nopeless doesn't seem like a particularly clean solution, but it would work until upstream (either Cloudfront or the Windows distribution of curl, depending on who's at fault here) manages to resolve the issue. It could be an environment variable that sets the IP protocol version, since it's only a workaround |
If my understandings are correct, Rust-lang.org are currently using both Fastly and AWS. I'd like to know if this means rust-lang.org will migrate to a new CDN? (And speaking of CDN, I wrote a reverse proxy with Cloudflare Workers. I hope this is not illegal by the way. Anyone can deploy their own with this gist, although Cloudflare doesn't support disabling IPv6 support for free plans. Will Cloudflare be considered since its object storage is only priced by requests (edit: and storage size) and there's no bandwidth fee? I'm just a random developer and saying so because I think this might reduce rust-lang.org's running cost to some degree.) |
@kLiHz Thanks for your interest! However, as I mentioned above, the website and its deployment is out of the Rustup Project's control. Maybe the Oops, there was a misclick below... |
On our Windows CI, integration tests often fail with the following error: ``` Failed to resolve dependencies: error sending request for url (https://prefix.dev/conda-forge/noarch/repodata_shards.msgpack.zst) Diagnostic severity: error Caused by: An existing connection was forcibly closed by the remote host. (os error 10054) Caused by: client error (Connect) Caused by: error sending request for url (https://prefix.dev/conda-forge/noarch/repodata_shards.msgpack.zst) ``` Looking at this [issue](rust-lang/rustup#3791), switching to native-tls might help
Verification
Problem
I am on a new Windows 11 machine, with the most current version of rustup (installed two days ago). Running
rustup update
fails approximately 3 times out of 4 with anos error 10054
.Steps
rustup update
multiple times, oberve how it fails 3 times out of 4Possible Solution(s)
No response
Notes
I am also encountering the likely related
cargo
issue rust-lang/cargo#13457 on the same machine. The workaround in rust-lang/cargo#13457 (comment) resolved that issue for me.Rustup version
rustup 1.27.0 (bbb9276d2 2024-03-08)
Installed toolchains
OS version
Windows 11 Enterprise 23H2 22631.3447
The text was updated successfully, but these errors were encountered: