rust-lang / rust-lang/rustup

Failure to install on Windows

Open
#2,203 12 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Problem

Rocket's Windows CI (Azure Pipelines) started failing between 27 and 4 days ago. We run this command:

curl -sSf -o rustup-init.exe https://win.rustup.rs
rustup-init.exe -y --default-toolchain $(rust_version)

And the output looks like this:

========================== Starting Command Output ===========================
"C:\windows\system32\cmd.exe" /D /E:ON /V:OFF /S /C "CALL "d:\a\_temp\8545808c-7a04-4daf-ad75-cd45a608d93d.cmd""
info: profile set to 'default'
info: default host triple is i686-pc-windows-msvc
error: toolchain 'stable' is not installed
error: caused by: not a directory: 'C:\Users\VssAdministrator\.rustup\toolchains\stable-i686-pc-windows-msvc'
##[error]Cmd.exe exited with code '1'.
Finishing: Install Rust (nightly)

In a previous successful run, this was the output:

========================== Starting Command Output ===========================
"C:\windows\system32\cmd.exe" /D /E:ON /V:OFF /S /C "CALL "D:\a\_temp\60e92b2b-f745-49cf-b841-7987dd621bcc.cmd""
info: profile set to 'default'
info: default host triple is x86_64-pc-windows-msvc
info: updating existing rustup installation

Steps

I have not attempted to reproduce this yet. I'll try locally first, but I would not be surprised if there's some kind of caching going on from a previous installation that will make reproduction difficult.

Analysis

Two things about this seem really odd to me: i686 (maybe related to #2179?) and stable when the requested version was nightly. I don't know if it's trying to find the stable toolchain before or during a self-update, assuming it is trying to do one.

Any hints before I go and try this on bare metal?

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 examining the Azure Pipelines Windows installation command and compare the failing and successful rustup output, focusing on the unexpected i686 host and stable toolchain. Reproduce the installation behavior if possible and identify the cause; done means the Windows CI installation reliably installs the requested toolchain.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.