-
Notifications
You must be signed in to change notification settings - Fork 892
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) #1869
Comments
I'm seeing the issue on regular update (NOT self) on Windows 10 without any Cisco AMP.
|
We do a self-update at the end of any update anyway. So that's the same codepath. This error could also easily be that we've a proxy still running or somesuch. I'm considering a |
@eddyp I consider your case to be a little different: yours is failing to remove the old @kinnison I can try testing your fix to see if it works with Cisco AMP. My concern is that it will suffer from the same problem, regardless of whether you're copying or renaming, since the underlying problem is that the destination file still exists even though the OS reported it as successfully removed. |
We're hoping that #1873 might resolve this at least a bit. |
Hmm, I doubt 1873 will resolve this, but yeah will it interact - it will certainly permit folk time to close IDE's or have compiles exit before it errors. @doxx can you please use process monitor or WPA or similar to get a trace of handle activity on the files in |
@rbtcollins Here's a Process Monitor dump of all the file access to the ZIP includes PML and CSV formats of the same data: |
The |
I'm closing this in favour of #2441; I think the retries proposed in it will solve it. |
Problem
rustup self update
fails with an access denied error on Windows 10 with Cisco AMP for Endpoints installed.Output:
Possible Solution(s)
Cisco AMP does some funky stuff with file deletions, especially executables. I've personally experienced the following sequence of events:
My theory is that Cisco AMP interferes in the file deletion code path, returns a success code to the caller but doesn't actually delete the file until it has finished scanning it.
It's possible that if
rustup self update
is attempting to delete the oldrustup.exe
and immediately copy in a replacement, then Cisco AMP is interfering. Retrying a few times over a few seconds may workaround this.Notes
Output of
rustup --version
:(this is the version I was updating to)
Output of
rustup show
:The text was updated successfully, but these errors were encountered: