Description
Does this issue occur when all extensions are disabled?: Yes/No
- VS Code Version: 1.99.3 (system setup)
- OS Version: Windows_NT x64 10.0.22631
Steps to Reproduce:
I am using centos 7.9 as the WLS2 distribution. When vscode connected to WSL2, the log reported an error and could not connect to WSL2. The log is as follows:
[2025-04-27 07:19:04.175] WSL daemon log file:
[2025-04-27 07:19:04.179] Probing if server is already installed: if [ -d ~/.vscode-server/bin/17baf841131aa23349f217ca7c570c76ee87b957 ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf 'alpine-'; fi; uname -m;
[2025-04-27 07:19:04.179] NodeExecServer run: C:\WINDOWS\System32\wsl.exe -d CentOS7 -e sh -c if [ -d ~/.vscode-server/bin/17baf841131aa23349f217ca7c570c76ee87b957 ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf 'alpine-'; fi; uname -m;
[2025-04-27 07:19:04.526] Probing result: install-found x86_64
[2025-04-27 07:19:04.527] Server install found in WSL
[2025-04-27 07:19:04.527] NodeExecServer run: C:\WINDOWS\System32\wsl.exe -d CentOS7 sh -c '"$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" 17baf84 stable code-server .vscode-server --host=127.0.0.1 --port=0 --connection-token=3585531676-2453609012-3926165879-3771183995 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=all'
[2025-04-27 07:19:04.856] Setting up server environment: Looking for /home/foobar/.vscode-server/server-env-setup. Not found.
[2025-04-27 07:19:04.856] WSL version: 5.15.167.4-microsoft-standard-WSL2 CentOS7
[2025-04-27 07:19:04.856] WSL-shell-PID: 26912
[2025-04-27 07:19:04.856] Node executable: /home/foobar/.vscode-server/bin/17baf841131aa23349f217ca7c570c76ee87b957/node
[2025-04-27 07:19:04.856] Starting server: /home/foobar/.vscode-server/bin/17baf841131aa23349f217ca7c570c76ee87b957/bin/code-server --host=127.0.0.1 --port=0 --connection-token=3585531676-2453609012-3926165879-3771183995 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=all
[2025-04-27 07:19:04.857] /home/foobar/.vscode-server/bin/17baf841131aa23349f217ca7c570c76ee87b957/node: /lib64/libm.so.6: version GLIBC_2.27' not found (required by /home/foobar/.vscode-server/bin/17baf841131aa23349f217ca7c570c76ee87b957/node) [2025-04-27 07:19:04.857] /home/foobar/.vscode-server/bin/17baf841131aa23349f217ca7c570c76ee87b957/node: /lib64/libstdc++.so.6: version
GLIBCXX_3.4.20' not found (required by /home/foobar/.vscode-server/bin/17baf841131aa23349f217ca7c570c76ee87b957/node)
[2025-04-27 07:19:04.857] /home/foobar/.vscode-server/bin/17baf841131aa23349f217ca7c570c76ee87b957/node: /lib64/libstdc++.so.6: version CXXABI_1.3.9' not found (required by /home/foobar/.vscode-server/bin/17baf841131aa23349f217ca7c570c76ee87b957/node) [2025-04-27 07:19:04.857] /home/foobar/.vscode-server/bin/17baf841131aa23349f217ca7c570c76ee87b957/node: /lib64/libstdc++.so.6: version
GLIBCXX_3.4.21' not found (required by /home/foobar/.vscode-server/bin/17baf841131aa23349f217ca7c570c76ee87b957/node)
[2025-04-27 07:19:04.857] /home/foobar/.vscode-server/bin/17baf841131aa23349f217ca7c570c76ee87b957/node: /lib64/libc.so.6: version GLIBC_2.28' not found (required by /home/foobar/.vscode-server/bin/17baf841131aa23349f217ca7c570c76ee87b957/node) [2025-04-27 07:19:04.857] /home/foobar/.vscode-server/bin/17baf841131aa23349f217ca7c570c76ee87b957/node: /lib64/libc.so.6: version
GLIBC_2.25' not found (required by /home/foobar/.vscode-server/bin/17baf841131aa23349f217ca7c570c76ee87b957/node)
[2025-04-27 07:19:04.857] 有关启动问题的帮助,请转到 https://code.visualstudio.com/docs/remote/troubleshooting#_wsl-tips
[2025-04-27 07:19:04.861] NodeExecServer run: C:\WINDOWS\System32\wsl.exe -d CentOS7 -e kill 26912