vscode: On Update, getting error "Unable to write program user data. Please make sure the following directories are writeable: %appdata%\Code - Insiders %userprofile%\.vscode-insiders\extensions"
Issue Type: Bug
Update VS Code from inside VS Code Insiders.
-
Notice unread notification on gear ⚙️ icon at the bottom right.
-
Click gear ⚙️ icon at the bottom right.
-
Read that there is a pending update.
-
Apply pending update.
-
See “Restart VS Code to Apply the Latest Update” notification
-
Agree to Restart VS Code.
-
Observe error

-
Close error and start VS Code again.
-
No error.
-
Check folder ACL on the directories previously specified
$ get-acl "C:\Users\MavaddatJavid\AppData\Roaming\Code - Insiders" | format-list
Path : Microsoft.PowerShell.Core\FileSystem::C:\Users\MavaddatJavid\AppData\Roami
ng\Code - Insiders
Owner : AzureAD\MavaddatJavid
Group : AzureAD\MavaddatJavid
Access : NT AUTHORITY\SYSTEM Allow FullControl
BUILTIN\Administrators Allow FullControl
AzureAD\MavaddatJavid Allow FullControl
Audit :
Sddl : O:S-1-12-1-2941577397-1290600311-2526306719-593552033G:S-1-12-1-2941577397
-1290600311-2526306719-593552033D:(A;OICIID;FA;;;SY)(A;OICIID;FA;;;BA)(A;O
ICIID;FA;;;S-1-12-1-2941577397-1290600311-2526306719-593552033)
$ get-acl "c:\Users\MavaddatJavid\.vscode-insiders\extensions" | format-list
Path : Microsoft.PowerShell.Core\FileSystem::C:\Users\MavaddatJavid\.vscode-insid
ers\extensions
Owner : AzureAD\MavaddatJavid
Group : AzureAD\MavaddatJavid
Access : NT AUTHORITY\SYSTEM Allow FullControl
BUILTIN\Administrators Allow FullControl
AzureAD\MavaddatJavid Allow FullControl
Audit :
Sddl : O:S-1-12-1-2941577397-1290600311-2526306719-593552033G:S-1-12-1-2941577397
-1290600311-2526306719-593552033D:(A;OICIID;FA;;;SY)(A;OICIID;FA;;;BA)(A;O
ICIID;FA;;;S-1-12-1-2941577397-1290600311-2526306719-593552033)
VS Code version: Code - Insiders 1.53.0-insider (c927a8015b9e26bd454d6e293bb0384aa1975d06, 2020-12-18T05:27:48.567Z) OS version: Windows_NT x64 10.0.20279
System Info
| Item | Value |
|---|---|
| CPUs | Intel® Core™ i7-3540M CPU @ 3.00GHz (4 x 2990) |
| GPU Status | 2d_canvas: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: enabled opengl: enabled_on protected_video_decode: unavailable_off rasterization: enabled skia_renderer: enabled_on video_decode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled |
| Load (avg) | undefined |
| Memory (System) | 15.91GB (5.35GB free) |
| Process Argv | –crash-reporter-id 5fbb05cc-8424-46f5-a920-45fc0475991e |
| Screen Reader | no |
| VM | 0% |
Extensions (50)
| Extension | Author (truncated) | Version |
|---|---|---|
| npm-intellisense | chr | 1.3.1 |
| vscode-crowdin | Cro | 1.0.6 |
| vscode-markdownlint | Dav | 0.38.0 |
| vscode-eslint | dba | 2.1.14 |
| java-decompiler | dgi | 0.0.2 |
| githistory | don | 0.6.14 |
| prettier-vscode | esb | 5.8.0 |
| vscode-todo-plus | fab | 4.18.0 |
| git-project-manager | fel | 1.7.1 |
| code-runner | for | 0.11.1 |
| beautify | Hoo | 1.5.0 |
| latex-workshop | Jam | 8.15.0 |
| vscode-peacock | joh | 3.9.1 |
| cornflakes-linter | kev | 0.5.1 |
| vscode-codemetrics | kis | 1.24.0 |
| vscode-github | Kni | 0.30.4 |
| bash-ide-vscode | mad | 1.11.0 |
| vscode-azurefunctions | ms- | 1.1.0 |
| vscode-docker | ms- | 1.9.0 |
| csharp | ms- | 1.23.8 |
| jupyter | ms- | 2020.12.414227025 |
| remote-containers | ms- | 0.154.1 |
| remote-wsl | ms- | 0.52.0 |
| azure-account | ms- | 0.9.4 |
| cpptools | ms- | 1.1.3 |
| powershell-preview | ms- | 2020.9.0 |
| vscode-typescript-next | ms- | 4.2.20201211 |
| vsliveshare | ms- | 1.0.3375 |
| vsliveshare-pack | ms- | 0.4.0 |
| debugger-for-chrome | msj | 4.12.11 |
| autodocstring | njp | 0.5.4 |
| vscode-for-node-js-development-pack | nod | 2.0.1 |
| subtitles-editor | pep | 1.1.3 |
| geo-data-viewer | Ran | 2.3.0 |
| java | red | 0.73.0 |
| vscode-xml | red | 0.14.0 |
| LiveServer | rit | 5.6.1 |
| code-settings-sync | Sha | 3.4.3 |
| vscode-checkstyle | she | 1.3.3 |
| sonarlint-vscode | Son | 1.19.0 |
| code-spell-checker | str | 1.10.2 |
| vscodeintellicode | Vis | 1.2.10 |
| vscode-java-debug | vsc | 0.30.0 |
| vscode-java-dependency | vsc | 0.16.0 |
| vscode-java-pack | vsc | 0.12.1 |
| vscode-java-test | vsc | 0.26.1 |
| vscode-maven | vsc | 0.27.0 |
| vscode-import-cost | wix | 2.13.0 |
| vscode-preview-server | yui | 1.3.0 |
| markdown-all-in-one | yzh | 3.4.0 |
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368cf:30146710
vsreu685:30147344
openlogontheside:30221882
python763:30178808
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
python504:30227505
vswsl492:30208929
wsl2prompt:30219162
vstry914:30230485
pythonvsdeb440:30224570
unusedprompt:30219164
folderexplorercf:30219167
openfilemenu:30219168
pythonvsded773:30223139
pythonvspyt859:30237612
core-portspanelcf:30233468
Does this issue occur when all extensions are disabled?: No.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 29 (12 by maintainers)
Commits related to this issue
- include error into startup error dialog (#112846) — committed to microsoft/vscode by bpasero 3 years ago
I lost track of whether you have attempted to back up, uninstall and reinstall, in order to fix this. This would be my suggestion as well.
Not really sure, but the background updater seems to mess with your system. Let’s keep it this way for now 👌
@mavaddat thanks for the findings, please keep us posted what you find out. I am not an expert in how the installer works on Windows, so I am assigning back to Joao.