`rustup update` stuck with `retrying renaming xxx to yyy`
Author: Detector-ICreated May 22, 2022Updated Sep 6, 2026
LabelsbugA-concurrency
Problem
when trying to update the rust using rustup update if somehow some problem accrue, like:
- having low available space in drive (temp folder or rustup/cargo folder)
- not having right permission for reading and writing in some needed folder
rustup will enter to a infinite loop with same message (different based on on which step it failed on)
I waited for some time and seems like it never exit from the loop... it keep trying and trying but nothing change...
so the only way is using CTRL+C for force close it... but at this point the rust is unusable, and If I try to update again it give me some error message (also different based on on which step it failed on)
I tried so many things to fix this, but nothing worked, at the end the only solution was uninstalling rust using rustup self uninstall and reinstalling it again...
Steps
- Having low space available in drive
c(or any drive that rustup using fortemp diror cargo/rustup folders) or change permission of some files thatrustupwill try to change in update process - Try to update using
rustup updatecommand - when enter to infinite loop of error message, exit from it using
CTRL+C
Possible Solution(s)
- Check for needed size before starting update or any other operation that will write to disk.
- Check to make sure all folders that rustup will read and write to have right write/right permission
Notes
No response
Rustup version
rustup 1.24.3 (ce5817a94 2021-05-31)Installed toolchains
stable-x86_64-pc-windows-msvcSource: rust-lang/rustup