Skip to content

Fail to update and delete VS Code everytime #63396

Closed
@jasonycw

Description

@jasonycw
  • VSCode Version: before 1.29.1 ?
  • OS Version: Windows 10 1809

Steps to Reproduce:

  1. Close VS code
  2. It starts auto update
  3. It failed
  4. Try the retry button, keep failing
  5. Click cancel and error box pop up with the following
Failed to install VS Code update.

Updates may fail due to anti-virus software and/or runaway processes. Please try restarting your machine before attempting to update again.

If update fails repeatedly, please attach the following log file to a new issue on GitHub:

C:\Users\jason_yu\AppData\Local\Temp\vscode-inno-updater-1542591055.log
  1. VS Code is deleted... and no where to be found
  2. Need to download VS Code again (settings, extension are still persist)

Does this issue occur when all extensions are disabled?:
Cannot really test as VS Code is not found anymore after it crash during update and I can only install the latest version


vscode-inno-updater-1542591055.log

Nov 19 09:30:55.464 INFO Starting: C:\Users\jason_yu\AppData\Local\Programs\Microsoft VS Code\Code.exe, true
Nov 19 09:30:55.471 INFO Checking for running Code.exe processes... (attempt 1)
Nov 19 09:30:55.476 INFO Code.exe is running, wait a bit
Nov 19 09:30:55.977 INFO Checking for running Code.exe processes... (attempt 2)
Nov 19 09:30:55.987 INFO Code.exe is running, wait a bit
Nov 19 09:30:56.487 INFO Checking for running Code.exe processes... (attempt 3)
Nov 19 09:30:56.495 INFO Code.exe is not running
Nov 19 09:30:56.495 INFO Checking for possible conflicting running processes... (attempt 1)
Nov 19 09:30:56.503 INFO Inno Updater v0.7.1
Nov 19 09:30:56.503 INFO Starting update, silent = true
Nov 19 09:30:56.514 INFO do_update: "C:\\Users\\jason_yu\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe", _
Nov 19 09:30:56.514 INFO move_update: "C:\\Users\\jason_yu\\AppData\\Local\\Programs\\Microsoft VS Code\\unins000.dat", _
Nov 19 09:30:56.514 INFO Reading directory: "C:\\Users\\jason_yu\\AppData\\Local\\Programs\\Microsoft VS Code"
Nov 19 09:30:56.515 INFO Get file handle: "C:\\Users\\jason_yu\\AppData\\Local\\Programs\\Microsoft VS Code\\api-ms-win-core-console-l1-1-0.dll" (attempt 1)
Nov 19 09:30:56.515 INFO Get file handle: "C:\\Users\\jason_yu\\AppData\\Local\\Programs\\Microsoft VS Code\\api-ms-win-core-datetime-l1-1-0.dll" (attempt 1)
Nov 19 09:30:56.515 INFO Get file handle: "C:\\Users\\jason_yu\\AppData\\Local\\Programs\\Microsoft VS Code\\api-ms-win-core-debug-l1-1-0.dll" (attempt 1)

------- A lot for Get file handle and Reading directory

Nov 19 09:30:56.804 INFO Get file handle: "C:\\Users\\jason_yu\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\ms-vscode.node-debug2\\node_modules\\vscode-chrome-debug-core\\i18n\\rus\\out\\src\\chrome\\stoppedEvent.i18n.json" (attempt 1)
Nov 19 09:30:56.804 INFO Reading directory: "C:\\Users\\jason_yu\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\ms-vscode.node-debug2\\node_modules\\vscode-chrome-debug-core\\i18n\\rus\\out\\src\\transformers"
Nov 19 09:30:56.804 INFO Get file handle: "C:\\Users\\jason_yu\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\ms-vscode.node-debug2\\node_modules\\vscode-chrome-debug-core\\i18n\\rus\\out\\src\\transformers\\baseSourceMapTransformer.i18n.json" (attempt 1)
Nov 19 09:30:56.805 INFO Get file handle: "C:\\Users\\jason_yu\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\ms-vscode.node-debug2\\node_modules\\vscode-chrome-debug-core\\i18n\\rus\\out\\src\\transformers\\remotePathTransformer.i18n.json" (attempt 1)
Nov 19 09:30:56.805 INFO Collected all directories and file handles
Nov 19 09:30:56.820 INFO All file handles marked for deletion
Nov 19 09:30:57.090 INFO All files deleted
Nov 19 09:30:57.090 INFO Delete directory recursively: "C:\\Users\\jason_yu\\AppData\\Local\\Programs\\Microsoft VS Code\\bin" (attempt 1)
Nov 19 09:30:57.141 INFO Delete directory recursively: "C:\\Users\\jason_yu\\AppData\\Local\\Programs\\Microsoft VS Code\\bin" (attempt 2)
Nov 19 09:30:57.342 INFO Delete directory recursively: "C:\\Users\\jason_yu\\AppData\\Local\\Programs\\Microsoft VS Code\\bin" (attempt 3)
Nov 19 09:30:57.793 INFO Delete directory recursively: "C:\\Users\\jason_yu\\AppData\\Local\\Programs\\Microsoft VS Code\\bin" (attempt 4)
Nov 19 09:30:58.593 INFO Delete directory recursively: "C:\\Users\\jason_yu\\AppData\\Local\\Programs\\Microsoft VS Code\\bin" (attempt 5)
Nov 19 09:30:59.844 INFO Delete directory recursively: "C:\\Users\\jason_yu\\AppData\\Local\\Programs\\Microsoft VS Code\\bin" (attempt 6)
Nov 19 09:31:01.645 INFO Delete directory recursively: "C:\\Users\\jason_yu\\AppData\\Local\\Programs\\Microsoft VS Code\\bin" (attempt 7)
Nov 19 09:31:04.096 INFO Delete directory recursively: "C:\\Users\\jason_yu\\AppData\\Local\\Programs\\Microsoft VS Code\\bin" (attempt 8)
Nov 19 09:31:07.297 INFO Delete directory recursively: "C:\\Users\\jason_yu\\AppData\\Local\\Programs\\Microsoft VS Code\\bin" (attempt 9)
Nov 19 09:31:11.347 INFO Delete directory recursively: "C:\\Users\\jason_yu\\AppData\\Local\\Programs\\Microsoft VS Code\\bin" (attempt 10)
Nov 19 09:31:16.348 INFO Delete directory recursively: "C:\\Users\\jason_yu\\AppData\\Local\\Programs\\Microsoft VS Code\\bin" (attempt 11)
Nov 19 09:31:22.336 INFO Delete directory recursively: "C:\\Users\\jason_yu\\AppData\\Local\\Programs\\Microsoft VS Code\\bin" (attempt 1)
Nov 19 09:31:22.387 INFO Delete directory recursively: "C:\\Users\\jason_yu\\AppData\\Local\\Programs\\Microsoft VS Code\\bin" (attempt 2)
Nov 19 09:31:22.587 INFO Delete directory recursively: "C:\\Users\\jason_yu\\AppData\\Local\\Programs\\Microsoft VS Code\\bin" (attempt 3)
Nov 19 09:31:23.039 INFO Delete directory recursively: "C:\\Users\\jason_yu\\AppData\\Local\\Programs\\Microsoft VS Code\\bin" (attempt 4)
Nov 19 09:31:23.840 INFO Delete directory recursively: "C:\\Users\\jason_yu\\AppData\\Local\\Programs\\Microsoft VS Code\\bin" (attempt 5)
Nov 19 09:31:25.091 INFO Delete directory recursively: "C:\\Users\\jason_yu\\AppData\\Local\\Programs\\Microsoft VS Code\\bin" (attempt 6)
Nov 19 09:31:26.891 INFO Delete directory recursively: "C:\\Users\\jason_yu\\AppData\\Local\\Programs\\Microsoft VS Code\\bin" (attempt 7)
Nov 19 09:31:29.342 INFO Delete directory recursively: "C:\\Users\\jason_yu\\AppData\\Local\\Programs\\Microsoft VS Code\\bin" (attempt 8)
Nov 19 09:31:32.543 INFO Delete directory recursively: "C:\\Users\\jason_yu\\AppData\\Local\\Programs\\Microsoft VS Code\\bin" (attempt 9)
Nov 19 09:31:36.594 INFO Delete directory recursively: "C:\\Users\\jason_yu\\AppData\\Local\\Programs\\Microsoft VS Code\\bin" (attempt 10)
Nov 19 09:31:41.595 INFO Delete directory recursively: "C:\\Users\\jason_yu\\AppData\\Local\\Programs\\Microsoft VS Code\\bin" (attempt 11)
Nov 19 09:31:43.424 ERRO The process cannot access the file because it is being used by another process. (os error 32)

Activity

trotro

trotro commented on Nov 20, 2018

@trotro

I have the same problem and the process that keeps the update failing is from vscode. Seems like the child update process is failing because of a lock from its parent.

joaomoreno

joaomoreno commented on Nov 22, 2018

@joaomoreno
Member

/duplicate #60697

added
*duplicateIssue identified as a duplicate of another issue(s)
on Nov 22, 2018
jasonycw

jasonycw commented on Nov 22, 2018

@jasonycw
Author

@joaomoreno but I don't have Skype or Skype for Business install on my PC
Instead I got Microsoft Team, Outlook, Visual Studio, MSSQL, etc

joaomoreno

joaomoreno commented on Nov 23, 2018

@joaomoreno
Member

Yeah, I'm pretty sure Skype for Business isn't the culprit, but looking at it might take us a step closer to solving the puzzle.

locked and limited conversation to collaborators on Jan 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

*duplicateIssue identified as a duplicate of another issue(s)install-updateVS Code installation and upgrade system issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @joaomoreno@jasonycw@trotro@cleidigh

      Issue actions

        Fail to update and delete VS Code everytime · Issue #63396 · microsoft/vscode