Rust Installation on Windows 11

Current installation options:

default host triple: x86_64-pc-windows-msvc
default toolchain: stable (default)
profile: default
modify PATH variable: yes

  1. Proceed with standard installation (default - just press enter)
  2. Customize installation
  3. Cancel installation

info: profile set to 'default'
info: default host triple is x86_64-pc-windows-msvc
warning: Updating existing toolchain, profile choice will be ignored
info: syncing channel updates for 'stable-x86_64-pc-windows-msvc'
info: latest update on 2024-06-13, rust version 1.79.0 (129f3b996 2024-06-10)
info: downloading component 'rustc'
info: downloading component 'cargo'
info: downloading component 'rust-std'
info: downloading component 'rust-docs'
info: downloading component 'rustfmt'
info: downloading component 'clippy'
info: removing previous version of component 'rustc'
warning: during uninstall component rustc was not found
info: removing previous version of component 'cargo'
warning: during uninstall component cargo was not found
info: removing previous version of component 'rust-std'
warning: during uninstall component rust-std was not found
info: removing previous version of component 'rust-docs'
warning: during uninstall component rust-docs was not found
info: removing previous version of component 'rustfmt'
warning: during uninstall component rustfmt was not found
info: removing previous version of component 'clippy'
warning: during uninstall component clippy was not found
info: installing component 'rustc'
57.7 MiB / 57.7 MiB (100 %) 6.8 MiB/s in 8s ETA: 0s
info: installing component 'cargo'
info: installing component 'rust-std'
18.3 MiB / 18.3 MiB (100 %) 7.0 MiB/s in 2s ETA: 0s
info: installing component 'rust-docs'
15.4 MiB / 15.4 MiB (100 %) 1.1 MiB/s in 21s ETA: 0s
12 IO-ops / 13 IO-ops ( 92 %) 0 IOPS in 12m 44s ETA: Unknown

The ETA remains unknown. The 12m 44s keeps going up. Unable to close the installer CLI when it reaches this point.

Shot in the dark: have you tried disabling anti-virus during install?

0 IOPS would suggest that it's unable to use your disk somehow (which is weird) or has gotten bugged and stuck (also weird).

Have you checked for disk errors? Try chkdsk /f in cmd prompt.

Also worth a good old reboot and try again :poop:

If it keeps happening, please raise an issue on rustup GitHub

There's more than 400 GB of disk space available. There are no disk errors. I rebooted and the result is the same as before. Using safe mode removed all instances of previously installed rust toolchains. Removed the VS Code Rust Analyzer extension. It still gets stuck.

warning: Updating existing toolchain, profile choice will be ignored

From the original output you posted. Does this still appear in the output when trying again? Worth trying to understand what is causing that.

This is unusual, and I hope you can get it working soon. I'm not an expert in rustup but I assume it's possible that you're hitting some edge case that will need a fix. Either that or there is something wrong with your setup/environment that they may be more familiar with.

This is why I encourage you to raise an issue on the repo - some experts may be able to review it. Even if it does turn out to be an issue on your end, other users can find your issue if they have the same problem :slight_smile:

So upgrading not installing?

Another shot in the dark: is "Controlled folder access" turned on? I know that can sometimes cause inexplicable failures with seemingly random programs.

I tried both. First upgrading, it stalled at the last line having an ETA Unknown. The disk usage was below 5%. It always gets stalled after the installation of 'rust-docs'.

Then removed all previous installed toolchains. Removed it from PATH to. Tried a fresh install. Still gets stuck at the last line having an ETA Unknown. All connections were working properly. It's not working. My environment has no controlled folder access, as it is user folder install.

I might have to wait for the next stable release of rustup-init.exe or the next Windows Update Tuesday and try it again. Clean install/reinstall of Windows is not on the table.

"Controlled folder access"

I tried that for a period of time but it became too painful and IIRC I did run into something I couldn't get around, so I gave up.

Have you examined the Rust / Cargo install directories? Are any files being installed?

Alright, Windows Update Tuesday fixed the issue with the high disk usage during the install of the development tools or during an existing rust toolchain update.

It works just fine now.

1 Like