Skip to content

Operation timeout after update to 1.28 #4213

Closed
@nilehmann

Description

@nilehmann

Verification

Problem

After updating to 1.28 I got an operation timed out when installing a toolchain

info: syncing channel updates for '1.85-x86_64-unknown-linux-gnu'
info: latest update on 2025-02-20, rust version 1.85.0 (4d91de4e4 2025-02-17)
info: downloading component 'cargo'
  8.7 MiB /   8.7 MiB (100 %) 944.0 KiB/s in 11s         
info: downloading component 'clippy'
  2.8 MiB /   2.8 MiB (100 %) 974.7 KiB/s in  3s          
info: downloading component 'rust-std' for 'aarch64-apple-darwin'
 24.3 MiB /  24.3 MiB (100 %) 827.8 KiB/s in 27s         
info: downloading component 'rust-std' for 'wasm32-wasip1'
 20.4 MiB /  20.4 MiB (100 %) 945.4 KiB/s in 23s         
info: downloading component 'rust-std' for 'x86_64-apple-darwin'
 25.9 MiB /  25.9 MiB (100 %) 939.8 KiB/s in 28s         
info: downloading component 'rust-std' for 'x86_64-pc-windows-msvc'
 22.3 MiB /  22.3 MiB (100 %) 946.6 KiB/s in 24s          
info: downloading component 'rust-std'
 26.7 MiB /  26.7 MiB (100 %) 952.4 KiB/s in 29s          
info: downloading component 'rustc'
 27.2 MiB /  69.5 MiB ( 39 %) 951.4 KiB/s in 30s ETA: 45s     
info: retrying download for 'https://static.rust-lang.org/dist/2025-02-20/rustc-1.85.0-x86_64-unknown-linux-gnu.tar.xz'
 27.2 MiB /  69.5 MiB ( 39 %) 950.1 KiB/s in 30s ETA: 45s    
info: retrying download for 'https://static.rust-lang.org/dist/2025-02-20/rustc-1.85.0-x86_64-unknown-linux-gnu.tar.xz'
 27.2 MiB /  69.5 MiB ( 39 %) 942.8 KiB/s in 30s ETA: 45s     
info: retrying download for 'https://static.rust-lang.org/dist/2025-02-20/rustc-1.85.0-x86_64-unknown-linux-gnu.tar.xz'
 27.2 MiB /  69.5 MiB ( 39 %) 945.7 KiB/s in 30s ETA: 45s    
info: retrying download for 'https://static.rust-lang.org/dist/2025-02-20/rustc-1.85.0-x86_64-unknown-linux-gnu.tar.xz'
error: component download failed for rustc-x86_64-unknown-linux-gnu: could not download file from 'https://static.rust-lang.org/dist/2025-02-20/rustc-1.85.0-x86_64-unknown-linux-gnu.tar.xz' to '/home/nlehmann/.rustup/downloads/7436f13797475082cd87aa65547449e01659d6a810b4cd5f8aedc48bb9f89dfb.partial': error decoding response body: request or response body error: operation timed out

I have a somewhat slow connection, but I've never had a problem before. I tried several times and got the timeout consistently. I finally managed to install the toolchain by setting RUSTUP_USE_CURL.

It may be related to #3486, but I'm posting it as a new issue because I never had a problem before updating.

Steps

I'm not sure if you only need a slow connection or if there's something particular about my network, but I get the error when I do rustup toolchain install. My toolchain file has

[toolchain]
channel = "1.85"
profile = "minimal"
components = [ "rustfmt", "clippy" ]
targets = [ "x86_64-apple-darwin", "aarch64-apple-darwin", "x86_64-unknown-linux-gnu", "wasm32-wasip1", "x86_64-pc-windows-msvc" ]

Possible Solution(s)

No response

Notes

No response

Rustup version

rustup 1.28.0 (6e19fbec7 2025-03-02)

Installed toolchains

Default host: x86_64-unknown-linux-gnu
rustup home:  /home/nlehmann/.rustup

installed toolchains
--------------------
stable-x86_64-unknown-linux-gnu (default)
nightly-2024-07-08-x86_64-unknown-linux-gnu
nightly-2024-08-20-x86_64-unknown-linux-gnu
nightly-2024-11-03-x86_64-unknown-linux-gnu
nightly-2024-12-15-x86_64-unknown-linux-gnu
nightly-2025-01-20-x86_64-unknown-linux-gnu
nightly-2025-01-26-x86_64-unknown-linux-gnu
nightly-2025-01-27-x86_64-unknown-linux-gnu
nightly-2025-02-22-x86_64-unknown-linux-gnu
1.85-x86_64-unknown-linux-gnu (active)
miri

active toolchain
----------------
name: 1.85-x86_64-unknown-linux-gnu
active because: overridden by '/home/nlehmann/github/zed/rust-toolchain.toml'
installed targets:
  aarch64-apple-darwin
  wasm32-wasip1
  x86_64-apple-darwin
  x86_64-pc-windows-msvc
  x86_64-unknown-linux-gnu

OS version

Fedora Linux 41 (6.12.13-200.fc41.x86_64)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions