Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Could not rename component directory #623

Closed
leshow opened this issue Dec 10, 2017 · 8 comments
Closed

Could not rename component directory #623

leshow opened this issue Dec 10, 2017 · 8 comments

Comments

@leshow
Copy link

leshow commented Dec 10, 2017

I'm not sure what's going on here, but it appears I can't update the nightly channel rls

~
❯ rustup update nightly
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'
info: latest update on 2017-12-10, rust version 1.24.0-nightly (6fa53b00e 2017-12-09)
info: downloading component 'rustc'
info: downloading component 'rust-std'
info: downloading component 'cargo'
info: downloading component 'rust-docs'
info: downloading component 'rust-std' for 'wasm32-unknown-unknown'
info: downloading component 'rls-preview'
info: downloading component 'rust-std' for 'asmjs-unknown-emscripten'
info: downloading component 'rust-std' for 'wasm32-unknown-emscripten'
info: downloading component 'rust-analysis'
info: downloading component 'rust-src'
info: removing component 'rustc'
info: removing component 'rust-std'
info: removing component 'cargo'
info: removing component 'rust-docs'
info: removing component 'rust-std' for 'wasm32-unknown-unknown'
info: removing component 'rls-preview'
warning: during uninstall component rls-preview-x86_64-unknown-linux-gnu was not found
info: removing component 'rust-std' for 'asmjs-unknown-emscripten'
warning: during uninstall component rust-std-asmjs-unknown-emscripten was not found
info: removing component 'rust-std' for 'wasm32-unknown-emscripten'
warning: during uninstall component rust-std-wasm32-unknown-emscripten was not found
info: removing component 'rust-analysis'
warning: during uninstall component rust-analysis-x86_64-unknown-linux-gnu was not found
info: removing component 'rust-src'
warning: during uninstall component rust-src was not found
info: installing component 'rustc'
info: installing component 'rust-std'
info: installing component 'cargo'
info: installing component 'rust-docs'
info: installing component 'rust-std' for 'wasm32-unknown-unknown'
info: installing component 'rls-preview'
info: rolling back changes
error: could not rename component directory from '/home/leshow/.rustup/tmp/hbfsmobors2os9yn_dir/bk' to '/home/leshow/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown'
error: could not rename component directory from '/home/leshow/.rustup/tmp/vh0htas8nm5nkz_8_dir/bk' to '/home/leshow/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/share/zsh'
error: could not rename component directory from '/home/leshow/.rustup/tmp/8p130ly86kelgxwc_dir/bk' to '/home/leshow/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/etc'
error: could not rename component directory from '/home/leshow/.rustup/tmp/kqdda_n17nu3wri3_dir/bk' to '/home/leshow/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/share/man'
error: failed to install component: 'rls-preview-x86_64-unknown-linux-gnu', detected conflict: '"share/doc/rls/LICENSE-MIT"'

Why is it removing my components? then trying to install things that depend on them?

@jcouture
Copy link

jcouture commented May 4, 2018

I’ve just experienced a similar error.

Here is a few possibly interesting information:

macOS 10.13.4 (17E199)
~> uname -a
Darwin rocket.local 17.5.0 Darwin Kernel Version 17.5.0: Mon Mar  5 22:24:32 PST 2018; root:xnu-4570.51.1~1/RELEASE_X86_64 x86_64
~> rustup --version
rustup 1.11.0 (e751ff9f8 2018-02-13)
~> rustc —version
rustc 1.26.0-nightly (0ff9872b2 2018-02-28)
~> rustup toolchain list
stable-x86_64-apple-darwin
nightly-x86_64-apple-darwin (default)

~> rustup target list
rustup target list - Pastebin.com

~> rustup --verbose update nightly
rustup update nightly - Pastebin.com

Is that any help? What should I do to update my nightly installation?

Thanks.

@nrc
Copy link
Member

nrc commented May 5, 2018

This is probably an issue with different policies for installing the RLS across versions of Rustup. Currently we don't issue a nightly if tools like RLS and Rustfmt are broken (which is currently true). Older Rustup might not be expecting that. You could wait and try again in a few days when we issue a new nightly. If there is still a problem , then try updating Rustup before the toolchains.

@jcouture
Copy link

jcouture commented May 6, 2018

Hey nrc! Thanks for the follow-up. I’ll try again with the next nightly build.

@leshow leshow closed this as completed May 18, 2018
@Kixunil
Copy link

Kixunil commented Aug 29, 2018

I've just hit similar issue but on stable:

info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: latest update on 2018-08-02, rust version 1.28.0 (9634041f0 2018-07-30)
info: downloading component 'rustc'
info: downloading component 'rust-std'
info: downloading component 'cargo'
info: downloading component 'rust-docs'
info: downloading component 'rust-src'
info: removing component 'rustc'
info: removing component 'rust-std'
info: removing component 'cargo'
info: removing component 'rust-docs'
info: removing component 'rust-src'
info: installing component 'rustc'
info: rolling back changes
error: could not rename component file from '/home/user/.rustup/tmp/j6k5f11r8aaev3mw_dir/bk' to '/home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share'
error: could not rename component file from '/home/user/.rustup/tmp/r8i9vppqexv21_0x_dir/bk' to '/home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/doc'
error: could not rename component file from '/home/user/.rustup/tmp/dp3wgxia7pxt7ftr_dir/bk' to '/home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/man'
error: could not rename component file from '/home/user/.rustup/tmp/od7tzy2vmag93nk1_dir/bk' to '/home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu'
error: could not rename component file from '/home/user/.rustup/tmp/sz3g0tzw3if8m5q__dir/bk' to '/home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin'
error: could not copy file from '/home/user/.rustup/tmp/3braa0uannzuuypm_dir/rustc/lib/rustlib/x86_64-unknown-linux-gnu/bin/lld' to '/home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/lld'
info: checking for self-updates

  stable-x86_64-unknown-linux-gnu update failed - rustc 1.27.0 (3eda71b00 2018-06-19)

OS: QubesOS Debian template (version 9.5) kernel version 4.14.18-1.pvops.qubes.x86_64

$ rustup toolchain list
stable-x86_64-unknown-linux-gnu (default)

Any idea?

@xoac
Copy link

xoac commented Nov 6, 2018

I had the same problem. And this is first hit on duckduckgo - so I link to real problem: "No space left on device"

rust-lang/rustup#1245

@Kixunil
Copy link

Kixunil commented Nov 7, 2018

Ah, thanks! Qubes only giving 2G of space to VMs is sometimes annoying...

@mirosval
Copy link

I have just run into the same problem, solved it by first uninstalling nightly and then installing it again:
rustup toolchain uninstall nightly-x86_64-apple-darwin
rustup toolchain install nightly

@LucasLarson
Copy link

@mirosval’s solution also works for stable-x86_64-apple-darwin:
rustup toolchain uninstall stable-x86_64-apple-darwin
rustup toolchain install stable-x86_64-apple-darwin

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants