Open zacktagnan opened 1 month ago
¡Gracias por crear este número!
Sin embargo, como la descripción no está en inglés, nos resulta difícil trabajar en ella. Si puedes, por favor edita este número para que esté en inglés. Por favor, no añadas un nuevo comentario ni crees una nueva incidencia, sino que edita la incidencia existente.
Desafortunadamente, los servicios de traducción automática no pueden manejar el lenguaje técnico necesario para comunicarse de manera efectiva sobre problemas de software, por lo que recomendamos encontrar un traductor humano que esté familiarizado con nuestra tecnología para ayudar a traducir.
De lo contrario, este problema se ha marcado como que necesita traducción y es posible que un miembro de la comunidad pueda ayudar a traducirlo.
Thanks for creating this issue!
Unfortunately, as the description is not in English, it's hard for us to work on. If possible, please edit the original issue to be in English.
In our experience, automatic translation services are not able to handle the technical language needed to effectively communicate about software issues, so we recommend finding a human translator who is familiar with our technology to help.
Otherwise, we have marked this as needing translation and a community member may be able to help out.
Texto editado y traducido.
Con ello, espero que se pueda atender mi problema.
Saludos.
El lun, 23 sept 2024 a las 17:43, vs-code-engineering[bot] (< @.***>) escribió:
¡Gracias por crear este número!
Sin embargo, como la descripción no está en inglés, nos resulta difícil trabajar en ella. Si puedes, por favor edita este número para que esté en inglés. Por favor, no añadas un nuevo comentario ni crees una nueva incidencia, sino que edita la incidencia existente.
Desafortunadamente, los servicios de traducción automática no pueden manejar el lenguaje técnico necesario para comunicarse de manera efectiva sobre problemas de software, por lo que recomendamos encontrar un traductor humano que esté familiarizado con nuestra tecnología para ayudar a traducir.
De lo contrario, este problema se ha marcado como que necesita traducción y es posible que un miembro de la comunidad pueda ayudar a traducirlo.
Thanks for creating this issue!
Unfortunately, as the description is not in English, it's hard for us to work on. If possible, please edit the original issue to be in English.
In our experience, automatic translation services are not able to handle the technical language needed to effectively communicate about software issues, so we recommend finding a human translator who is familiar with our technology to help.
Otherwise, we have marked this as needing translation and a community member may be able to help out.
— Reply to this email directly, view it on GitHub https://github.com/microsoft/vscode/issues/229283#issuecomment-2368680762, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGDNYVQDYKK7OQB36LULGFTZYAZIPAVCNFSM6AAAAABOTYMOECVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRYGY4DANZWGI . You are receiving this because you authored the thread.Message ID: @.***>
I this with Dev Containers, or simply WSL? If it is WSL, what does the WSL log show?
I this with Dev Containers, or simply WSL? If it is WSL, what does the WSL log show?
If you are asking whether what I have installed is only the Dev Containers dependency or the WSL dependency, then I tell you that what I have installed is the Remote Development dependency which includes 4 dependencies: WSL, Dev Containers, Remote SSH and Remote Tunnels. Regarding the WSL LOG, where can I see it?
The days pass ... and it seems that no one want to answer...
When you open a remote window, is it a WSL window or a Dev Container window?
One way of debugging this is to see if there are any processes that go wild on the remote side.
So when you get the problem, can you open a remote terminal and run code --status
When you open a remote window, is it a WSL window or a Dev Container window?
Like recomended the WSL documentation, after enable the configuration of WSL 2 inside my Windows, I installed an instance of Ubuntu. So I open the Ubuntu using the Windows Terminal program. And, when I have access to the Ubuntu console, I run certain commands through Docker, specifically, with the Laravel Sail wrapper, to start the corresponding containers. Finally, I run the "code ." command to open VSCode with my project. If everything goes well, the remote connection with WSL is made, the extensions are loaded (some locally and others within WSL) and I can continue developing.
I hope I have answered the question. If not, please tell me
One way of debugging this is to see if there are any processes that go wild on the remote side. So when you get the problem, can you open a remote terminal and run
code --status
Do you mean, for example, to open a Windows Powershell window and run this?
wsl --status
So far, everything is fine, until the next error. And the current result of the command is this:
PS C:\Users\zacktagnan> wsl --status
Distribución predeterminada: Ubuntu-22.04
Versión predeterminada: 2
This "wsl --status" is the command to see the WSL log or there is another command to see the WSL log?
Ok, so your sources are in the WSL file system and you don't use dev containers.
It's not wsl --status
, but code --status
code --status
(or code-insider --status
if you are on insiders in powershellremote: WSL Ubuntu
with a process tree with CPU. Hopefully we can see something there when you lose the connectionSo, next time it fails, as you says, I will execute the "code --status", inside the Ubuntu console and I will paste here the result and you will inspect it and say me something...
I have to execute the comand with VSCode opened or it doesn't matter?
Well, this is an example of the response to the STATUS command after the WSL disconnection has occurred and while VSCode is trying to reconnect:
code --status
Version: Code 1.93.1 (38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40, 2024-09-11T17:20:05.685Z)
OS Version: Windows_NT x64 10.0.22631
CPUs: Intel(R) Core(TM) i7-14700KF (28 x 3418)
Memory (System): 31.83GB (13.94GB free)
VM: 0%
Screen Reader: no
Process Argv: --folder-uri=vscode-remote://wsl+Ubuntu-22.04/home/zroot/www/colhol-lvl_vue-dearbook --remote=wsl+Ubuntu-22.04 --crash-reporter-id 794961a7-0d43-45c1-bd0a-2af2bb981afa
GPU Status: 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
CPU % Mem MB PID Process
0 60 10688 code main
0 28 1532 shared-process
0 56 1648 extensionHost [1]
0 17 11756 electron-nodejs (wslDaemon.js )
0 8 20844 electron-nodejs (serverMain.js )
0 1 20908 C:\Windows\system32\wsl.exe -d Ubuntu-22.04 -e /bin/sh -c "cd '/home/zroot/www/colhol-lvl_vue-dearbook' && /bin/sh"
0 0 20916 C:\Windows\system32\conhost.exe 0x4
0 0 20956 C:\Windows\system32\wsl.exe -d Ubuntu-22.04 -e /bin/sh -c "cd '/home/zroot/www/colhol-lvl_vue-dearbook' && /bin/sh"
0 0 21000 --distro-id {344ab1d4-b1c1-4c69-8d81-eec719419986} --vm-id {80bb4b14-e0d0-4f5f-bd22-49cddb9eecad} --handle 172 --event 752 --parent 768
0 0 21020 C:\Windows\system32\conhost.exe 0x4
0 1 2696 crashpad-handler
0 11 4480 utility-network-service
0 8 11852 fileWatcher [1]
0 306 15796 window [1] (● GroupController.php - colhol-lvl_vue-dearbook [WSL: Ubuntu-22.04] - Visual Studio Code)
0 77 18440 gpu-process
Connection to 'wsl+Ubuntu-22.04' could not be established
@aeschli ... I hope you can say me something about.
And that's another example when, after restart the Windows system or reopen the my user session, I try to open the project again inside WSL with VSCode. The connection between VSCode and WSL:Ubuntu is successful, but the "The remote extension host terminated unexpectedly..." error appears:
code --status
/mnt/c/Program Files/Microsoft VS Code/bin/code: 46: cannot create /tmp/remote-wsl-loc.txt: Read-only file system
mktemp: failed to create file via template ‘/tmp/vscode-distro-env.XXXXXX’: Read-only file system
/mnt/c/Users/zacktagnan/.vscode/extensions/ms-vscode-remote.remote-wsl-0.88.4/scripts/wslCode.sh: 66: cannot create : Directory nonexistent
Version: Code 1.93.1 (38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40, 2024-09-11T17:20:05.685Z)
OS Version: Windows_NT x64 10.0.22631
CPUs: Intel(R) Core(TM) i7-14700KF (28 x 3418)
Memory (System): 31.83GB (22.20GB free)
VM: 0%
Screen Reader: no
Process Argv: --folder-uri=vscode-remote://wsl+Ubuntu-22.04/home/zroot/www/colhol-lvl_vue-dearbook --remote=wsl+Ubuntu-22.04 --crash-reporter-id 794961a7-0d43-45c1-bd0a-2af2bb981afa
GPU Status: 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
CPU % Mem MB PID Process
0 127 12792 code main
0 162 6188 extensionHost [1]
0 92 19276 electron-nodejs (wslDaemon.js )
0 6 7596 C:\Windows\System32\wsl.exe -d Ubuntu-22.04 sh -c '"$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" 38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40 stable code-server .vscode-server --host=127.0.0.1 --port=0 --connection-token=1376542901-1429897094-1702608902-1595710892 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=all'
0 10 9944 C:\Windows\system32\conhost.exe 0x4
0 10 20088 C:\Windows\System32\wsl.exe -d Ubuntu-22.04 sh -c '"$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" 38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40 stable code-server .vscode-server --host=127.0.0.1 --port=0 --connection-token=1376542901-1429897094-1702608902-1595710892 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=all'
0 10 2844 --distro-id {344ab1d4-b1c1-4c69-8d81-eec719419986} --vm-id {8ca29a6a-d67b-42be-a5ad-91ca4d6e034c} --handle 740 --event 764 --parent 772
0 12 6160 C:\Windows\system32\conhost.exe 0x4
0 6 20400 C:\Windows\System32\wsl.exe -d Ubuntu-22.04 -e /home/zroot/.vscode-server/bin/38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40/node -e "const net = require('net'); process.stdin.pause(); const client = net.createConnection({ host: '127.0.0.1', port: 45091 }, () => { client.pipe(process.stdout); process.stdin.pipe(client); }); client.on('close', function (hadError) { console.error(hadError ? 'Remote close with error' : 'Remote close'); process.exit(hadError ? 1 : 0); }); client.on('error', function (err) { process.stderr.write(err && (err.stack || err.message) || String(err)); });"
0 10 14868 C:\Windows\System32\wsl.exe -d Ubuntu-22.04 -e /home/zroot/.vscode-server/bin/38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40/node -e "const net = require('net'); process.stdin.pause(); const client = net.createConnection({ host: '127.0.0.1', port: 45091 }, () => { client.pipe(process.stdout); process.stdin.pipe(client); }); client.on('close', function (hadError) { console.error(hadError ? 'Remote close with error' : 'Remote close'); process.exit(hadError ? 1 : 0); }); client.on('error', function (err) { process.stderr.write(err && (err.stack || err.message) || String(err)); });"
0 10 19700 --distro-id {344ab1d4-b1c1-4c69-8d81-eec719419986} --vm-id {8ca29a6a-d67b-42be-a5ad-91ca4d6e034c} --handle 748 --event 772 --parent 776
0 13 1656 C:\Windows\system32\conhost.exe 0x4
0 11 14956 C:\Windows\system32\conhost.exe 0x4
0 87 21284 electron-nodejs (serverMain.js )
0 6 21412 C:\Windows\system32\wsl.exe -d Ubuntu-22.04 -e /bin/sh -c "cd '/home/zroot/www/colhol-lvl_vue-dearbook' && /bin/sh"
0 10 21180 C:\Windows\system32\wsl.exe -d Ubuntu-22.04 -e /bin/sh -c "cd '/home/zroot/www/colhol-lvl_vue-dearbook' && /bin/sh"
0 10 21548 --distro-id {344ab1d4-b1c1-4c69-8d81-eec719419986} --vm-id {8ca29a6a-d67b-42be-a5ad-91ca4d6e034c} --handle 760 --event 780 --parent 784
0 13 21568 C:\Windows\system32\conhost.exe 0x4
0 11 21184 C:\Windows\system32\conhost.exe 0x4
0 28 6712 crashpad-handler
0 42 11000 utility-network-service
0 95 14684 gpu-process
0 365 15664 window [1] (PendingRequest.vue - colhol-lvl_vue-dearbook [WSL: Ubuntu-22.04] - Visual Studio Code)
0 129 20692 shared-process
0 93 20720 fileWatcher [1]
Remote: WSL: Ubuntu-22.04
OS Version: Linux x64 5.15.153.1-microsoft-standard-WSL2
CPUs: Intel(R) Core(TM) i7-14700KF (28 x 0)
Memory (System): 15.53GB (13.76GB free)
VM: 0%
CPU % Mem MB PID Process
0 0 2147 remote agent
0 0 2206 fileWatcher
0 0 2258 ptyHost
0 0 2273 /bin/bash --init-file /home/zroot/.vscode-server/bin/38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40/out/vs/workbench/contrib/terminal/browser/media/shellIntegration-bash.sh
0 0 2703 /bin/sh -c /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
0 0 2704 /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
Folder (colhol-lvl_vue-dearbook): 12581 files
| File types: php(8050) json(1175) md(285) vue(251) stub(100) jpg(95)
| js(63) txt(59) png(57) rst(37)
| Conf files: dockerfile(9) package.json(3) tsconfig.json(3)
| jsconfig.json(2) makefile(1)
At that moment, the "Read only" error also appears. That's what appears on console when, after the "code --status" before, I'll down the containers throught Laravel Sail:
Finally, some tries after, restarting or shutting down and reopen the Windows system ... all works again, and the result of the "code --status" is the following:
code --status
Version: Code 1.93.1 (38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40, 2024-09-11T17:20:05.685Z)
OS Version: Windows_NT x64 10.0.22631
CPUs: Intel(R) Core(TM) i7-14700KF (28 x 3418)
Memory (System): 31.83GB (20.02GB free)
VM: 0%
Screen Reader: no
Process Argv: --folder-uri=vscode-remote://wsl+Ubuntu-22.04/home/zroot/www/colhol-lvl_vue-dearbook --remote=wsl+Ubuntu-22.04 --crash-reporter-id 794961a7-0d43-45c1-bd0a-2af2bb981afa
GPU Status: 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
CPU % Mem MB PID Process
0 107 8008 code main
0 42 8004 utility-network-service
0 99 9900 shared-process
0 86 11724 fileWatcher [1]
0 28 15992 crashpad-handler
0 100 18960 gpu-process
0 128 20196 extensionHost [1]
0 6 1864 C:\Windows\system32\wsl.exe -d Ubuntu-22.04 -e /bin/sh -c "cd '/home/zroot/www/colhol-lvl_vue-dearbook' && /bin/sh"
0 10 3644 C:\Windows\system32\conhost.exe 0x4
0 10 21604 C:\Windows\system32\wsl.exe -d Ubuntu-22.04 -e /bin/sh -c "cd '/home/zroot/www/colhol-lvl_vue-dearbook' && /bin/sh"
0 10 22256 --distro-id {344ab1d4-b1c1-4c69-8d81-eec719419986} --vm-id {a7d613e0-3a51-4669-b2be-a8e492ca5077} --handle 756 --event 780 --parent 784
0 12 8096 C:\Windows\system32\conhost.exe 0x4
0 81 13500 electron-nodejs (wslDaemon.js )
0 6 10568 C:\Windows\System32\wsl.exe -d Ubuntu-22.04 -e /home/zroot/.vscode-server/bin/38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40/node -e "const net = require('net'); process.stdin.pause(); const client = net.createConnection({ host: '127.0.0.1', port: 42389 }, () => { client.pipe(process.stdout); process.stdin.pipe(client); }); client.on('close', function (hadError) { console.error(hadError ? 'Remote close with error' : 'Remote close'); process.exit(hadError ? 1 : 0); }); client.on('error', function (err) { process.stderr.write(err && (err.stack || err.message) || String(err)); });"
0 10 2968 C:\Windows\System32\wsl.exe -d Ubuntu-22.04 -e /home/zroot/.vscode-server/bin/38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40/node -e "const net = require('net'); process.stdin.pause(); const client = net.createConnection({ host: '127.0.0.1', port: 42389 }, () => { client.pipe(process.stdout); process.stdin.pipe(client); }); client.on('close', function (hadError) { console.error(hadError ? 'Remote close with error' : 'Remote close'); process.exit(hadError ? 1 : 0); }); client.on('error', function (err) { process.stderr.write(err && (err.stack || err.message) || String(err)); });"
0 10 11768 --distro-id {344ab1d4-b1c1-4c69-8d81-eec719419986} --vm-id {a7d613e0-3a51-4669-b2be-a8e492ca5077} --handle 764 --event 788 --parent 792
0 12 21140 C:\Windows\system32\conhost.exe 0x4
0 10 16284 C:\Windows\system32\conhost.exe 0x4
0 6 13880 C:\Windows\System32\wsl.exe -d Ubuntu-22.04 sh -c '"$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" 38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40 stable code-server .vscode-server --host=127.0.0.1 --port=0 --connection-token=3920405518-987978357-4161067410-304058744 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=all'
0 10 8956 C:\Windows\system32\conhost.exe 0x4
0 10 11608 C:\Windows\System32\wsl.exe -d Ubuntu-22.04 sh -c '"$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" 38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40 stable code-server .vscode-server --host=127.0.0.1 --port=0 --connection-token=3920405518-987978357-4161067410-304058744 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=all'
0 10 17480 --distro-id {344ab1d4-b1c1-4c69-8d81-eec719419986} --vm-id {a7d613e0-3a51-4669-b2be-a8e492ca5077} --handle 184 --event 772 --parent 780
0 12 11384 C:\Windows\system32\conhost.exe 0x4
0 6 19508 C:\Windows\System32\wsl.exe -d Ubuntu-22.04 -e /home/zroot/.vscode-server/bin/38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40/node -e "const net = require('net'); process.stdin.pause(); const client = net.createConnection({ host: '127.0.0.1', port: 42389 }, () => { client.pipe(process.stdout); process.stdin.pipe(client); }); client.on('close', function (hadError) { console.error(hadError ? 'Remote close with error' : 'Remote close'); process.exit(hadError ? 1 : 0); }); client.on('error', function (err) { process.stderr.write(err && (err.stack || err.message) || String(err)); });"
0 10 6864 C:\Windows\system32\conhost.exe 0x4
0 10 9432 C:\Windows\System32\wsl.exe -d Ubuntu-22.04 -e /home/zroot/.vscode-server/bin/38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40/node -e "const net = require('net'); process.stdin.pause(); const client = net.createConnection({ host: '127.0.0.1', port: 42389 }, () => { client.pipe(process.stdout); process.stdin.pipe(client); }); client.on('close', function (hadError) { console.error(hadError ? 'Remote close with error' : 'Remote close'); process.exit(hadError ? 1 : 0); }); client.on('error', function (err) { process.stderr.write(err && (err.stack || err.message) || String(err)); });"
0 10 2376 --distro-id {344ab1d4-b1c1-4c69-8d81-eec719419986} --vm-id {a7d613e0-3a51-4669-b2be-a8e492ca5077} --handle 744 --event 768 --parent 772
0 12 8032 C:\Windows\system32\conhost.exe 0x4
0 85 14268 electron-nodejs (serverMain.js )
0 313 22400 window [1] (PendingRequest.vue - colhol-lvl_vue-dearbook [WSL: Ubuntu-22.04] - Visual Studio Code)
Remote: WSL: Ubuntu-22.04
OS Version: Linux x64 5.15.153.1-microsoft-standard-WSL2
CPUs: Intel(R) Core(TM) i7-14700KF (28 x 0)
Memory (System): 15.53GB (12.16GB free)
VM: 0%
CPU % Mem MB PID Process
0 0 2284 remote agent
0 0 2331 extension-host
0 0 2562 /home/zroot/.vscode-server/bin/38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40/node /home/zroot/.vscode-server/extensions/bmewburn.vscode-intelephense-client-1.12.6/node_modules/intelephense/lib/intelephense.js --node-ipc --clientProcessId=2331
0 0 2762 /home/zroot/.vscode-server/bin/38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40/node /home/zroot/.vscode-server/extensions/vue.volar-2.1.6/server.js --node-ipc --clientProcessId=2331
0 0 2799 /home/zroot/.vscode-server/bin/38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40/node /home/zroot/.vscode-server/extensions/dbaeumer.vscode-eslint-3.0.10/server/out/eslintServer.js --node-ipc --clientProcessId=2331
0 0 2805 /home/zroot/.vscode-server/bin/38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40/node /home/zroot/.vscode-server/extensions/streetsidesoftware.code-spell-checker-3.0.1/packages/_server/dist/main.cjs --node-ipc --clientProcessId=2331
0 0 2816 /home/zroot/.vscode-server/bin/38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40/node /home/zroot/.vscode-server/extensions/bradlc.vscode-tailwindcss-0.12.11/dist/tailwindServer.js --node-ipc --clientProcessId=2331
0 0 2901 /home/zroot/.vscode-server/bin/38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40/node --max-old-space-size=3072 /home/zroot/.vscode-server/bin/38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40/extensions/node_modules/typescript/lib/tsserver.js --serverMode partialSemantic --useInferredProjectPerProjectRoot --disableAutomaticTypingAcquisition --cancellationPipeName /tmp/vscode-typescript1000/6d91935bdb8fe177d171/tscancellation-63868690486b2ef1dd2d.tmp* --globalPlugins typescript-vue-plugin-bundle --pluginProbeLocations /home/zroot/.vscode-server/extensions/vue.volar-2.1.6 --locale es --noGetErrOnBackgroundUpdate --canUseWatchEvents --validateDefaultNpmLocation --useNodeIpc
0 0 2902 /home/zroot/.vscode-server/bin/38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40/node --max-old-space-size=3072 /home/zroot/.vscode-server/bin/38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40/extensions/node_modules/typescript/lib/tsserver.js --useInferredProjectPerProjectRoot --enableTelemetry --cancellationPipeName /tmp/vscode-typescript1000/6d91935bdb8fe177d171/tscancellation-63118f1229c7fa3d4c5a.tmp* --globalPlugins typescript-vue-plugin-bundle --pluginProbeLocations /home/zroot/.vscode-server/extensions/vue.volar-2.1.6 --locale es --noGetErrOnBackgroundUpdate --canUseWatchEvents --validateDefaultNpmLocation --useNodeIpc
0 0 2916 /home/zroot/.vscode-server/bin/38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40/node /home/zroot/.vscode-server/bin/38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40/extensions/node_modules/typescript/lib/typingsInstaller.js --globalTypingsCacheLocation /home/zroot/.cache/typescript/5.5 --enableTelemetry --typesMapLocation /home/zroot/.vscode-server/bin/38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40/extensions/node_modules/typescript/lib/typesMap.json --validateDefaultNpmLocation
0 0 3062 /home/zroot/.vscode-server/bin/38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40/node /home/zroot/.vscode-server/bin/38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=2331
0 0 2343 fileWatcher
0 0 2404 ptyHost
0 0 2458 /bin/bash --init-file /home/zroot/.vscode-server/bin/38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40/out/vs/workbench/contrib/terminal/browser/media/shellIntegration-bash.sh
0 0 3421 /bin/sh -c /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
0 0 3422 /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
Folder (colhol-lvl_vue-dearbook): 12581 files
| File types: php(8050) json(1175) md(285) vue(251) stub(100) jpg(95)
| js(63) txt(59) png(57) rst(37)
| Conf files: dockerfile(9) package.json(3) tsconfig.json(3)
| jsconfig.json(2) makefile(1)
(...that's was when, finally, I got everything working again ... yesterday)
And today ... that another error...
(Unknown (FileSystemError): Error: EROFS: read-only file system, open '/home/zroot/www/colhol-lvl_vue-dearbook/lang/es/dearbook/group.php')
So, no files can be saved...
And the "code --status" result was:
code --status
/mnt/c/Program Files/Microsoft VS Code/bin/code: 46: cannot create /tmp/remote-wsl-loc.txt: Read-only file system
mktemp: failed to create file via template ‘/tmp/vscode-distro-env.XXXXXX’: Read-only file system
/mnt/c/Users/zacktagnan/.vscode/extensions/ms-vscode-remote.remote-wsl-0.88.4/scripts/wslCode.sh: 66: cannot create : Directory nonexistent
Version: Code 1.93.1 (38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40, 2024-09-11T17:20:05.685Z)
OS Version: Windows_NT x64 10.0.22631
CPUs: Intel(R) Core(TM) i7-14700KF (28 x 3418)
Memory (System): 31.83GB (12.97GB free)
VM: 0%
Screen Reader: no
Process Argv: --folder-uri=vscode-remote://wsl+Ubuntu-22.04/home/zroot/www/colhol-lvl_vue-dearbook --remote=wsl+Ubuntu-22.04 --crash-reporter-id 794961a7-0d43-45c1-bd0a-2af2bb981afa
GPU Status: 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
CPU % Mem MB PID Process
0 55 18932 code main
0 332 5788 window [1] (● GroupController.php - colhol-lvl_vue-dearbook [WSL: Ubuntu-22.04] - Visual Studio Code)
0 9 7356 fileWatcher [1]
0 26 7848 shared-process
0 26 11888 extensionHost [1]
0 17 7792 electron-nodejs (wslDaemon.js )
0 1 2512 C:\Windows\System32\wsl.exe -d Ubuntu-22.04 -e /home/zroot/.vscode-server/bin/38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40/node -e "const net = require('net'); process.stdin.pause(); const client = net.createConnection({ host: '127.0.0.1', port: 37655 }, () => { client.pipe(process.stdout); process.stdin.pipe(client); }); client.on('close', function (hadError) { console.error(hadError ? 'Remote close with error' : 'Remote close'); process.exit(hadError ? 1 : 0); }); client.on('error', function (err) { process.stderr.write(err && (err.stack || err.message) || String(err)); });"
0 0 2928 C:\Windows\system32\conhost.exe 0x4
0 0 20304 C:\Windows\System32\wsl.exe -d Ubuntu-22.04 -e /home/zroot/.vscode-server/bin/38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40/node -e "const net = require('net'); process.stdin.pause(); const client = net.createConnection({ host: '127.0.0.1', port: 37655 }, () => { client.pipe(process.stdout); process.stdin.pipe(client); }); client.on('close', function (hadError) { console.error(hadError ? 'Remote close with error' : 'Remote close'); process.exit(hadError ? 1 : 0); }); client.on('error', function (err) { process.stderr.write(err && (err.stack || err.message) || String(err)); });"
0 0 2172 --distro-id {344ab1d4-b1c1-4c69-8d81-eec719419986} --vm-id {bf59ca22-0f0c-43d6-bb0b-409be0a998e2} --handle 760 --event 772 --parent 776
0 1 18904 C:\Windows\system32\conhost.exe 0x4
0 1 11392 C:\Windows\System32\wsl.exe -d Ubuntu-22.04 sh -c '"$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" 38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40 stable code-server .vscode-server --host=127.0.0.1 --port=0 --connection-token=4221099338-917598371-2898197567-4270136313 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=all'
0 1 4004 C:\Windows\system32\conhost.exe 0x4
0 0 12312 C:\Windows\System32\wsl.exe -d Ubuntu-22.04 sh -c '"$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" 38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40 stable code-server .vscode-server --host=127.0.0.1 --port=0 --connection-token=4221099338-917598371-2898197567-4270136313 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=all'
0 0 19460 --distro-id {344ab1d4-b1c1-4c69-8d81-eec719419986} --vm-id {bf59ca22-0f0c-43d6-bb0b-409be0a998e2} --handle 700 --event 764 --parent 776
0 1 10832 C:\Windows\system32\conhost.exe 0x4
0 12 22092 electron-nodejs (serverMain.js )
0 1 22184 C:\Windows\system32\wsl.exe -d Ubuntu-22.04 -e /bin/sh -c "cd '/home/zroot/www/colhol-lvl_vue-dearbook' && /bin/sh"
0 1 22192 C:\Windows\system32\conhost.exe 0x4
0 0 22232 C:\Windows\system32\wsl.exe -d Ubuntu-22.04 -e /bin/sh -c "cd '/home/zroot/www/colhol-lvl_vue-dearbook' && /bin/sh"
0 0 22276 --distro-id {344ab1d4-b1c1-4c69-8d81-eec719419986} --vm-id {bf59ca22-0f0c-43d6-bb0b-409be0a998e2} --handle 756 --event 780 --parent 784
0 1 22296 C:\Windows\system32\conhost.exe 0x4
0 1 13892 crashpad-handler
0 11 15044 utility-network-service
0 56 15060 gpu-process
Remote: WSL: Ubuntu-22.04
OS Version: Linux x64 5.15.153.1-microsoft-standard-WSL2
CPUs: Intel(R) Core(TM) i7-14700KF (28 x 0)
Memory (System): 15.53GB (13.20GB free)
VM: 0%
CPU % Mem MB PID Process
0 0 2026 remote agent
0 0 2086 fileWatcher
0 0 2093 ptyHost
0 0 2152 /bin/bash --init-file /home/zroot/.vscode-server/bin/38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40/out/vs/workbench/contrib/terminal/browser/media/shellIntegration-bash.sh
0 0 337731 /bin/sh -c /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
0 0 337732 /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
Folder (colhol-lvl_vue-dearbook): 12584 files
| File types: php(8051) json(1175) md(285) vue(252) stub(100) jpg(95)
| js(63) txt(59) png(57) rst(37)
| Conf files: dockerfile(9) package.json(3) tsconfig.json(3)
| jsconfig.json(2) makefile(1)
And, when I close VSCode and reopen it, the Read-only error appears again:
code .
/mnt/c/Program Files/Microsoft VS Code/bin/code: 46: cannot create /tmp/remote-wsl-loc.txt: Read-only file system
mktemp: failed to create file via template ‘/tmp/vscode-distro-env.XXXXXX’: Read-only file system
/mnt/c/Users/zacktagnan/.vscode/extensions/ms-vscode-remote.remote-wsl-0.88.4/scripts/wslCode.sh: 66: cannot create : Directory nonexistent
And I start to close and restart the system until all works fine again... :(
The ' Read-only file system' warning is very interesting. I don't recall that being reported recently.
I first thought it could just be a wrong error message due to the connection issue, but in the screenshot that you added also sail down
report it, so it is real.
The readonly-ness would explain the connection failure as we rely on socket files for the connection.
There are some reports that this can happen when the disk is full: https://stackoverflow.com/questions/73317185/wsl2-read-only-file-system-while-building-chromium https://github.com/microsoft/WSL/issues/6220
If this is not the case, we need to file an issue against WSL.
Regarding your question about free space on my system disk, the space capacity of my system disk (C:) is 474GB, with about 249GB still available. I have other disks or partitions on the computer but for storage, mainly. So, I guess having so much free space on my system disk, I guess that can't be the problem, right?
So, now, what would be the next step?
Maybe the WSL disk image can run out of space. I don't know how that exactly works or what could be other reasons for the file system to become read-only. We need help from the WSL team here.
@craigloewen-msft Any idea what could be the reason for the WSL file system to turn to readonly ?
Another error, refers to the development server ... Everything goes fine and suddenly...
sail npm run dev
> dev
> vite
VITE v5.2.11 ready in 198 ms
➜ Local: http://localhost:5170/
➜ Network: http://172.20.0.5:5170/
➜ press h + enter to show help
LARAVEL v11.7.0 plugin v1.0.3
➜ APP_URL: http://localhost:7410
#
# Fatal error in , line 0
# unreachable code
#
#
#
#FailureMessage Object: 0x7f8d19b71170
----- Native stack trace -----
1: 0xd3f611 [node]
2: 0x217b8b1 V8_Fatal(char const*, ...) [node]
3: 0x2251ba7 [node]
4: 0x24ea32f v8::internal::compiler::MemoryLowering::ReduceStoreField(v8::internal::compiler::Node*, v8::internal::compiler::MemoryLowering::AllocationState const*) [node]
5: 0x24ee2fe v8::internal::compiler::MemoryOptimizer::Optimize() [node]
6: 0x22666de [node]
7: 0x22691cd auto v8::internal::compiler::PipelineImpl::Run<v8::internal::compiler::MemoryOptimizationPhase>() [node]
8: 0x227e320 v8::internal::compiler::PipelineImpl::OptimizeGraph(v8::internal::compiler::Linkage*) [node]
9: 0x227e8c0 v8::internal::compiler::PipelineCompilationJob::ExecuteJobImpl(v8::internal::RuntimeCallStats*, v8::internal::LocalIsolate*) [node]
10: 0xfb5eab v8::internal::OptimizedCompilationJob::ExecuteJob(v8::internal::RuntimeCallStats*, v8::internal::LocalIsolate*) [node]
11: 0xfe3cd1 v8::internal::OptimizingCompileDispatcher::CompileNext(v8::internal::TurbofanCompilationJob*, v8::internal::LocalIsolate*) [node]
12: 0xfe404d v8::internal::OptimizingCompileDispatcher::CompileTask::RunInternal() [node]
13: 0xd3f7b1 [node]
14: 0x7f8d1b411ac3 [/lib/x86_64-linux-gnu/libc.so.6]
15: 0x7f8d1b4a2a04 clone [/lib/x86_64-linux-gnu/libc.so.6]
Trace/breakpoint trap (core dumped)
¿¿??
Does this issue occur when all extensions are disabled?: Yes/No No, but if I disable all extensions, then I won't be able to work with the project because the project it's on the remote side. And the same if I disable all extensions related to the project's technologies. Until a some months ago, I had no problem with any of the installed extensions. And now I keep getting the "Remote Extension Host" problem.
Steps to Reproduce:
From that moment on, I may be restarting the editor, or the computer quite a few or many times until, in one of those attempts, everything works again. But, if it's not the warning of the "remote extension host", it's because of a failure to load any other extension handled in the project (for example, the JS/TS extension, the TailwindCSS extension, the Vue extension, ...). I've been suffering from this problem for many months now and I can't find a valid solution on the Internet, even though I'm not the only one complaining about this error.
Before this year, I was already using WSL2 with Docker for application development... But at this rate, I'm going to stop using this development stack. I hope someone can give me a satisfactory solution.
Greetings.
Note: So, like you wanted, I edit and translate all the text, not so difficult to do.