rust-lang / rust-lang/rustup

Rustup fails with os error 10054 on a new Windows 11 machine

Open
#3,791 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

not-rustup
Dominant language
Rust
Stars
7k
Forks
1.1k
Avg merge
22h 40m
Merged PRs (30d)
46

Description

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 an os error 10054.

Steps
  1. Run rustup update multiple 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.