-
Notifications
You must be signed in to change notification settings - Fork 29.2k
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
Windows update failed: Access is denied #47841
Comments
(Experimental duplicate detection) |
This is a puzzle to me, because we know Code isn't running... so why can't the updater remove Code... unless it is really running? @ryanolsonx @gitDylanHub @OfficerHalf @SwingCoder911 Can you run this little app I've created, while Code is running? rust-playground.zip It will output all running process numbers and names. Something like this: Does Code appear in that list, for you? Can you show me the output of the app in your system? |
I'll do you one better. I'm attaching the output of that before running the update, while running the update, and at the point when I get the error message. It certainly doesn't look like Code is running. That doesn't necessarily mean that some other process isn't preventing its deletion, though. |
@OfficerHalf Awesome, it's great that you can reliably reproduce it. Any thoughts on who might be preventing that deletion? Just to confirm, the setup runs elevated, correct? Does the |
Well, there are at least two pieces of security software running on my machine: ESET Security and CrowdStrike Falcon (though CrowdStrike is a recent addition, and I think this issue was present before it was installed), neither of which I have any control over. There are also various other controls in place as this is a managed Enterprise installation of Windows. I have co-workers that use Code without issue though so I doubt it's those. My guess was more along the lines of zombie processes spawned by Code that were still holding some resource. A quick check in the task manager shows that all three update processes (inno_updater.exe, CodeSetup-insider-guid.exe, and CodeSetup-insider-guid.tmp) are elevated. |
OK. I just need you to use the task manager and find those zombie processes and what is their full command line. |
FindZombieHandles reports nothing. I'm at a loss. |
And can you manually delete the executable file yourself, in the file explorer? |
I can delete it manually. Even attempted to do so during the update, though it still failed with a complaint that the file didn't exist. Make up your mind, updater... 😁 |
The updater, as admin, can't. Yet you can easily delete it. 🤔 Did you get an elevation prompt to delete the file? |
I was not asked to elevate. I just get the usual 'are you sure you want to delete this' prompt. |
Same issue that was originally reported here with the most recent update as well. So, had this issue on 1.22 and again now on 1.23. Be kind of annoying if I have to uninstall and download to get the latest features. Definitely a work related only issue though, can update on my personal easily. Probably good old McAfee locking everything down in the registries with some unique rule. |
It also happens on my home computer, which is not in a domain. |
I also run Vivaldi and have the SAME issue! I thought it was just me! |
@arencambre It does not seem to be highly correlated to domain-joined computers. My domain-joined work computer has no issues updating VS Code (regular or Insiders) nor Vivaldi (which also installs into Therefore, as I stated previously, this issue is not a VS Code-specific issue, but is probably a machine-specific issue. (I'm leaning towards ruling out the installer because it's not the installer which has a problem, rather, it's the In my case, on my work computer they use Sophos Anti-Virus--again, this computer does not have an issue updating VS Code. On my home computer, I'm running Trend Micro Maximum Security, the latest version. It may be helpful if others also list their anti-virus program in use to see if there are any program and/or configuration commonalities that could help determine why the |
Here's my setup:
Both my laptop and my desktop are set up the same as above and exhibit the same problem. I just uninstalled VS Code User and installed VS Code System. Seems to have fixed the problem. |
@brotherdust Thanks for the info. Yes, the system-wide installation does not exhibit this problem (to my knowledge) because it's installed to One question: since you're running Windows 10 1809 and Windows Defender, did you enable the new anti-ransomware folder protection feature? Trend Micro has a similar feature that's been around for a while now and I am using it on some folders (though, not the |
Hm...I also have Vivaldi...
…On Thu, Oct 11, 2018 at 12:39 PM Craig E. Shea ***@***.***> wrote:
@brotherdust <https://github.com/brotherdust> Thanks for the info. Yes,
the system-wide installation does not exhibit this problem (to my
knowledge) because it's installed to %Program Files%. I, too, have
resorted to using the system-wide installation on my home computer due to
the update issues.
One question: since you're running Windows 10 1809 and Windows Defender,
did you enable the new anti-ransomware folder protection feature? Trend
Micro has a similar feature that's been around for a while now and I am
using it on some folders (though, not the %userprofile%\AppData folder).
If so, is it possible for you to list the locations you've enabled it for
(just use the well-known folder names such as Documents, Pictures, etc.,
not the full path to those folders. And also note if you've used the
feature on other not well-known folders, e.g. C:\some-other-folder—I
don't want to know the actual path, just whether or not you're using the
feature outside of well-known folders as well).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#47841 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAALTIOQysz_b7HuDyD8HVckEYfIPxe8ks5uj55ogaJpZM4TTz7T>
.
--
Scott Hanselman
Donate to fight diabetes: http://hnsl.mn/fightdiabetes
|
But I don't think vivaldi's the cause though (I don't have it). |
No no, I’m not saying Vivaldi is the cause; I’m saying that Vivaldi installs into a similar location as VS Code and that it, too, fails to update in the same way as VS Code. So there's an element of commonality in the behavior of updating both of these applications.
Regards
…Sent from my Windows 10 phone
From: Mårten Nordheim
Sent: Friday, October 12, 2018 2:50
To: Microsoft/vscode
Cc: Craig E. Shea; Comment
Subject: Re: [Microsoft/vscode] Windows update failed: Access is denied(#47841)
But I don't think vivaldi's the cause though (I don't have it).
Also had this issue before 1809 so it's not because of the anti-ransomware feature.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
So, this worked on my Dell XPS 13 but still fails on my Asus Transformer Pro |
Will give Vivaldi a try... @shanselman is this happening to you on every update? |
I don't have Vivaldi installed and am also having this issue |
Ever since I switched to the user-based installation this is now happening to me ever since. vscode is incapable of updating itself now, always claiming it cannot access Code.exe. What I have noticed though (whenever I remember to check) is that the System process (pid 4) has a lock on Code.exe which remains locked even when vscode and the udpater exit. I can't even delete the file by hand at this point. Occasionally new locks are added within System when the update process attempts to run again. Needless to say when that happens not even the manually downloaded installer can do anything until I restart the machine. |
I'm also having this exact same issue. I need to download the new installer from the website, reboot, and install it first thing for it to succeed. This was the issue I posted weeks ago: #58743 (comment) |
@Morten242 Well, it may still be a "ransomware feature". As I mentioned earlier, I use Trend Micro Maximum Security which has had a "ransomware folder protection" feature since late 2017 (so, since around Windows 1803, possibly even 1709) and I've been using it on my And as far as Vivaldi, for the 3rd time, I'm not saying it's causing anything, but that it also exhibits the same update failure behavior as VS Code (SYSTEM process holding a lock on critical files causing updates to fail), which is leading me to believe that this issue may be more specific to a machine configuration than an actual problem with VS Code itself (or Vivaldi, for that matter). |
@fourpastmidnight Except, all I have is Defender and I did not turn on the ransomware protection and I still get this on VSCode and Twitch (Starting to think Discord as well now unless they are truly pushing daily updates with no changelog) |
@WindFox Cool! It's just one more thing to potentially rule out. Thanks! |
same issue with me with the exact same description from other members. Edit> It's really bad for as i can't even uninstall vscode or reinstall it because both |
Can we change the name of this issue? This isn't about Windows Update. |
Thanks for all the info guys, will continue investigating this. Meanwhile, I'll lock this thread so everyone sees this: If you're having this issue constantly, disable background updates with
|
Log from %HOME%\AppData\Local\Temp\vscode-inno-updater.log
On Windows 10 64 bit
The text was updated successfully, but these errors were encountered: