Skip to content

Operation timeout after update to 1.28 #4213

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 tasks done
Tracked by #4219
nilehmann opened this issue Mar 4, 2025 · 3 comments · Fixed by #4218
Closed
2 tasks done
Tracked by #4219

Operation timeout after update to 1.28 #4213

nilehmann opened this issue Mar 4, 2025 · 3 comments · Fixed by #4218
Labels

Comments

@nilehmann
Copy link

nilehmann commented Mar 4, 2025

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)
@nilehmann nilehmann added the bug label Mar 4, 2025
@lvzhenbo
Copy link

lvzhenbo commented Mar 4, 2025

I think I'm having the same problem, my company limits internet speeds

Image

@nilehmann nilehmann changed the title Operatin timeout after update to 1.28 Operation timeout after update to 1.28 Mar 4, 2025
@lvzhenbo
Copy link

lvzhenbo commented Mar 4, 2025

Looking at the changelog I see that it is indeed the 1.28 update that is causing the problem
#3798

@ChrisDenton
Copy link
Member

Thanks for the report. This looks like quite an old bug in the reqwest backend that wasn't noticed because it wasn't the default until recently. I filed #4218 to fix it.

@djc djc mentioned this issue Mar 4, 2025
4 tasks
@djc djc closed this as completed in #4218 Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants