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

WSL2 fails to start in VS Code #2083

Closed
TolganLight opened this issue Dec 22, 2019 · 5 comments
Closed

WSL2 fails to start in VS Code #2083

TolganLight opened this issue Dec 22, 2019 · 5 comments
Assignees

Comments

@TolganLight
Copy link

Issue Type: Bug

This started happening after a recent windows update (insider build). WSL2 is installed.

VS Code version: Code 1.41.1 (26076a4de974ead31f97692a0d32f90d735645c0, 2019-12-18T14:58:56.166Z)
OS version: Windows_NT x64 10.0.19041
Fetching remote diagnostics for 'WSL: Ubuntu-18.04' failed: connect ECONNREFUSED ::1:32829

System Info
Item Value
CPUs Intel(R) Core(TM) i5-5300U CPU @ 2.30GHz (4 x 2295)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.70GB (9.80GB free)
Process Argv --folder-uri=vscode-remote://wsl+Ubuntu-18.04/mnt/c/projects --remote=wsl+Ubuntu-18.04
Screen Reader no
VM 0%

Fetching remote diagnostics for 'WSL: Ubuntu-18.04' failed: connect ECONNREFUSED ::1:32829

Extensions: none
@TolganLight
Copy link
Author

TolganLight commented Dec 22, 2019

Debug Log:
[2019-12-22 06:06:59.232] Resolving wsl+ubuntu-18.04, resolveAttempt: 1
[2019-12-22 06:06:59.289] Starting VS Code Server inside WSL (Ubuntu-18.04)
[2019-12-22 06:06:59.289] Extension version: 0.41.6, Windows build: 19041. Multi distro support: available. WSL path support: enabled
[2019-12-22 06:06:59.550] Probing if server is already installed: C:\WINDOWS\System32\wsl.exe -d Ubuntu-18.04 -e sh -c "[ -d ~/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0 ] && printf found || ([ -f /etc/alpine-release ] && printf alpine-; uname -m)"
[2019-12-22 06:06:59.827] Probing result: found
[2019-12-22 06:06:59.827] Server install found in WSL
[2019-12-22 06:06:59.828] Launching C:\WINDOWS\System32\wsl.exe -d Ubuntu-18.04 sh -c '"$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" 26076a4de974ead31f97692a0d32f90d735645c0 stable .vscode-server 0 --disable-telemetry' in c:\Users\userf.vscode\extensions\ms-vscode-remote.remote-wsl-0.41.6
[2019-12-22 06:07:00.171] Setting up server environment: Looking for /home/userf/.vscode-server/server-env-setup. Not found.
[2019-12-22 06:07:00.171] WSL version: 4.19.84-microsoft-standard Ubuntu-18.04
[2019-12-22 06:07:00.171] WSL2-shell-PID: 325
[2019-12-22 06:07:00.171] Starting server: /home/userf/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/server.sh --port=0 --enable-remote-auto-shutdown --disable-telemetry
[2019-12-22 06:07:00.761]
[2019-12-22 06:07:00.761]
[2019-12-22 06:07:00.761] *
[2019-12-22 06:07:00.761] * Visual Studio Code Server
[2019-12-22 06:07:00.761] *
[2019-12-22 06:07:00.761] * Reminder: You may only use this software with Visual Studio family products,
[2019-12-22 06:07:00.761] * as described in the license https://aka.ms/vscode-remote/license
[2019-12-22 06:07:00.761] *
[2019-12-22 06:07:00.761]
[2019-12-22 06:07:00.761]
[2019-12-22 06:07:00.761] IP Address: 172.30.212.201
[2019-12-22 06:07:00.761] Extension host agent listening on 34451
[2019-12-22 06:07:00.761]
[2019-12-22 06:07:00.761]
[2019-12-22 06:07:00.761] [17:07:00] Extension host agent started.
[2019-12-22 06:07:00.764] WSL resolver response: ::1:34451
[2019-12-22 06:07:00.764] To debug connection issues, open a local browser on http://[::1]:34451/version

@brlebtag

This comment has been minimized.

@aeschli
Copy link
Contributor

aeschli commented Dec 23, 2019

From the log it seems that the server has correctly started up. Can you describe what error you are seing?
Also can you try to open http://[::1]:34451/version in a browser?

@aeschli aeschli transferred this issue from microsoft/vscode Dec 23, 2019
@TolganLight
Copy link
Author

The error was: connect ECONNREFUSED ::1:32829

I can confirm that I am no longer getting this error after a second machine reboot. Seems this error is intermittent. Happy for this to be closed.

@aeschli
Copy link
Contributor

aeschli commented Dec 23, 2019

Thanks a lot for the update!

@aeschli aeschli closed this as completed Dec 23, 2019
@aeschli
Copy link
Contributor

aeschli commented Dec 31, 2019

dup of #2037

@vscodebot vscodebot bot locked and limited conversation to collaborators Feb 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants