Skip to content

WSL, VS Code Server for WSL closed unexpectedly #174861

@thihanmoekyaw

Description

@thihanmoekyaw

Type: Bug

Here is the WLS log of the error:

[2023-02-20 19:41:06.589] Resolving wsl+Ubuntu, resolveAttempt: 1
[2023-02-20 19:41:06.712] Starting VS Code Server inside WSL (wsl2)
[2023-02-20 19:41:06.712] Extension version: 0.75.3
[2023-02-20 19:41:06.712] Windows build: 19045. Multi distro support: available. WSL path support: enabled
[2023-02-20 19:41:06.712] No shell environment set or found for current distro.
[2023-02-20 19:41:06.869] WSL daemon log file: c:\Users\Min Kyi Htun\AppData\Roaming\Code\logs\20230220T134036\window4\exthost\ms-vscode-remote.remote-wsl\wsl-daemon-20230220T194106.log
[2023-02-20 19:41:06.871] Probing if server is already installed: C:\Windows\System32\wsl.exe -d Ubuntu -e sh -c "[ -d /.vscode-server/bin/441438abd1ac652551dbe4d408dfcec8a499b8bf ] && printf found || ([ -f /etc/alpine-release ] && printf alpine-; uname -m)"
[2023-02-20 19:41:07.347] Probing result: found
[2023-02-20 19:41:07.348] Server install found in WSL
[2023-02-20 19:41:07.349] Launching C:\Windows\System32\wsl.exe -d Ubuntu sh -c 'env && VSCODE_WSL_DEBUG_INFO=true "$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" 441438a stable code-server .vscode-server --host=127.0.0.1 --port=0 --connection-token=2043788981-392226416-2756083601-806698319 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --log=trace --telemetry-level=all', cwd: undefined, env: {
[2023-02-20 19:41:07.349] "ALLUSERSPROFILE": "C:\ProgramData",
[2023-02-20 19:41:07.349] "AMDRMPATH": "C:\Program Files\AMD\RyzenMaster\",
[2023-02-20 19:41:07.349] "AMDSTOREMIPATH": "C:\Program Files\AMD\StoreMI\",
[2023-02-20 19:41:07.349] "APPDATA": "C:\Users\Min Kyi Htun\AppData\Roaming",
[2023-02-20 19:41:07.349] "CHROME_CRASHPAD_PIPE_NAME": "\\.\pipe\LOCAL\crashpad_7668_QJNEUHOHXZCCTMNC",
[2023-02-20 19:41:07.349] "CommonProgramFiles": "C:\Program Files\Common Files",
[2023-02-20 19:41:07.349] "CommonProgramFiles(x86)": "C:\Program Files (x86)\Common Files",
[2023-02-20 19:41:07.349] "CommonProgramW6432": "C:\Program Files\Common Files",
[2023-02-20 19:41:07.349] "COMPUTERNAME": "DESKTOP-G1FIS8E",
[2023-02-20 19:41:07.349] "ComSpec": "C:\Windows\system32\cmd.exe",
[2023-02-20 19:41:07.349] "DriverData": "C:\Windows\System32\Drivers\DriverData",
[2023-02-20 19:41:07.349] "FPS_BROWSER_APP_PROFILE_STRING": "Internet Explorer",
[2023-02-20 19:41:07.349] "FPS_BROWSER_USER_PROFILE_STRING": "Default",
[2023-02-20 19:41:07.349] "HOMEDRIVE": "C:",
[2023-02-20 19:41:07.349] "HOMEPATH": "\Users\Min Kyi Htun",
[2023-02-20 19:41:07.349] "LOCALAPPDATA": "C:\Users\Min Kyi Htun\AppData\Local",
[2023-02-20 19:41:07.349] "LOGONSERVER": "\\DESKTOP-G1FIS8E",
[2023-02-20 19:41:07.349] "NUMBER_OF_PROCESSORS": "12",
[2023-02-20 19:41:07.349] "OneDrive": "C:\Users\Min Kyi Htun\OneDrive - University of Illinois - Urbana",
[2023-02-20 19:41:07.349] "OneDriveCommercial": "C:\Users\Min Kyi Htun\OneDrive - University of Illinois - Urbana",
[2023-02-20 19:41:07.349] "ORIGINAL_XDG_CURRENT_DESKTOP": "undefined",
[2023-02-20 19:41:07.349] "OS": "Windows_NT",
[2023-02-20 19:41:07.349] "Path": "C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\dotnet\;C:\Program Files (x86)\dotnet\;C:\Program Files\Git\cmd;C:\Program Files\Docker\Docker\resources\bin;C:\Users\Min Kyi Htun\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Users\Min Kyi Htun\AppData\Local\GitHubDesktop\bin;C:\Program Files (x86)\Brackets\;C:\Users\Min Kyi Htun\AppData\Local\Programs\Microsoft VS Code\bin",
[2023-02-20 19:41:07.349] "PATHEXT": ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",
[2023-02-20 19:41:07.349] "PROCESSOR_ARCHITECTURE": "AMD64",
[2023-02-20 19:41:07.349] "PROCESSOR_IDENTIFIER": "AMD64 Family 23 Model 8 Stepping 2, AuthenticAMD",
[2023-02-20 19:41:07.349] "PROCESSOR_LEVEL": "23",
[2023-02-20 19:41:07.349] "PROCESSOR_REVISION": "0802",
[2023-02-20 19:41:07.349] "ProgramData": "C:\ProgramData",
[2023-02-20 19:41:07.349] "ProgramFiles": "C:\Program Files",
[2023-02-20 19:41:07.349] "ProgramFiles(x86)": "C:\Program Files (x86)",
[2023-02-20 19:41:07.349] "ProgramW6432": "C:\Program Files",
[2023-02-20 19:41:07.349] "PSModulePath": "C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules",
[2023-02-20 19:41:07.349] "PUBLIC": "C:\Users\Public",
[2023-02-20 19:41:07.349] "SESSIONNAME": "Console",
[2023-02-20 19:41:07.349] "SystemDrive": "C:",
[2023-02-20 19:41:07.349] "SystemRoot": "C:\Windows",
[2023-02-20 19:41:07.349] "TEMP": "C:\Users\MINKYI
1\AppData\Local\Temp",
[2023-02-20 19:41:07.349] "TMP": "C:\Users\MINKYI~1\AppData\Local\Temp",
[2023-02-20 19:41:07.349] "USERDOMAIN": "DESKTOP-G1FIS8E",
[2023-02-20 19:41:07.349] "USERDOMAIN_ROAMINGPROFILE": "DESKTOP-G1FIS8E",
[2023-02-20 19:41:07.349] "USERNAME": "Min Kyi Htun",
[2023-02-20 19:41:07.349] "USERPROFILE": "C:\Users\Min Kyi Htun",
[2023-02-20 19:41:07.349] "VBOX_MSI_INSTALL_PATH": "C:\Program Files\Oracle\VirtualBox\",
[2023-02-20 19:41:07.349] "windir": "C:\Windows",
[2023-02-20 19:41:07.349] "VSCODE_WSL_EXT_LOCATION": "c:\Users\Min Kyi Htun\.vscode\extensions\ms-vscode-remote.remote-wsl-0.75.3",
[2023-02-20 19:41:07.349] "WSLENV": "VSCODE_WSL_EXT_LOCATION/up"
[2023-02-20 19:41:07.349] }
[2023-02-20 19:41:07.566] USER=kkaung66
[2023-02-20 19:41:07.566] VSCODE_WSL_EXT_LOCATION=/mnt/c/Users/Min Kyi Htun/.vscode/extensions/ms-vscode-remote.remote-wsl-0.75.3
[2023-02-20 19:41:07.566] SHLVL=0
[2023-02-20 19:41:07.566] HOME=/home/kkaung66
[2023-02-20 19:41:07.566] WSL_DISTRO_NAME=Ubuntu
[2023-02-20 19:41:07.566] WAYLAND_DISPLAY=wayland-0
[2023-02-20 19:41:07.566] LOGNAME=kkaung66
[2023-02-20 19:41:07.566] NAME=DESKTOP-G1FIS8E
[2023-02-20 19:41:07.566] WSL_INTEROP=/run/WSL/11_interop
[2023-02-20 19:41:07.566] PULSE_SERVER=/mnt/wslg/PulseServer
[2023-02-20 19:41:07.566] _=/usr/bin/sh
[2023-02-20 19:41:07.566] TERM=xterm-256color
[2023-02-20 19:41:07.566] PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files/Intel/WiFi/bin/:/mnt/c/Program Files/Common Files/Intel/WirelessCommon/:/mnt/c/Program Files/dotnet/:/mnt/c/Program Files (x86)/dotnet/:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/Users/Min Kyi Htun/AppData/Local/Microsoft/WindowsApps:/mnt/c/Program Files/Intel/WiFi/bin/:/mnt/c/Program Files/Common Files/Intel/WirelessCommon/:/mnt/c/Users/Min Kyi Htun/AppData/Local/GitHubDesktop/bin:/mnt/c/Program Files (x86)/Brackets/:/mnt/c/Users/Min Kyi Htun/AppData/Local/Programs/Microsoft VS Code/bin
[2023-02-20 19:41:07.566] XDG_RUNTIME_DIR=/mnt/wslg/runtime-dir
[2023-02-20 19:41:07.566] DISPLAY=:0
[2023-02-20 19:41:07.566] LANG=C.UTF-8
[2023-02-20 19:41:07.566] SHELL=/bin/bash
[2023-02-20 19:41:07.566] PWD=/mnt/c/Users/Min Kyi Htun/AppData/Local/Programs/Microsoft VS Code
[2023-02-20 19:41:07.566] WSL2_GUI_APPS_ENABLED=1
[2023-02-20 19:41:07.566] HOSTTYPE=x86_64
[2023-02-20 19:41:07.566] WSLENV=VSCODE_WSL_EXT_LOCATION/up
[2023-02-20 19:41:07.566] Setting up server environment: Looking for /home/kkaung66/.vscode-server/server-env-setup. Not found.
[2023-02-20 19:41:07.566] WSL version: 5.15.79.1-microsoft-standard-WSL2 Ubuntu
[2023-02-20 19:41:07.566] WSL-shell-PID: 14
[2023-02-20 19:41:07.566] Node executable: /home/kkaung66/.vscode-server/bin/441438abd1ac652551dbe4d408dfcec8a499b8bf/node
[2023-02-20 19:41:07.566] Starting server: /home/kkaung66/.vscode-server/bin/441438abd1ac652551dbe4d408dfcec8a499b8bf/bin/code-server --host=127.0.0.1 --port=0 --connection-token=2043788981-392226416-2756083601-806698319 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --log=trace --telemetry-level=all
[2023-02-20 19:41:07.570] + CODE_PROFILE=/home/kkaung66/.vscode-server/server-env-setup
[2023-02-20 19:41:07.570] + printf Setting up server environment: Looking for %s. /home/kkaung66/.vscode-server/server-env-setup
[2023-02-20 19:41:07.570] + [ -f /home/kkaung66/.vscode-server/server-env-setup ]
[2023-02-20 19:41:07.570] + echo Not found.
[2023-02-20 19:41:07.570] + VSCODE_REMOTE_BIN=/home/kkaung66/.vscode-server/bin
[2023-02-20 19:41:07.570] + uname -r
[2023-02-20 19:41:07.570] + WSL_VERSION=5.15.79.1-microsoft-standard-WSL2
[2023-02-20 19:41:07.570] + echo WSL version: 5.15.79.1-microsoft-standard-WSL2 Ubuntu
[2023-02-20 19:41:07.570] + dirname /mnt/c/Users/Min Kyi Htun/.vscode/extensions/ms-vscode-remote.remote-wsl-0.75.3/scripts/wslServer.sh
[2023-02-20 19:41:07.570] + /mnt/c/Users/Min Kyi Htun/.vscode/extensions/ms-vscode-remote.remote-wsl-0.75.3/scripts/wslDownload.sh 441438a stable /home/kkaung66/.vscode-server/bin
[2023-02-20 19:41:07.570] + [ ! -d /home/kkaung66/.vscode-server/bin/441438abd1ac652551dbe4d408dfcec8a499b8bf ]
[2023-02-20 19:41:07.570] + RC=0
[2023-02-20 19:41:07.570] + [ 0 -ne 0 ]
[2023-02-20 19:41:07.570] + echo WSL-shell-PID: 14
[2023-02-20 19:41:07.570] + echo Node executable: /home/kkaung66/.vscode-server/bin/441438abd1ac652551dbe4d408dfcec8a499b8bf/node
[2023-02-20 19:41:07.570] + echo Starting server: /home/kkaung66/.vscode-server/bin/441438abd1ac652551dbe4d408dfcec8a499b8bf/bin/code-server --host=127.0.0.1 --port=0 --connection-token=2043788981-392226416-2756083601-806698319 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --log=trace --telemetry-level=all
[2023-02-20 19:41:07.570] + [ -f /etc/alpine-release ]
[2023-02-20 19:41:07.570] + uname -m
[2023-02-20 19:41:07.570] + [ x86_64 = aarch64 ]
[2023-02-20 19:41:07.570] + ulimit -C unlimited
[2023-02-20 19:41:07.570] /mnt/c/Users/Min Kyi Htun/.vscode/extensions/ms-vscode-remote.remote-wsl-0.75.3/scripts/wslServer.sh: 50: ulimit: Illegal option -C
[2023-02-20 19:41:07.570] + /home/kkaung66/.vscode-server/bin/441438abd1ac652551dbe4d408dfcec8a499b8bf/bin/code-server --host=127.0.0.1 --port=0 --connection-token=2043788981-392226416-2756083601-806698319 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --log=trace --telemetry-level=all
[2023-02-20 19:41:07.571] VS Code Server for WSL closed unexpectedly.
[2023-02-20 19:41:07.571] For help with startup problems, go to https://code.visualstudio.com/docs/remote/troubleshooting#_wsl-tips
[2023-02-20 19:41:07.575] C:\Windows\System32\wsl.exe -d Ubuntu -e kill 14
[2023-02-20 19:41:07.853] WSL Daemon exited with code 0

VS Code version: Code 1.75.1 (441438a, 2023-02-08T21:32:34.589Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Sandboxed: No
Connection to 'WSL: Ubuntu' could not be established VS Code Server for WSL closed unexpectedly.
Check WSL terminal for more details.

System Info
Item Value
CPUs AMD Ryzen 5 2600 Six-Core Processor (12 x 3400)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
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_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) undefined
Memory (System) 15.95GB (8.08GB free)
Process Argv --crash-reporter-id aa8673ca-087a-4abe-b7fd-6158ca6c45c8
Screen Reader no
VM 0%

Connection to 'WSL: Ubuntu' could not be established VS Code Server for WSL closed unexpectedly.
Check WSL terminal for more details.

Extensions: none
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
azure-dev_surveyone:30548225
pyindex848:30662994
nodejswelcome1:30587005
282f8724:30602487
pyind779cf:30662993
89544117:30613380
pythonsymbol12cf:30657549
2i9eh265:30646982
vsccsb:30662443

Metadata

Metadata

Assignees

Labels

info-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions