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
Update failing #60071
Comments
I got the exact same issue. Same error messages, same log file, except the user name in the profile folder. Task manager shows no running code.exe tasks, but when uninstalling / trying to delete the "AppData\Local\Programs\Microsoft VS Code" folder, even the explorer complains that it can't delete the folder, because code.exe and inno_updater.exe are still in use. Weird thing is, the task manager does not show it running. Neither for my user, nor for any other user or the system itself. |
@OverLordGoldDragon @totkeks Did you get a |
@joaomoreno I didn't; it occurs after closing VSCode - where it attempts to update with the progress bar stuck empty at 0%, then closes in 1-2 mins and displays the error. When I attempt to manually update with VSCode open, I get a window with 'Retry', 'Abort', and 'Ignore' options. Furthermore, I also observe exactly what @totkets described. |
@joaomoreno Okay, I just started from scratch with a 1.27.2 UserSetup-x64. I completely removed the Next I start code, my last project loads and the cog in the bottom left shows the clock icon. I wait until it switches to a "1". Next I click "Restart to Update...". After roughly a minute this window appears: After roughly another minute the same window appears again. I select retry again. After roughly another minute the window appears again. I select cancel this time. Now this window appears: I select ok, the window disappears as well as the little "Updating VS Code..." window. Additionally this window pops up after roughly another minute: After a couple of seconds the windows pops up again. I select cancel. No more windows / errors appear. Code also didn't check for the update again (no clock on the bottom left cog). First I wanted to ask if I can help debug this somehow, because I got visual studio on my PC, but then I saw that the updater is written in Rust, which I never used yet. With C++ or C# it would be easier for me. But maybe I can still help. |
I have seen this exact same behaviour (file is still in use) since switching to the user installer, whenever Code tries to update itself. If I download the standalone installer and run it after an automatic update fails, I see the same issue. I can update using the standalone installer after a reboot. |
Yes, that's because something locks the code.exe file and never releases it. A reboot does this. |
Sorry, missed your reply until now, but I saw the same behaviour again when updating to version 1.28.1. When I got the "The process cannot access the file..." message I went to the Code install folder and tried renaming Code.exe, just to see what would happen. I got a message saying that it was locked by System: Searching for handles on Code.exe in Process Explorer returns zero results. |
Same error here as well. This has happened to me when updating twice in a row now. My current version information: With the updater is running, I did a search in Process Explorer for Code.exe and it shows that there is an open handle from the System process and I am unable to kill it (Access Denied). Rebooting does not resolve the issue. |
Has there been any progress on this? I'm facing the same issue today. |
There are two main issues surrounding this:
Both can be worked around by disabling background updates: |
I might add that the workaround requires a restart of the PC if code.exe is still locked by the hidden process. @joaomoreno I completely reinstalled my windows 10 (for some other reason) and all was fine for one or two updates. but now the error on update is back. Is there any way I could help debugging this? |
@totkeks Any chance you remember what you have installed between the two phases (working vs. not working)? |
When opening a file, VS Code attempts to update, displays the following error: https://puu.sh/BGGZl/282f97f70d.png OS info: https://puu.sh/BGH3L/3e22323f78.png
The issue's persisted for ~2 weeks now. Folder filepath added to antivirus exceptions, no avail. The program otherwise works fine, with no detected problems. Error log attached.
vscode-inno-updater-1538847353.log
The text was updated successfully, but these errors were encountered: