microsoft / microsoft/vscode-remote-release
Remote-WSL could not fetch remote environment and websocket close with status code 1006.
Open
Nobody has claimed this yet.
bug
connection
wsl
- Dominant language
- Dockerfile
- Stars
- 4.2k
- Forks
- 470
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
- Local OS Version: Microsoft Windows [Version 10.0.19041.1083]
- Remote OS Version: WSL2 Ubuntu 18.04.2 LTS
- Remote Extension/Connection Type: WSL
- VSCode Version: 1.58.0 (user setup)
- commit: 2d23c42a936db1c7b3b06f918cde29561cc47cd6
OS: Windows_NT x64 10.0.19041 - Logs:
[2021-07-11 14:43:32.375] Resolving wsl+Ubuntu, resolveAttempt: 1
[2021-07-11 14:43:32.429] Starting VS Code Server inside WSL (Ubuntu)
[2021-07-11 14:43:32.429] Extension version: 0.58.2, Windows build: 19041. Multi distro support: available. WSL path support: enabled
[2021-07-11 14:43:32.429] No shell environment set or found for current distro.
[2021-07-11 14:43:32.575] Probing if server is already installed: C:\WINDOWS\System32\wsl.exe -d Ubuntu -e sh -c "[ -d ~/.vscode-server/bin/2d23c42a936db1c7b3b06f918cde29561cc47cd6 ] && printf found || ([ -f /etc/alpine-release ] && printf alpine-; uname -m)"
[2021-07-11 14:43:32.695] Probing result: found
[2021-07-11 14:43:32.696] Server install found in WSL
[2021-07-11 14:43:32.696] Launching C:\WINDOWS\System32\wsl.exe -d Ubuntu sh -c 'env && VSCODE_WSL_DEBUG_INFO=true "$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" 2d23c42a936db1c7b3b06f918cde29561cc47cd6 stable .vscode-server 0 ', cwd: undefined, env: {
[2021-07-11 14:43:32.696] "ALLUSERSPROFILE": "C:\\ProgramData",
[2021-07-11 14:43:32.696] "APPDATA": "C:\\Users\\InYuo\\AppData\\Roaming",
[2021-07-11 14:43:32.696] "APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL": "true",
[2021-07-11 14:43:32.696] "asl.log": "Destination=file",
[2021-07-11 14:43:32.696] "ChocolateyInstall": "C:\\ProgramData\\chocolatey",
[2021-07-11 14:43:32.696] "ChocolateyLastPathUpdate": "132279680796645999",
[2021-07-11 14:43:32.696] "CHROME_CRASHPAD_PIPE_NAME": "\\\\.\\pipe\\crashpad_23016_IASRWEHFSDVWUSLI",
[2021-07-11 14:43:32.696] "CommonProgramFiles": "C:\\Program Files\\Common Files",
[2021-07-11 14:43:32.696] "CommonProgramFiles(x86)": "C:\\Program Files (x86)\\Common Files",
[2021-07-11 14:43:32.696] "CommonProgramW6432": "C:\\Program Files\\Common Files",
[2021-07-11 14:43:32.696] "COMPUTERNAME": "DESKTOP-4LR6MGN",
[2021-07-11 14:43:32.696] "ComSpec": "C:\\WINDOWS\\system32\\cmd.exe",
[2021-07-11 14:43:32.696] "DriverData": "C:\\Windows\\System32\\Drivers\\DriverData",
[2021-07-11 14:43:32.696] "FPS_BROWSER_APP_PROFILE_STRING": "Internet Explorer",
[2021-07-11 14:43:32.696] "FPS_BROWSER_USER_PROFILE_STRING": "Default",
[2021-07-11 14:43:32.696] "HOMEDRIVE": "C:",
[2021-07-11 14:43:32.696] "HOMEPATH": "\\Users\\InYuo",
[2021-07-11 14:43:32.696] "LOCALAPPDATA": "C:\\Users\\InYuo\\AppData\\Local",
[2021-07-11 14:43:32.696] "LOGONSERVER": "\\\\DESKTOP-4LR6MGN",
[2021-07-11 14:43:32.696] "NUMBER_OF_PROCESSORS": "6",
[2021-07-11 14:43:32.696] "OneDrive": "C:\\Users\\InYuo\\OneDrive",
[2021-07-11 14:43:32.696] "OneDriveConsumer": "C:\\Users\\InYuo\\OneDrive",
[2021-07-11 14:43:32.696] "ORIGINAL_XDG_CURRENT_DESKTOP": "undefined",
[2021-07-11 14:43:32.696] "OS": "Windows_NT",
[2021-07-11 14:43:32.696] "Path": "C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\Python27\\;C:\\Python27\\Scripts;C:\\ProgramData\\Anaconda3;C:\\ProgramData\\Anaconda3\\Library\\mingw-w64\\bin;C:\\ProgramData\\Anaconda3\\Library\\usr\\bin;C:\\ProgramData\\Anaconda3\\Library\\bin;C:\\ProgramData\\Anaconda3\\Scripts;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NGX;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\ProgramData\\chocolatey\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\MinGW\\bin\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\nodejs\\;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Ruby26-x64\\bin;C:\\Users\\InYuo\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\JetBrains\\PyCharm Community Edition 2019.1.1\\bin;D:\\bandzip\\;C:\\Users\\InYuo\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\InYuo\\AppData\\Local\\Programs\\MiKTeX 2.9\\miktex\\bin\\x64\\;C:\\Users\\InYuo\\AppData\\Local\\GitHubDesktop\\bin;C:\\Users\\InYuo\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\InYuo\\AppData\\Roaming\\npm;C:\\Program Files\\mingw-w64\\x86_64-8.1.0-posix-seh-rt_v6-rev0\\mingw64\\bin;;C:\\Users\\InYuo\\AppData\\Local\\Programs\\Microsoft VS Code Insiders\\bin",
[2021-07-11 14:43:32.696] "PATHEXT": ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.RB;.RBW",
[2021-07-11 14:43:32.696] "PROCESSOR_ARCHITECTURE": "AMD64",
[2021-07-11 14:43:32.696] "PROCESSOR_IDENTIFIER": "Intel64 Family 6 Model 158 Stepping 10, GenuineIntel",
[2021-07-11 14:43:32.696] "PROCESSOR_LEVEL": "6",
[2021-07-11 14:43:32.696] "PROCESSOR_REVISION": "9e0a",
[2021-07-11 14:43:32.696] "ProgramData": "C:\\ProgramData",
[2021-07-11 14:43:32.696] "ProgramFiles": "C:\\Program Files",
[2021-07-11 14:43:32.696] "ProgramFiles(x86)": "C:\\Program Files (x86)",
[2021-07-11 14:43:32.696] "ProgramW6432": "C:\\Program Files",
[2021-07-11 14:43:32.696] "PSModulePath": "C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files\\Intel\\Wired Networking\\",
[2021-07-11 14:43:32.696] "PUBLIC": "C:\\Users\\Public",
[2021-07-11 14:43:32.696] "PyCharm Community Edition": "C:\\Program Files\\JetBrains\\PyCharm Community Edition 2019.1.1\\bin;",
[2021-07-11 14:43:32.696] "RUBYOPT": "-Eutf-8",
[2021-07-11 14:43:32.696] "SESSIONNAME": "Console",
[2021-07-11 14:43:32.696] "SystemDrive": "C:",
[2021-07-11 14:43:32.696] "SystemRoot": "C:\\WINDOWS",
[2021-07-11 14:43:32.696] "TEMP": "C:\\Users\\InYuo\\AppData\\Local\\Temp",
[2021-07-11 14:43:32.696] "TMP": "C:\\Users\\InYuo\\AppData\\Local\\Temp",
[2021-07-11 14:43:32.696] "USERDOMAIN": "DESKTOP-4LR6MGN",
[2021-07-11 14:43:32.696] "USERDOMAIN_ROAMINGPROFILE": "DESKTOP-4LR6MGN",
[2021-07-11 14:43:32.696] "USERNAME": "InYuo",
[2021-07-11 14:43:32.696] "USERPROFILE": "C:\\Users\\InYuo",
[2021-07-11 14:43:32.696] "windir": "C:\\WINDOWS",
[2021-07-11 14:43:32.696] "VSCODE_WSL_EXT_LOCATION": "c:\\Users\\InYuo\\.vscode\\extensions\\ms-vscode-remote.remote-wsl-0.58.2",
[2021-07-11 14:43:32.696] "WSLENV": "VSCODE_WSL_EXT_LOCATION/up"
[2021-07-11 14:43:32.696] }}
[2021-07-11 14:43:32.872] USER=yaoyin
[2021-07-11 14:43:32.872] VSCODE_WSL_EXT_LOCATION=/mnt/c/Users/InYuo/.vscode/extensions/ms-vscode-remote.remote-wsl-0.58.2
[2021-07-11 14:43:32.872] SHLVL=0
[2021-07-11 14:43:32.872] HOME=/home/yaoyin
[2021-07-11 14:43:32.872] OLDPWD=/mnt/c/Users/InYuo/AppData/Local/Programs/Microsoft VS Code
[2021-07-11 14:43:32.872] WSL_DISTRO_NAME=Ubuntu
[2021-07-11 14:43:32.872] LOGNAME=yaoyin
[2021-07-11 14:43:32.872] WSL_INTEROP=/run/WSL/155_interop
[2021-07-11 14:43:32.872] NAME=DESKTOP-4LR6MGN
[2021-07-11 14:43:32.872] _=/bin/sh
[2021-07-11 14:43:32.872] TERM=xterm-256color
[2021-07-11 14:43:32.872] PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program Files (x86)/Common Files/Oracle/Java/javapath:/mnt/c/Program Files/Common Files/Oracle/Java/javapath:/mnt/c/Python27/:/mnt/c/Python27/Scripts:/mnt/c/ProgramData/Anaconda3:/mnt/c/ProgramData/Anaconda3/Library/mingw-w64/bin:/mnt/c/ProgramData/Anaconda3/Library/usr/bin:/mnt/c/ProgramData/Anaconda3/Library/bin:/mnt/c/ProgramData/Anaconda3/Scripts:/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/NVIDIA Corporation/NVIDIA NGX:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:/mnt/c/ProgramData/chocolatey/bin:/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/MinGW/bin/:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files/nodejs/:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/ProgramData/DockerDesktop/version-bin:/mnt/c/Ruby26-x64/bin:/mnt/c/Users/InYuo/AppData/Local/Microsoft/WindowsApps:/mnt/c/Program Files/JetBrains/PyCharm Community Edition 2019.1.1/bin:/mnt/d/bandzip/:/mnt/c/Users/InYuo/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/InYuo/AppData/Local/Programs/MiKTeX 2.9/miktex/bin/x64/:/mnt/c/Users/InYuo/AppData/Local/GitHubDesktop/bin:/mnt/c/Users/InYuo/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/InYuo/AppData/Roaming/npm:/mnt/c/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin:/mnt/c/Users/InYuo/AppData/Local/Programs/Microsoft VS Code Insiders/bin
[2021-07-11 14:43:32.872] LANG=zh_CN.UTF-8
[2021-07-11 14:43:32.872] SHELL=/bin/zsh
[2021-07-11 14:43:32.872] PWD=/mnt/c/Users/InYuo/AppData/Local/Programs/Microsoft VS Code
[2021-07-11 14:43:32.872] HOSTTYPE=x86_64
[2021-07-11 14:43:32.872] WSLENV=VSCODE_WSL_EXT_LOCATION/up
[2021-07-11 14:43:33.182] Setting up server environment: Looking for /home/yaoyin/.vscode-server/server-env-setup. Not found.
[2021-07-11 14:43:33.182] WSL version: 5.4.72-microsoft-standard-WSL2 Ubuntu
[2021-07-11 14:43:33.182] WSL2-shell-PID: 158
[2021-07-11 14:43:33.182] Starting server: /home/yaoyin/.vscode-server/bin/2d23c42a936db1c7b3b06f918cde29561cc47cd6/server.sh --port=0 --use-host-proxy --without-browser-env-var --disable-websocket-compression --print-ip-address --enable-remote-auto-shutdown --log=trace
[2021-07-11 14:43:33.182]
[2021-07-11 14:43:33.182]
[2021-07-11 14:43:33.182] *
[2021-07-11 14:43:33.182] * Visual Studio Code Server
[2021-07-11 14:43:33.182] *
[2021-07-11 14:43:33.182] * Reminder: You may only use this software with Visual Studio family products,
[2021-07-11 14:43:33.182] * as described in the license https://aka.ms/vscode-remote/license
[2021-07-11 14:43:33.182] *
[2021-07-11 14:43:33.182]
[2021-07-11 14:43:33.182] Extension host agent listening on 41669
[2021-07-11 14:43:33.182]
[2021-07-11 14:43:33.183] Using localhost as configured by setting 'remote.WSL.server.connectThroughLocalhost'
[2021-07-11 14:43:33.183] WSL resolver response: ::1:41669
[2021-07-11 14:43:33.183] To debug connection issues, open a local browser on http://[::1]:41669/version
[2021-07-11 14:43:33.184] No extension host environment set
[2021-07-11 14:43:33.184] + LOGGING_ARGS=--log=trace
[2021-07-11 14:43:33.184] + [ ! -d /home/yaoyin/.vscode-server ]
[2021-07-11 14:43:33.184] + CODE_PROFILE=/home/yaoyin/.vscode-server/server-env-setup
[2021-07-11 14:43:33.184] + printf Setting up server environment: Looking for %s. /home/yaoyin/.vscode-server/server-env-setup
[2021-07-11 14:43:33.184] + [ -f /home/yaoyin/.vscode-server/server-env-setup ]
[2021-07-11 14:43:33.184] + echo Not found.
[2021-07-11 14:43:33.184] + VSCODE_REMOTE_BIN=/home/yaoyin/.vscode-server/bin
[2021-07-11 14:43:33.184] + uname -r
[2021-07-11 14:43:33.184] + WSL_VERSION=5.4.72-microsoft-standard-WSL2
[2021-07-11 14:43:33.184] + echo WSL version: 5.4.72-microsoft-standard-WSL2 Ubuntu
[2021-07-11 14:43:33.184] + dirname /mnt/c/Users/InYuo/.vscode/extensions/ms-vscode-remote.remote-wsl-0.58.2/scripts/wslServer.sh
[2021-07-11 14:43:33.184] + /mnt/c/Users/InYuo/.vscode/extensions/ms-vscode-remote.remote-wsl-0.58.2/scripts/wslDownload.sh 2d23c42a936db1c7b3b06f918cde29561cc47cd6 stable /home/yaoyin/.vscode-server/bin
[2021-07-11 14:43:33.184] + [ ! -d /home/yaoyin/.vscode-server/bin/2d23c42a936db1c7b3b06f918cde29561cc47cd6 ]
[2021-07-11 14:43:33.184] + RC=0
[2021-07-11 14:43:33.184] + [ 0 -ne 0 ]
[2021-07-11 14:43:33.184] + POLLING_ARGS=
[2021-07-11 14:43:33.184] + uname -r
[2021-07-11 14:43:33.184] + echo WSL2-shell-PID: 158
[2021-07-11 14:43:33.184] + echo Starting server: /home/yaoyin/.vscode-server/bin/2d23c42a936db1c7b3b06f918cde29561cc47cd6/server.sh --port=0 --use-host-proxy --without-browser-env-var --disable-websocket-compression --print-ip-address --enable-remote-auto-shutdown --log=trace
[2021-07-11 14:43:33.184] + [ -f /etc/alpine-release ]
[2021-07-11 14:43:33.184] + uname -m
[2021-07-11 14:43:33.184] + [ x86_64 = aarch64 ]
[2021-07-11 14:43:33.184] + export VSCODE_AGENT_FOLDER=/home/yaoyin/.vscode-server
[2021-07-11 14:43:33.184] + /home/yaoyin/.vscode-server/bin/2d23c42a936db1c7b3b06f918cde29561cc47cd6/server.sh --port=0 --use-host-proxy --without-browser-env-var --disable-websocket-compression --print-ip-address --enable-remote-auto-shutdown --log=trace
Tried many methods in this issue, but nothing helps.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the logged scripts/wslServer.sh and wslDownload.sh, then trace the polling after the VS Code Server reports port 41669. Reproduce the Remote-WSL connection using the listed Windows and Ubuntu versions and inspect why the environment fetch or websocket closes; done means the remote environment loads and the websocket remains connected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, ubuntu, vscode
- Domain
- devtools, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100