vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Remote server reinstall every boot!, says: No server install found in WSL, needs linux-x64

Open italocjs opened this issue 1 year ago • 1 comments

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: Version: 0.40.1 VSCode Version: 1.91.1 Commit: 58b91712431381a1b75817cd3437cee35dddcb30 Date: 2024-08-24T02:52:24.035Z Electron: 29.4.0 ElectronBuildId: undefined Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Windows_NT x64 10.0.22631

Steps to Reproduce:

  1. Shutdown laptop
  2. Open VSCODE (or cursor) and connect to WSL
  3. It should not re-download server. as it was previous installed.
37] Extension version: 0.81.8
[2024-08-28 11:09:48.937] L10N bundle: undefined
[2024-08-28 11:09:48.960] authorityHierarchy: wsl+ubuntu-24.04
[2024-08-28 11:09:48.960] WSL extension activating for a local WSL instance
[2024-08-28 11:09:48.989] Resolving wsl+ubuntu-24.04, resolveAttempt: 1
[2024-08-28 11:09:48.989] NodeExecServer run: C:\Windows\System32\wsl.exe --status
[2024-08-28 11:09:49.077] WSL feature installed: true (wsl --status)
[2024-08-28 11:09:49.077] NodeExecServer run: C:\Windows\System32\wsl.exe --list --verbose
[2024-08-28 11:09:49.163] 2 distros found
[2024-08-28 11:09:49.165] Starting VS Code Server inside WSL (wsl2)
[2024-08-28 11:09:49.165] Windows build: 22631. Multi distro support: available. WSL path support: enabled
[2024-08-28 11:09:49.165] Scriptless setup: false
[2024-08-28 11:09:49.166] No shell environment set or found for current distro.
[2024-08-28 11:09:49.403] WSL daemon log file: 
[2024-08-28 11:09:49.408] Probing if server is already installed: if [ -d ~/.cursor-server/bin/58b91712431381a1b75817cd3437cee35dddcb30 ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m
[2024-08-28 11:09:49.408] NodeExecServer run: C:\Windows\System32\wsl.exe -d Ubuntu-24.04 -e sh -c if [ -d ~/.cursor-server/bin/58b91712431381a1b75817cd3437cee35dddcb30 ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m
[2024-08-28 11:09:53.880] Probing result: x86_64
[2024-08-28 11:09:53.880] No server install found in WSL, needs linux-x64
[2024-08-28 11:09:53.880] Getting server from client side
[2024-08-28 11:09:53.881] Downloading VS Code Server stable - 58b91712431381a1b75817cd3437cee35dddcb30 into C:\Users\ItaloG5\AppData\Local\Temp\vscode-remote-wsl\58b91712431381a1b75817cd3437cee35dddcb30\vscode-server-stable-linux-x64.tar.gz.
[2024-08-28 11:09:54.545] Download checksum: undefined


[2024-08-28 11:09:48.937] Extension version: 0.81.8
[2024-08-28 11:09:48.937] L10N bundle: undefined
[2024-08-28 11:09:48.960] authorityHierarchy: wsl+ubuntu-24.04
[2024-08-28 11:09:48.960] WSL extension activating for a local WSL instance
[2024-08-28 11:09:48.989] Resolving wsl+ubuntu-24.04, resolveAttempt: 1
[2024-08-28 11:09:48.989] NodeExecServer run: C:\Windows\System32\wsl.exe --status
[2024-08-28 11:09:49.077] WSL feature installed: true (wsl --status)
[2024-08-28 11:09:49.077] NodeExecServer run: C:\Windows\System32\wsl.exe --list --verbose
[2024-08-28 11:09:49.163] 2 distros found
[2024-08-28 11:09:49.165] Starting VS Code Server inside WSL (wsl2)
[2024-08-28 11:09:49.165] Windows build: 22631. Multi distro support: available. WSL path support: enabled
[2024-08-28 11:09:49.165] Scriptless setup: false
[2024-08-28 11:09:49.166] No shell environment set or found for current distro.
[2024-08-28 11:09:49.403] WSL daemon log file: 
[2024-08-28 11:09:49.408] Probing if server is already installed: if [ -d ~/.cursor-server/bin/58b91712431381a1b75817cd3437cee35dddcb30 ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m
[2024-08-28 11:09:49.408] NodeExecServer run: C:\Windows\System32\wsl.exe -d Ubuntu-24.04 -e sh -c if [ -d ~/.cursor-server/bin/58b91712431381a1b75817cd3437cee35dddcb30 ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m
[2024-08-28 11:09:53.880] Probing result: x86_64
[2024-08-28 11:09:53.880] No server install found in WSL, needs linux-x64
[2024-08-28 11:09:53.880] Getting server from client side
[2024-08-28 11:09:53.881] Downloading VS Code Server stable - 58b91712431381a1b75817cd3437cee35dddcb30 into C:\Users\ItaloG5\AppData\Local\Temp\vscode-remote-wsl\58b91712431381a1b75817cd3437cee35dddcb30\vscode-server-stable-linux-x64.tar.gz.
[2024-08-28 11:09:54.545] Download checksum: undefined
[2024-08-28 11:12:05.093] Server available at C:\Users\ItaloG5\AppData\Local\Temp\vscode-remote-wsl\58b91712431381a1b75817cd3437cee35dddcb30\vscode-server-stable-linux-x64.tar.gz
[2024-08-28 11:12:05.095] NodeExecServer run: C:\Windows\System32\wsl.exe -d Ubuntu-24.04 sh -c '"$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" 58b91712431381a1b75817cd3437cee35dddcb30 stable cursor-server .cursor-server --host=127.0.0.1 --port=0 --connection-token=3531962487-699883425-3950576905-4218093392 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=all'
[2024-08-28 11:12:09.018] Setting up server environment: Looking for /home/italo/.cursor-server/server-env-setup. Not found.
[2024-08-28 11:12:09.018] WSL version: 5.15.153.1-microsoft-standard-WSL2 Ubuntu-24.04
[2024-08-28 11:12:09.319] Updating VS Code Server to version 58b91712431381a1b75817cd3437cee35dddcb30
[2024-08-28 11:12:09.319] Removing previous installation...
[2024-08-28 11:12:09.319] Installing VS Code Server from tar available at /mnt/c/Users/ItaloG5/AppData/Local/Temp/vscode-remote-wsl/58b91712431381a1b75817cd3437cee35dddcb30/vscode-server-stable-linux-x64.tar.gz
[2024-08-28 11:12:10.521] Unpacking:   0%  1%  2%  3%  4%  5%  6%  7%  8%  9% 10% 11% 12% 13% 14% 15% 16% 17% 18% 19% 20% 21% 22% 23% 24% 25% 26% 27% 28% 29% 30% 31% 32% 33% 34% 35% 36% 37% 38%
[2024-08-28 11:12:10.824]  39% 40% 41% 42% 43% 44% 45% 46% 47% 48% 49% 50% 51% 52% 53% 54% 55%
[2024-08-28 11:12:11.426]  56% 57% 58% 59% 60% 61% 62% 63%
[2024-08-28 11:12:11.725]  64% 65% 66% 67% 68% 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%100%
[2024-08-28 11:12:11.726] Unpacked 1886 files and folders to /home/italo/.cursor-server/bin/58b91712431381a1b75817cd3437cee35dddcb30.
[2024-08-28 11:12:11.726] WSL-shell-PID: 406
[2024-08-28 11:12:11.726] Node executable: /home/italo/.cursor-server/bin/58b91712431381a1b75817cd3437cee35dddcb30/node
[2024-08-28 11:12:11.726] Starting server: /home/italo/.cursor-server/bin/58b91712431381a1b75817cd3437cee35dddcb30/bin/cursor-server --host=127.0.0.1 --port=0 --connection-token=3531962487-699883425-3950576905-4218093392 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=all
[2024-08-28 11:12:12.026] Server bound to 127.0.0.1:38607 (IPv4)
[2024-08-28 11:12:12.026] Extension host agent listening on 38607
[2024-08-28 11:12:12.026] 
[2024-08-28 11:12:12.026] [08:12:10] 
[2024-08-28 11:12:12.026] 
[2024-08-28 11:12:12.026] 
[2024-08-28 11:12:12.026] 
[2024-08-28 11:12:12.026] 
[2024-08-28 11:12:12.026] FaroSystemAppender constructor
[2024-08-28 11:12:12.026] [08:12:10] Extension host agent started.
[2024-08-28 11:12:12.034] [08:12:10] [cmake-tools]: Couldn't find message for key cmake-tools.configuration.cmake.deleteBuildDirOnCleanCconfigure.description.
[2024-08-28 11:12:12.034] Started local proxy server on 52208.
[2024-08-28 11:12:12.035] WSL resolver response: 127.0.0.1:52208
[2024-08-28 11:12:12.035] To debug connection issues, open a local browser on http://127.0.0.1:52208/version
[2024-08-28 11:12:12.095] NodeExecServer run: C:\Windows\System32\wsl.exe -d Ubuntu-24.04 -e /home/italo/.cursor-server/bin/58b91712431381a1b75817cd3437cee35dddcb30/node -e const net = require('net'); process.stdin.pause(); const client = net.createConnection({ host: '127.0.0.1', port: 38607 }, () => { client.pipe(process.stdout); process.stdin.pipe(client); }); client.on('close', function (hadError) { console.error(hadError ? 'Remote close with error' : 'Remote close'); process.exit(hadError ? 1 : 0); }); client.on('error', function (err) { process.stderr.write(err && (err.stack || err.message) || String(err)); });
[2024-08-28 11:12:12.192] NodeExecServer run: C:\Windows\System32\wsl.exe -d Ubuntu-24.04 -e /home/italo/.cursor-server/bin/58b91712431381a1b75817cd3437cee35dddcb30/node -e const net = require('net'); process.stdin.pause(); const client = net.createConnection({ host: '127.0.0.1', port: 38607 }, () => { client.pipe(process.stdout); process.stdin.pipe(client); }); client.on('close', function (hadError) { console.error(hadError ? 'Remote close with error' : 'Remote close'); process.exit(hadError ? 1 : 0); }); client.on('error', function (err) { process.stderr.write(err && (err.stack || err.message) || String(err)); });
[2024-08-28 11:12:13.060] Download in background is enabled


I work mostly in offline environment, and this is stopping me from using vscode! I tried reinstalling vscode, reinstalling windows from scratch again but no change!

italocjs avatar Aug 28 '24 11:08 italocjs

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.92.2. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

I'm not able to reproduce with the latest version of the WSL extension (0.88.2) and VS Code (stable 1.93.0)

Please try these versions. Note that we don't support running the remote-WSL on non-VS Code distributions, so I can't help you there.

aeschli avatar Sep 10 '24 08:09 aeschli

I have tested it again and this does not happen under vscode alone, i will close this issue!

italocjs avatar Sep 10 '24 16:09 italocjs