rust-lang / rust-lang/rustup

Interrupted transaction could get rustup stuck in loop

Open
#4,400 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Verification
Problem

rustup, cargo, and rustc are unusable after clean install.

Steps
  1. Install 1.28.2
  2. Run any command from toolchain (e.g. rustup update, rustc --version, cargo check)
  3. See error
Possible Solution(s)

No response

Notes

Clean install was done, because of https://github.com/rust-lang/rustup/issues/4213

Terminal
PS C:\Users\shauh\exam-creator> rustup toolchain install nightly-aarch64-pc-windows-msvc
info: syncing channel updates for 'nightly-aarch64-pc-windows-msvc'
  1.0 MiB /   1.0 MiB (100 %)  75.2 KiB/s in 16s
info: latest update on 2025-07-03, rust version 1.90.0-nightly (667787527 2025-07-02)
info: downloading component 'cargo'
  4.0 MiB /   8.7 MiB ( 46 %) 400.0 KiB/s in 30s ETA: 12s
info: retrying download for 'https://static.rust-lang.org/dist/2025-07-03/cargo-nightly-aarch64-pc-windows-msvc.tar.xz'
  5.6 MiB /   8.7 MiB ( 65 %)  91.8 KiB/s in 30s ETA: 34s
info: retrying download for 'https://static.rust-lang.org/dist/2025-07-03/cargo-nightly-aarch64-pc-windows-msvc.tar.xz'
351.8 KiB /   8.7 MiB (  4 %) 143.8 KiB/s in  4s ETA: 59s
PS C:\Users\shauh\exam-creator> rustup update
info: syncing channel updates for 'stable-aarch64-pc-windows-msvc'
840.6 KiB / 855.0 KiB ( 98 %)  28.8 KiB/s in 30s
error: could not download file from 'https://static.rust-lang.org/dist/channel-rust-stable.toml' to 'C:\Users\shauh\.rustup\tmp\1xi17qo53_6z50tk_file.toml'
info: checking for self-update
info: downloading self-update
error: could not download file from 'https://static.rust-lang.org/rustup/archive/1.28.2/aarch64-pc-windows-msvc/rustup-init.exe' to 'C:\Users\shauh\.cargo\bin\rustup-init.exe': error decoding response body: request or response body error: operation timed out
PS C:\Users\shauh\exam-creator> rustup self --help
Modify the rustup installation

Usage: rustup[EXE] self <COMMAND>

Commands:
  update        Download and install updates to rustup
  uninstall     Uninstall rustup
  upgrade-data  Upgrade the internal data format
  help          Print this message or the help of the given subcommand(s)

Options:
  -h, --help  Print help
PS C:\Users\shauh\exam-creator> rustup self uninstall


Thanks for hacking in Rust!

This will uninstall all Rust toolchains and data, and remove
%USERPROFILE%\.cargo/bin from your PATH environment variable.

Continue? (y/N) y

info: removing rustup home
error: could not remove 'rustup_home' directory: 'C:\Users\shauh\.rustup': Access is denied. (os error 5)
PS C:\Users\shauh\exam-creator> rustup --version
rustup 1.28.2 (e4f3ad6f8 2025-04-28)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: syncing channel updates for 'stable-aarch64-pc-windows-msvc'
info: latest update on 2025-06-26, rust version 1.88.0 (6b00bc388 2025-06-23)
info: The currently active `rustc` version is `(timeout reading rustc version)`
PS C:\Users\shauh\exam-creator> rustc --version
info: syncing channel updates for 'stable-aarch64-pc-windows-msvc'
info: latest update on 2025-06-26, rust version 1.88.0 (6b00bc388 2025-06-23)
info: syncing channel updates for 'stable-aarch64-pc-windows-msvc'
info: latest update on 2025-06-26, rust version 1.88.0 (6b00bc388 2025-06-23)
info: syncing channel updates for 'stable-aarch64-pc-windows-msvc'
info: latest update on 2025-06-26, rust version 1.88.0 (6b00bc388 2025-06-23)
info: syncing channel updates for 'stable-aarch64-pc-windows-msvc'
info: latest update on 2025-06-26, rust version 1.88.0 (6b00bc388 2025-06-23)
info: syncing channel updates for 'stable-aarch64-pc-windows-msvc'
info: latest update on 2025-06-26, rust version 1.88.0 (6b00bc388 2025-06-23)
info: syncing channel updates for 'stable-aarch64-pc-windows-msvc'
info: latest update on 2025-06-26, rust version 1.88.0 (6b00bc388 2025-06-23)
info: syncing channel updates for 'stable-aarch64-pc-windows-msvc'
info: latest update on 2025-06-26, rust version 1.88.0 (6b00bc388 2025-06-23)
info: syncing channel updates for 'stable-aarch64-pc-windows-msvc'
Rustup version
`1.28.2`
Installed toolchains
Cannot run, but should only be `stable-aarch64-pc-windows-msvc`, because it is a clean install
OS version
Edition	Windows 11 Home Single Language
Version	24H2
Installed on	‎2024/‎06/‎17
OS build	26100.4351
Experience	Windows Feature Experience Pack 1000.26100.107.0

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

Start by reproducing the interrupted downloads and repeated rustc --version or rustup update commands on Windows 11 with rustup 1.28.2, using the terminal output and the referenced rustup issue as context. Trace the command path involved in toolchain installation and self-update; done means an interrupted transaction no longer leaves subsequent rustup, cargo, or rustc commands stuck retrying indefinitely.

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
Active
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.