-
Notifications
You must be signed in to change notification settings - Fork 822
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
Problem running code and code-insiders on Ubuntu distro 23.04 #9778
Comments
@mwoodpatrick the This is output when running VSCode log[2023-03-12 18:10:08.209] Resolving wsl+Lunar, resolveAttempt: 1 [2023-03-12 18:10:08.303] Starting VS Code Server inside WSL (wsl2) [2023-03-12 18:10:08.303] Extension version: 0.76.1 [2023-03-12 18:10:08.303] Windows build: 19045. Multi distro support: available. WSL path support: enabled [2023-03-12 18:10:08.303] No shell environment set or found for current distro. [2023-03-12 18:10:08.407] WSL daemon log file: [2023-03-12 18:10:08.407] Probing if server is already installed: C:\Windows\System32\wsl.exe -d Lunar -e sh -c "if [ -d ~/.vscode-server/bin/5e805b79fcb6ba4c2d23712967df89a089da575b ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m" [2023-03-12 18:10:11.337] Probing result: x86_64 [2023-03-12 18:10:11.337] No server install found in WSL, needs linux-x64 [2023-03-12 18:10:11.338] Launching C:\Windows\System32\wsl.exe -d Lunar sh -c '"$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" 5e805b79fcb6ba4c2d23712967df89a089da575b stable code-server .vscode-server --host=127.0.0.1 --port=0 --connection-token=1481452266-1054740942-4059009518-3605358721 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --disable-telemetry --telemetry-level=off' [2023-03-12 18:10:11.652] Setting up server environment: Looking for /root/.vscode-server/server-env-setup. Not found. [2023-03-12 18:10:11.652] WSL version: 5.15.90.1-microsoft-standard-WSL2 Lunar [2023-03-12 18:10:11.652] Installing VS Code Server from tar available at /mnt/c/Users/valli/AppData/Local/Temp/vscode-remote-wsl/5e805b79fcb6ba4c2d23712967df89a089da575b/vscode-server-stable-linux-x64.tar.gz [2023-03-12 18:10:12.870] Unpacking: 0% 1% 2% 3% 4% 5% 6% 7% 8% 9% 10% 11% 12% 13% 14% 15% 16% 17% 18% [2023-03-12 18:10:13.172] 19% 20% 21% 22% 23% 24% 25% 26% 27% 28% 29% 30% 31% 32% 33% 34% 35% 36% 37% 38% 39% 40% 41% 42% 43% 44% 45% 46% 47% 48% 49% 50% 51% 52% 53% 54% 55% 56% 57% 58% 59% 60% 61% 62% 63% 64% 65% 66% 67% 68% [2023-03-12 18:10:13.487] 69% 70% 71% 72% 73% 74% 75% 76% 77% 78% 79% 80% 81% 82% 83% 84% 85% 86% 87% 88% 89% 90% 91% 92% 93% 94% 95% 96% 97% 98% 99% [2023-03-12 18:10:14.090] 100% [2023-03-12 18:10:14.090] Unpacked 2399 files and folders to /root/.vscode-server/bin/5e805b79fcb6ba4c2d23712967df89a089da575b. [2023-03-12 18:10:14.090] WSL-shell-PID: 14 [2023-03-12 18:10:14.090] Node executable: /root/.vscode-server/bin/5e805b79fcb6ba4c2d23712967df89a089da575b/node [2023-03-12 18:10:14.090] Starting server: /root/.vscode-server/bin/5e805b79fcb6ba4c2d23712967df89a089da575b/bin/code-server --host=127.0.0.1 --port=0 --connection-token=1481452266-1054740942-4059009518-3605358721 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --disable-telemetry --telemetry-level=off [2023-03-12 18:10:14.090] * [2023-03-12 18:10:14.090] * Visual Studio Code Server [2023-03-12 18:10:14.090] * [2023-03-12 18:10:14.090] * By using the software, you agree to [2023-03-12 18:10:14.090] * the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and [2023-03-12 18:10:14.090] * the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement). [2023-03-12 18:10:14.090] * [2023-03-12 18:10:14.090] Server bound to 127.0.0.1:46659 (IPv4) [2023-03-12 18:10:14.090] Extension host agent listening on 46659 [2023-03-12 18:10:14.090] [2023-03-12 18:10:14.096] Started local proxy server on 54444. [2023-03-12 18:10:14.096] WSL resolver response: 127.0.0.1:54444 [2023-03-12 18:10:14.096] To debug connection issues, open a local browser on http://127.0.0.1:54444/version [2023-03-12 18:10:14.096] Using 'wslExeProxy' to connect to the VS Code server as configured by setting 'remote.WSL2.connectionMethod' [2023-03-12 18:10:14.096] 'wslExeProxy' should fix reconnection issues after sleep and network adapter changes. [2023-03-12 18:10:14.096] Please report issues related with the new setting to https://github.com/microsoft/vscode-remote-release/issues/5894 [2023-03-12 18:10:14.096] To revert back to the old way of connecting, change setting 'remote.WSL2.connectionMethod' to 'wsl2VMAddress'. [2023-03-12 18:10:14.635] Download in background is enabledand this lines are of interest:
No server found, install a new one. Why is your log referring |
Disabling fixes the issue so seems related to [WSL2][systemd][interop] Unable to Execute Windows Binary when systemd enabled · Issue #8843 · microsoft/WSL (github.com) However, I get wget https://github.com/arkane-systems/bottle-imp/blob/master/othersrc/usr-lib/binfmt.d/WSLInterop.conf |
Windows VersionMicrosoft Windows 11 Professional 22H2 (10.0.22621.1555) WSL Versionv1.2.5.0 Are you using WSL 1 or WSL 2?
Kernel Versionv5.15.90.1 Distro VersionUbuntu 23.04 Lunar Lobster Other softwareNothing related. Reproduce steps
Expected BehaviourAll the same as running 22.10 instance. Actual BehaviourUnable to run Diagnostic LogsNope. |
WSL extension in vs code only adds the server to your distro if they are installed within a two-week of it. So, anything installed after doesn't get it. uninstall the WSL extension in VS Code, restart VS Code, install WSL extension, reboot your computer, open your distro and type I didn't see this till after I had done the above, but this may also work: find the WSL extension, click on the settings "gear", go to extension settings, to the left of "Remote.WSL: Download in Background" there is another settings "gear" click it (if its not there move your mouse over that area and it will appear), hit reset setting, reboot and see if it worked. If not do option one. |
@DeForestDiamond Thanks for sharing your experience. I tried both of your suggested workarounds and neither worked for me. I had to resort to running this one-liner to fix the problem: #8843 (comment) Though I'm confused why this error just surfaced today, since I enabled systemd support in WSL a while ago |
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request. Thank you! |
Windows Version
Microsoft Windows [Version 10.0.22624.1391]
WSL Version
1.1.3.0
Are you using WSL 1 or WSL 2?
Kernel Version
No response
Distro Version
Un
Other Software
No response
Repro Steps
Download ubuntu distro:
wget https://cloud-images.ubuntu.com/lunar/current/lunar-server-cloudimg-amd64-root.tar.xz
wsl --import westie_lunar westie_lunar lunar-server-cloudimg-amd64-root.tar.xz
Expected Behavior
code and code insiders should be startable from inside the distro
Actual Behavior
which code
/mnt/c/Users/mlwp/AppData/Local/Programs/Microsoft VS Code/bin/code
Running from windows and opening distro
[2023-03-12 15:59:36.334] Resolving wsl+westie_lunar, resolveAttempt: 1
[2023-03-12 15:59:37.218] Starting VS Code Server inside WSL (wsl2)
[2023-03-12 15:59:37.218] Extension version: 0.76.1
[2023-03-12 15:59:37.218] Windows build: 22624. Multi distro support: available. WSL path support: enabled
[2023-03-12 15:59:37.219] No shell environment set or found for current distro.
[2023-03-12 15:59:37.635] WSL daemon log file:
[2023-03-12 15:59:37.638] Probing if server is already installed: C:\WINDOWS\System32\wsl.exe -d westie_lunar -e sh -c "if [ -d ~/.vscode-server/bin/5e805b79fcb6ba4c2d23712967df89a089da575b ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m"
[2023-03-12 16:00:08.311] Unable to detect if server is already installed: Error: Command failed: C:\WINDOWS\System32\wsl.exe -d westie_lunar -e sh -c "if [ -d ~/.vscode-server/bin/5e805b79fcb6ba4c2d23712967df89a089da575b ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m"
[2023-03-12 16:00:08.311] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
[2023-03-12 16:00:08.311] Error code: Wsl/Service/0x8007274c
[2023-03-12 16:00:08.311]
[2023-03-12 16:00:08.312] Launching C:\WINDOWS\System32\wsl.exe -d westie_lunar sh -c '"$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" 5e805b79fcb6ba4c2d23712967df89a089da575b stable code-server .vscode-server --host=127.0.0.1 --port=0 --connection-token=2709892688-3028382815-892257566-4007814312 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=all'
[2023-03-12 16:00:08.506] Catastrophic failure
[2023-03-12 16:00:08.506] Error code: Wsl/Service/E_UNEXPECTED
[2023-03-12 16:00:08.506]
[2023-03-12 16:00:08.507] VS Code Server for WSL closed unexpectedly.
[2023-03-12 16:00:08.507] For help with startup problems, go to https://code.visualstudio.com/docs/remote/troubleshooting#_wsl-tips
[2023-03-12 16:00:08.517] WSL Daemon exited with code 0
[2023-03-12 16:00:32.662] Download in background is enabled
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: