Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MandyZhang4869 opened this issue Apr 18, 2024 · 4 comments
Assignees
Labels
wsl Issue in vscode-remote WSL

Comments

@MandyZhang4869
Copy link

[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
Copy link
Author

97937a7e06c4e36f9151dc4b7c1aad7

@VSCodeTriageBot VSCodeTriageBot added the wsl Issue in vscode-remote WSL label Apr 18, 2024
@Lablace
Copy link

Lablace commented Apr 18, 2024

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.

@MandyZhang4869
Copy link
Author

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?

@Lablace
Copy link

Lablace commented Apr 20, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wsl Issue in vscode-remote WSL
Projects
None yet
Development

No branches or pull requests

5 participants