Rustup fails with os error 10054 on a new Windows 11 machine
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 7k
- Forks
- 1.1k
- Avg merge
- 22h 40m
- Merged PRs (30d)
- 46
Description
Verification
- I searched for recent similar issues at https://github.com/rust-lang/rustup/issues?q=is%3Aissue+is%3Aopen%2Cclosed and found no duplicates.
- I am on the latest version of Rustup according to https://github.com/rust-lang/rustup/tags and am still able to reproduce my issue.
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 an os error 10054.
Steps
- Run
rustup updatemultiple times, oberve how it fails 3 times out of 4
Possible Solution(s)
No response
Notes
I am also encountering the likely related cargo issue https://github.com/rust-lang/cargo/issues/13457 on the same machine. The workaround in https://github.com/rust-lang/cargo/issues/13457#issuecomment-2012259159 resolved that issue for me.
Rustup version
rustup 1.27.0 (bbb9276d2 2024-03-08)
Installed toolchains
Default host: x86_64-pc-windows-msvc
rustup home: <...>\.rustup
stable-x86_64-pc-windows-msvc (default)
rustc 1.77.2 (25ef9e3d8 2024-04-09)
OS version
Windows 11 Enterprise 23H2 22631.3447
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce rustup update repeatedly on Windows 11 using rustup 1.27.0 and compare the failures with the related Cargo issue 13457 and its documented workaround. The issue is resolved when updates no longer intermittently fail with os error 10054 on the reported environment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100