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

Self update fails on Windows ("Access is denied") #1186

Closed
marcogroppo opened this issue Jun 25, 2017 · 4 comments
Closed

Self update fails on Windows ("Access is denied") #1186

marcogroppo opened this issue Jun 25, 2017 · 4 comments

Comments

@marcogroppo
Copy link

I couldn't self-update rustup to 1.5.0 because the rustup.exe file is locked (probably by itself...):

> rustup self update
info: checking for self-updates
info: downloading self-update
info: rustup updated successfully to 1.5.0
error: could not remove 'rustup-bin' file: 'D:\Apps\rust\cargo\bin\rustup.exe'
info: caused by: Access is denied. (os error 5)

> rustup --version
rustup 1.4.0 (a77fbedf2 2017-06-09)

OS: Windows 10 Creators Update

@Diggsey
Copy link
Contributor

Diggsey commented Jun 25, 2017

This happens if you are currently running the RLS.

For example, you may have VSCode open with the rust plugin enabled, in which case the RLS will be constantly running in the background. Can you confirm if that's the issue?

@marcogroppo
Copy link
Author

Yes, you're right: the RLS was running... After terminating it, the update process worked fine. Sorry for the false alarm, I should have checked before posting

@EriKWDev
Copy link

While that is both the issue and still the fix, it would be nice if rustup maybe gave a hint that this is the case. Would it be possible to detect?

@rami3l
Copy link
Member

rami3l commented Feb 12, 2024

Oops, another duplicate of #988. We really need to find some time to fix that... Even a trivial global lock should help.

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

No branches or pull requests

4 participants