Skip to content
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

Problems with .rustup\tmp ..again #3494

Closed
DasLixou opened this issue Sep 30, 2023 · 6 comments
Closed

Problems with .rustup\tmp ..again #3494

DasLixou opened this issue Sep 30, 2023 · 6 comments
Labels

Comments

@DasLixou
Copy link

Problem

It tries to copy files but fails. Already disabled rust-analyzer etc

image

Steps

rustup update

Possible Solution(s)

No response

Notes

No response

Rustup version

rustup 1.26.0 (5af9b9484 2023-04-05)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.72.1 (d5c2e9c34 2023-09-13)`

Installed toolchains

Default host: x86_64-pc-windows-msvc
rustup home:  C:\Users\______\.rustup

installed toolchains
--------------------

stable-x86_64-pc-windows-msvc (default)
nightly-x86_64-pc-windows-msvc

installed targets for active toolchain
--------------------------------------

thumbv6m-none-eabi
thumbv7em-none-eabihf
x86_64-pc-windows-msvc

active toolchain
----------------

stable-x86_64-pc-windows-msvc (default)
rustc 1.72.1 (d5c2e9c34 2023-09-13)
@DasLixou DasLixou added the bug label Sep 30, 2023
@rbtcollins
Copy link
Contributor

I expect there will be an actual error higher up; that bk source directory is the backup, not the original extraction path.

@thoroc
Copy link

thoroc commented Oct 4, 2023

Encountering the exact same issue it seems:

λ rustup update
info: syncing channel updates for 'stable-x86_64-pc-windows-msvc'
info: latest update on 2023-09-19, rust version 1.72.1 (d5c2e9c34 2023-09-13)
info: downloading component 'rust-src'
info: downloading component 'cargo'
info: downloading component 'clippy'
info: downloading component 'rust-docs'
 13.7 MiB /  13.7 MiB (100 %)   9.6 MiB/s in  2s ETA:  0s
info: downloading component 'rust-std'
info: downloading component 'rustc'
 58.0 MiB /  58.0 MiB (100 %)  33.2 MiB/s in  1s ETA:  0s
info: downloading component 'rustfmt'
info: removing previous version of component 'rust-src'
info: removing previous version of component 'cargo'
info: removing previous version of component 'clippy'
info: removing previous version of component 'rust-docs'
info: removing previous version of component 'rust-std'
info: removing previous version of component 'rustc'
info: removing previous version of component 'rustfmt'
info: installing component 'rust-src'
info: installing component 'cargo'
info: rolling back changes
info: retrying renaming 'C:\Users\thoroc\.rustup\tmp\qeh8bgc_vmqh3jwp_dir\bk' to 'C:\Users\thoroc\.rustup\toolchains\stable-x86_64-pc-windows-msvc\share/doc'
info: retrying renaming 'C:\Users\thoroc\.rustup\tmp\qeh8bgc_vmqh3jwp_dir\bk' to 'C:\Users\thoroc\.rustup\toolchains\stable-x86_64-pc-windows-msvc\share/doc'
info: retrying renaming 'C:\Users\thoroc\.rustup\tmp\qeh8bgc_vmqh3jwp_dir\bk' to 'C:\Users\thoroc\.rustup\toolchains\stable-x86_64-pc-windows-msvc\share/doc'
info: retrying renaming 'C:\Users\thoroc\.rustup\tmp\qeh8bgc_vmqh3jwp_dir\bk' to 'C:\Users\thoroc\.rustup\toolchains\stable-x86_64-pc-windows-msvc\share/doc'
info: retrying renaming 'C:\Users\thoroc\.rustup\tmp\qeh8bgc_vmqh3jwp_dir\bk' to 'C:\Users\thoroc\.rustup\toolchains\stable-x86_64-pc-windows-msvc\share/doc'
info: retrying renaming 'C:\Users\thoroc\.rustup\tmp\qeh8bgc_vmqh3jwp_dir\bk' to 'C:\Users\thoroc\.rustup\toolchains\stable-x86_64-pc-windows-msvc\share/doc'
info: retrying renaming 'C:\Users\thoroc\.rustup\tmp\qeh8bgc_vmqh3jwp_dir\bk' to 'C:\Users\thoroc\.rustup\toolchains\stable-x86_64-pc-windows-msvc\share/doc'
info: retrying renaming 'C:\Users\thoroc\.rustup\tmp\qeh8bgc_vmqh3jwp_dir\bk' to 'C:\Users\thoroc\.rustup\toolchains\stable-x86_64-pc-windows-msvc\share/doc'
info: retrying renaming 'C:\Users\thoroc\.rustup\tmp\qeh8bgc_vmqh3jwp_dir\bk' to 'C:\Users\thoroc\.rustup\toolchains\stable-x86_64-pc-windows-msvc\share/doc'
info: retrying renaming 'C:\Users\thoroc\.rustup\tmp\qeh8bgc_vmqh3jwp_dir\bk' to 'C:\Users\thoroc\.rustup\toolchains\stable-x86_64-pc-windows-msvc\share/doc'
info: retrying renaming 'C:\Users\thoroc\.rustup\tmp\qeh8bgc_vmqh3jwp_dir\bk' to 'C:\Users\thoroc\.rustup\toolchains\stable-x86_64-pc-windows-msvc\share/doc'
info: retrying renaming 'C:\Users\thoroc\.rustup\tmp\qeh8bgc_vmqh3jwp_dir\bk' to 'C:\Users\thoroc\.rustup\toolchains\stable-x86_64-pc-windows-msvc\share/doc'
info: retrying renaming 'C:\Users\thoroc\.rustup\tmp\qeh8bgc_vmqh3jwp_dir\bk' to 'C:\Users\thoroc\.rustup\toolchains\stable-x86_64-pc-windows-msvc\share/doc'
info: retrying renaming 'C:\Users\thoroc\.rustup\tmp\qeh8bgc_vmqh3jwp_dir\bk' to 'C:\Users\thoroc\.rustup\toolchains\stable-x86_64-pc-windows-msvc\share/doc'
info: retrying renaming 'C:\Users\thoroc\.rustup\tmp\qeh8bgc_vmqh3jwp_dir\bk' to 'C:\Users\thoroc\.rustup\toolchains\stable-x86_64-pc-windows-msvc\share/doc'
info: retrying renaming 'C:\Users\thoroc\.rustup\tmp\qeh8bgc_vmqh3jwp_dir\bk' to 'C:\Users\thoroc\.rustup\toolchains\stable-x86_64-pc-windows-msvc\share/doc'
info: retrying renaming 'C:\Users\thoroc\.rustup\tmp\qeh8bgc_vmqh3jwp_dir\bk' to 'C:\Users\thoroc\.rustup\toolchains\stable-x86_64-pc-windows-msvc\share/doc'
info: retrying renaming 'C:\Users\thoroc\.rustup\tmp\qeh8bgc_vmqh3jwp_dir\bk' to 'C:\Users\thoroc\.rustup\toolchains\stable-x86_64-pc-windows-msvc\share/doc'
info: retrying renaming 'C:\Users\thoroc\.rustup\tmp\qeh8bgc_vmqh3jwp_dir\bk' to 'C:\Users\thoroc\.rustup\toolchains\stable-x86_64-pc-windows-msvc\share/doc'
info: retrying renaming 'C:\Users\thoroc\.rustup\tmp\qeh8bgc_vmqh3jwp_dir\bk' to 'C:\Users\thoroc\.rustup\toolchains\stable-x86_64-pc-windows-msvc\share/doc'
info: retrying renaming 'C:\Users\thoroc\.rustup\tmp\qeh8bgc_vmqh3jwp_dir\bk' to 'C:\Users\thoroc\.rustup\toolchains\stable-x86_64-pc-windows-msvc\share/doc'
info: retrying renaming 'C:\Users\thoroc\.rustup\tmp\qeh8bgc_vmqh3jwp_dir\bk' to 'C:\Users\thoroc\.rustup\toolchains\stable-x86_64-pc-windows-msvc\share/doc'
info: retrying renaming 'C:\Users\thoroc\.rustup\tmp\qeh8bgc_vmqh3jwp_dir\bk' to 'C:\Users\thoroc\.rustup\toolchains\stable-x86_64-pc-windows-msvc\share/doc'
info: retrying renaming 'C:\Users\thoroc\.rustup\tmp\qeh8bgc_vmqh3jwp_dir\bk' to 'C:\Users\thoroc\.rustup\toolchains\stable-x86_64-pc-windows-msvc\share/doc'
info: retrying renaming 'C:\Users\thoroc\.rustup\tmp\qeh8bgc_vmqh3jwp_dir\bk' to 'C:\Users\thoroc\.rustup\toolchains\stable-x86_64-pc-windows-msvc\share/doc'
info: retrying renaming 'C:\Users\thoroc\.rustup\tmp\qeh8bgc_vmqh3jwp_dir\bk' to 'C:\Users\thoroc\.rustup\toolchains\stable-x86_64-pc-windows-msvc\share/doc'
info: retrying renaming 'C:\Users\thoroc\.rustup\tmp\qeh8bgc_vmqh3jwp_dir\bk' to 'C:\Users\thoroc\.rustup\toolchains\stable-x86_64-pc-windows-msvc\share/doc'
error: could not rename component file from 'C:\Users\thoroc\.rustup\tmp\qeh8bgc_vmqh3jwp_dir\bk' to 'C:\Users\thoroc\.rustup\toolchains\stable-x86_64-pc-windows-msvc\share/doc'
...

As the (failed) update process was taking too long, I just reinstalled, but that's less than ideal.

@rami3l
Copy link
Member

rami3l commented Oct 15, 2023

Looks like it has something to do with file exclusivity on Windows 🤔

@rbtcollins
Copy link
Contributor

This is problably #988 again, under the hood. The error message you have truncated does not show the actual error - it shows the cascaded error when the transactional logic failed during rollback.

@DasLixou
Copy link
Author

image
so i now cant even get to the deletion process....

@rbtcollins
Copy link
Contributor

Thank you. 'error failed to install component' - thats the underlying problem, which is indeed #988.

The permission failed deleting the tmp dir is likely still #3465 unresolved. I don't see other reports like that, which leaves me thinking there is some edge case there. Lets keep troubleshooting that one on that ticket. This one can be closed as a duplicate.

@rbtcollins rbtcollins closed this as not planned Won't fix, can't repro, duplicate, stale Oct 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants