vscode-remote-release icon indicating copy to clipboard operation
vscode-remote-release copied to clipboard

vs code server for wsl closed unexpectedly,,,how to solve the problem?

Open MandyZhang4869 opened this issue 10 months ago • 4 comments

[2024-04-18 12:04:26.634] Extension version: 0.86.0 [2024-04-18 12:04:26.634] L10N bundle: undefined [2024-04-18 12:04:26.648] authorityHierarchy: wsl+ubuntu-18.04 [2024-04-18 12:04:26.648] WSL extension activating for a local WSL instance [2024-04-18 12:04:26.662] Resolving wsl+ubuntu-18.04, resolveAttempt: 1 [2024-04-18 12:04:26.663] WSL feature installed: true (dll path) [2024-04-18 12:04:26.663] NodeExecServer run: C:\WINDOWS\System32\wsl.exe --list --verbose [2024-04-18 12:04:26.888] 4 distros found [2024-04-18 12:04:26.889] Starting VS Code Server inside WSL (wsl2) [2024-04-18 12:04:26.889] Windows build: 19045. Multi distro support: available. WSL path support: enabled [2024-04-18 12:04:26.889] Scriptless setup: false [2024-04-18 12:04:26.889] No shell environment set or found for current distro. [2024-04-18 12:04:27.188] WSL daemon log file: [2024-04-18 12:04:27.191] Probing if server is already installed: if [ -d ~/.vscode-server/bin/e170252f762678dec6ca2cc69aba1570769a5d39 ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m [2024-04-18 12:04:27.192] NodeExecServer run: C:\WINDOWS\System32\wsl.exe -d Ubuntu-18.04 -e sh -c if [ -d ~/.vscode-server/bin/e170252f762678dec6ca2cc69aba1570769a5d39 ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m [2024-04-18 12:04:27.553] Probing result: install-found x86_64 [2024-04-18 12:04:27.553] Server install found in WSL [2024-04-18 12:04:27.554] NodeExecServer run: C:\WINDOWS\System32\wsl.exe -d Ubuntu-18.04 sh -c '"$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" e170252f762678dec6ca2cc69aba1570769a5d39 stable code-server .vscode-server --host=127.0.0.1 --port=0 --connection-token=1338903955-2734304963-3884122530-1235344391 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=all' [2024-04-18 12:04:28.385] Setting up server environment: Looking for /root/.vscode-server/server-env-setup. Not found. [2024-04-18 12:04:28.385] WSL version: 5.15.146.1-microsoft-standard-WSL2 Ubuntu-18.04 [2024-04-18 12:04:28.385] WSL-shell-PID: 1468 [2024-04-18 12:04:28.385] Node executable: /root/.vscode-server/bin/e170252f762678dec6ca2cc69aba1570769a5d39/node [2024-04-18 12:04:28.385] Starting server: /root/.vscode-server/bin/e170252f762678dec6ca2cc69aba1570769a5d39/bin/code-server --host=127.0.0.1 --port=0 --connection-token=1338903955-2734304963-3884122530-1235344391 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=all [2024-04-18 12:04:28.386] /root/.vscode-server/bin/e170252f762678dec6ca2cc69aba1570769a5d39/node: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.28' not found (required by /root/.vscode-server/bin/e170252f762678dec6ca2cc69aba1570769a5d39/node) [2024-04-18 12:04:28.386] For help with startup problems, go to https://code.visualstudio.com/docs/remote/troubleshooting#_wsl-tips [2024-04-18 12:04:28.390] NodeExecServer run: C:\WINDOWS\System32\wsl.exe -d Ubuntu-18.04 -e kill 1468 [2024-04-18 12:04:33.750] Download in background is enabled`

MandyZhang4869 avatar Apr 18 '24 12:04 MandyZhang4869

97937a7e06c4e36f9151dc4b7c1aad7

MandyZhang4869 avatar Apr 18 '24 12:04 MandyZhang4869

Possible duplicate of https://github.com/microsoft/vscode/issues/203375

VS Code now requires GLIBC_2.28 or later, which is shown in the log and per the Additional Linux requirements. You could download an older version and turn off the auto-update for it.

Lablace avatar Apr 18 '24 13:04 Lablace

Possible duplicate of microsoft/vscode#203375

VS Code now requires GLIBC_2.28 or later, which is shown in the log and per the Additional Linux requirements. You could download an older version and turn off the auto-update for it.

download the old version vscode in windows?

MandyZhang4869 avatar Apr 19 '24 17:04 MandyZhang4869

vscode likely won't install server that is newer than itself, so you can try to install an old version (and turn off the auto update feature of it) in your PC, and remove the server installed in your wsl (which shoud be in ~/.vscode-server if you didn't change it manually), and see if vscode install a runnable server now

Lablace avatar Apr 20 '24 12:04 Lablace