Repository: vscode
Issue: Installation error when home directory is read-only
Labels: install-update,ssh


Type: <b>Bug</b>

On my embedded system, the HOME directory is not writeable. While the installation still succeeds, it emits the following error message:

```
[06:51:43.600] [server] 
[06:51:43.885] [server] [20:51:43] [Error: ENOENT: no such file or directory, mkdir '/home/root/.cache'] {
[06:51:43.886] [server]   errno: -2,
[06:51:43.886] [server]   code: 'ENOENT',
[06:51:43.887] [server]   syscall: 'mkdir',
[06:51:43.952] [server] [20:51:43] Extension host agent started.
[06:51:44.931] [server] [20:51:44] [<unknown>][6d3e24e2][ManagementConnection] New connection established.
[06:51:44.940] [server] [20:51:44] [<unknown>][60363bb5][ExtensionHostConnection] New connection established.
[06:51:45.864] [server] [20:51:45] [<unknown>][60363bb5][ExtensionHostConnection] <22328> Launched Extension Host Process.
[06:51:54.389] Opening exec server for ssh-remote+265
[06:51:54.393] [server] rejected promise not handled within 1 second: CodeExpectedError: Could not find pty on pty host
```

Perhaps this `/home/root/.cache` directory ought to be created under the `serverInstallPath`.  E.g. since my embedded system has a read-only HOME, I use:

```remote.SSH.serverInstallPath": {
    "myembeddedhost": "/store",
}
```



VS Code version: Code 1.91.1 (f1e16e1e6214d7c44d078b1f0607b2388f29d729, 2024-07-09T22:06:49.809Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Remote OS version: Linux x64 4.18.0-425.13.1.el8_7.x86_64
Remote OS version: Linux x64 5.14.21-150400.24.100-default
Remote OS version: Linux x64 5.14.21-150400.24.100-default
Remote OS version: Linux x64 5.14.21-150400.24.100-default
Remote OS version: Linux x64 3.10.0-1160.119.1.el7.x86_64
Remote OS version: Linux arm64 6.1.55-rt16+g539895156e09

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-10850H CPU @ 2.70GHz (12 x 2712)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: enabled_on<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_graphite: disabled_off<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled|
|Load (avg)|undefined|
|Memory (System)|127.78GB (110.57GB free)|
|Process Argv|--crash-reporter-id dd45e201-97c0-4468-a4cc-50162051a8ee|
|Screen Reader|no|
|VM|0%|

|Item|Value|
|---|---|
|Remote|SSH: ipv6logo.chf|
|OS|Linux x64 4.18.0-425.13.1.el8_7.x86_64|
|CPUs|Intel(R) Xeon(R) Platinum 8380HL CPU @ 2.90GHz (4 x 0)|
|Memory (System)|15.46GB (11.36GB free)|
|VM|100%|

|Item|Value|
|---|---|
|Remote|SSH: mfw30|
|OS|Linux x64 5.14.21-150400.24.100-default|
|CPUs|Intel(R) Xeon(R) Platinum 8380HL CPU @ 2.90GHz (72 x 0)|
|Memory (System)|376.54GB (329.97GB free)|
|VM|100%|

|Item|Value|
|---|---|
|Remote|SSH: mfw30|
|OS|Linux x64 5.14.21-150400.24.100-default|
|CPUs|Intel(R) Xeon(R) Platinum 8380HL CPU @ 2.90GHz (72 x 0)|
|Memory (System)|376.54GB (329.97GB free)|
|VM|100%|

|Item|Value|
|---|---|
|Remote|SSH: mfw30|
|OS|Linux x64 5.14.21-150400.24.100-default|
|CPUs|Intel(R) Xeon(R) Platinum 8380HL CPU @ 2.90GHz (72 x 0)|
|Memory (System)|376.54GB (329.97GB free)|
|VM|100%|

|Item|Value|
|---|---|
|Remote|SSH: manowar|
|OS|Linux x64 3.10.0-1160.119.1.el7.x86_64|
|CPUs|Intel(R) Xeon(R) Platinum 8380HL CPU @ 2.90GHz (2 x 0)|
|Memory (System)|3.70GB (1.64GB free)|
|VM|100%|

|Item|Value|
|---|---|
|Remote|SSH: 265|
|OS|Linux arm64 6.1.55-rt16+g539895156e09|
|CPUs|Cortex-A72 (2 x 800)|
|Memory (System)|1.87GB (1.01GB free)|
|VM|0%|
</details><details><summary>Extensions (30)</summary>

Extension|Author (truncated)|Version
---|---|---
Bookmarks|ale|13.5.0
numbered-bookmarks|ale|8.5.0
systemd-unit-file|coo|1.0.6
es7-react-js-snippets|dsz|4.4.3
react-native-react-redux|EQu|2.0.6
auto-close-tag|for|0.5.15
auto-rename-tag|for|0.1.10
remotehub|Git|0.62.0
CppSnippets|har|0.0.15
better-cpp-syntax|jef|1.27.1
vsc-python-indent|Kev|1.18.0
AWK|lug|0.0.2
Angular-BeastCode|Mik|17.0.4
vscode-apache|mrm|1.2.0
jupyter-keymap|ms-|1.1.2
remote-containers|ms-|0.375.1
remote-ssh|ms-|0.112.0
remote-ssh-edit|ms-|0.86.0
remote-wsl|ms-|0.88.2
vscode-remote-extensionpack|ms-|0.25.0
azure-repos|ms-|0.38.0
remote-explorer|ms-|0.4.3
remote-repositories|ms-|0.40.0
remote-server|ms-|1.5.2
vscode-speech|ms-|0.10.0
devicetree|plo|0.1.1
rewrap|stk|1.16.3
vscode-todo-highlight|way|1.0.5
jinja|who|0.0.8
JavaScriptSnippets|xab|1.8.0


</details><details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
vscoreces:30445986
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
vscaat:30438848
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonnoceb:30805159
asynctok:30898717
pythonregdiag2:30936856
pythonmypyd1:30879173
2e7ec940:31000449
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
g316j359:31013175
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
dwnewjupytercf:31046870
impr_priority:31102340
nativerepl1:31104043
refactorc:31101458
ccplt:31103426
pythonrstrctxtcf:31103194
wkspc-onlycs-c:31106151

```

</details>

<!-- generated by issue reporter -->