Unable to Connect to WSL Setup

Ive installed Cursor, and trying to integrate it with WSL. The terminal opens in WSL which is great but when I try and connect to WSL, as I want to open windows/projects etc. But here is whats happening.

I connect via here:

Then i get these logs:

[2023-09-04 20:45:12.719] authorityHierarchy: wsl+Ubuntu
[2023-09-04 20:45:12.720] WSL extension activating for a local WSL instance
[2023-09-04 20:45:12.745] Resolving wsl+Ubuntu, resolveAttempt: 1
[2023-09-04 20:45:12.745] Run: C:\WINDOWS\System32\wsl.exe --status
[2023-09-04 20:45:12.989] WSL feature installed: true (wsl --status)
[2023-09-04 20:45:12.990] Run: C:\WINDOWS\System32\wsl.exe --list --verbose
[2023-09-04 20:45:13.231] Starting VS Code Server inside WSL (wsl2)
[2023-09-04 20:45:13.231] Extension version: 0.80.2
[2023-09-04 20:45:13.231] Windows build: 22621. Multi distro support: available. WSL path support: enabled
[2023-09-04 20:45:13.231] L10N bundle: undefined
[2023-09-04 20:45:13.231] Scriptless setup: false
[2023-09-04 20:45:13.232] No shell environment set or found for current distro.
[2023-09-04 20:45:13.454] WSL daemon log file: 
[2023-09-04 20:45:13.458] Probing if server is already installed: if [ -d ~/.cursor-server/bin/e83fb25fe9144aa8b230e6f9ee2056e20fb24c70 ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m
[2023-09-04 20:45:13.458] Run: C:\WINDOWS\System32\wsl.exe -d Ubuntu -e sh -c if [ -d ~/.cursor-server/bin/e83fb25fe9144aa8b230e6f9ee2056e20fb24c70 ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m
[2023-09-04 20:45:13.951] Probing result: x86_64
[2023-09-04 20:45:13.952] No server install found in WSL, needs linux-x64
[2023-09-04 20:45:13.952] Getting server from client side
[2023-09-04 20:45:13.955] Server available at 
[2023-09-04 20:45:13.957] Run: C:\WINDOWS\System32\wsl.exe -d Ubuntu sh -c '"$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" e83fb25fe9144aa8b230e6f9ee2056e20fb24c70 stable cursor-server .cursor-server --host=127.0.0.1 --port=0 --connection-token=69630486-3412746172-3118319654-2102451456 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=all'
[2023-09-04 20:45:14.589] Setting up server environment: Looking for /home/rick/.cursor-server/server-env-setup. Found, executing...
[2023-09-04 20:45:14.589] 
[2023-09-04 20:45:14.589] 
[2023-09-04 20:45:14.590] + [ ! -d /home/rick/.cursor-server/bin/e83fb25fe9144aa8b230e6f9ee2056e20fb24c70 ]
[2023-09-04 20:45:14.590] + [ ! -d /home/rick/.cursor-server/bin_commit ]
[2023-09-04 20:45:14.590] + set -e
[2023-09-04 20:45:14.590] + fix_download
[2023-09-04 20:45:14.590] + local app_name=cursor
[2023-09-04 20:45:14.590] + wslpath -u PLEASE_REPLACE_THIS
[2023-09-04 20:45:14.590] + local install_dir=PLEASE_REPLACE_THIS
[2023-09-04 20:45:14.590] + local product_json=PLEASE_REPLACE_THIS/product.json
[2023-09-04 20:45:14.590] + awk -F: /commit"/ {gsub(/[" ,]/, "", $2); print $2} PLEASE_REPLACE_THIS/product.json
[2023-09-04 20:45:14.590] awk: fatal: cannot open file `PLEASE_REPLACE_THIS/product.json' for reading (No such file or directory)
[2023-09-04 20:45:14.590] + local cursorCommitString=
[2023-09-04 20:45:14.590] + awk -F: /release/ {gsub(/[" ,]/, "", $2); print $2} PLEASE_REPLACE_THIS/product.json
[2023-09-04 20:45:14.590] awk: fatal: cannot open file `PLEASE_REPLACE_THIS/product.json' for reading (No such file or directory)
[2023-09-04 20:45:14.590] + local vscodium_release=
[2023-09-04 20:45:14.590] + awk -F: /version/ {gsub(/[" ,]/, "", $2); print $2} PLEASE_REPLACE_THIS/product.json
[2023-09-04 20:45:14.590] + tail -n 1
[2023-09-04 20:45:14.590] awk: fatal: cannot open file `PLEASE_REPLACE_THIS/product.json' for reading (No such file or directory)
[2023-09-04 20:45:14.590] + local version=
[2023-09-04 20:45:14.590] + awk -F: /vscodeVersion/ {gsub(/[" ,]/, "", $2); print $2} PLEASE_REPLACE_THIS/product.json
[2023-09-04 20:45:14.590] awk: fatal: cannot open file `PLEASE_REPLACE_THIS/product.json' for reading (No such file or directory)
[2023-09-04 20:45:14.590] + local vscodium_version=
[2023-09-04 20:45:14.590] + echo 
[2023-09-04 20:45:14.590] + echo 
[2023-09-04 20:45:14.590] + uname -m
[2023-09-04 20:45:14.590] + local arch=x86_64
[2023-09-04 20:45:14.590] + local platform=x64
[2023-09-04 20:45:14.590] + local url=https://cursor.blob.core.windows.net/remote-releases/-/vscode-reh-linux-x64.tar.gz
[2023-09-04 20:45:14.590] + local fallback_url=https://github.com/VSCodium/vscodium/releases/download/./vscodium-reh-linux-x64-..tar.gz
[2023-09-04 20:45:14.590] + curl -fLOJ https://cursor.blob.core.windows.net/remote-releases/-/vscode-reh-linux-x64.tar.gz -w %{filename_effective}
[2023-09-04 20:45:14.590]   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
[2023-09-04 20:45:14.590]                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
[2023-09-04 20:45:15.154] WSL version: 5.15.90.1-microsoft-standard-WSL2 Ubuntu
[2023-09-04 20:45:15.154] Updating VS Code Server to version e83fb25fe9144aa8b230e6f9ee2056e20fb24c70
[2023-09-04 20:45:15.154] Removing previous installation...
[2023-09-04 20:45:15.154] Installing VS Code Server for x64 (e83fb25fe9144aa8b230e6f9ee2056e20fb24c70)
[2023-09-04 20:45:15.154] Downloading:     100%
[2023-09-04 20:45:15.154] Failed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
[2023-09-04 20:45:15.155] curl: (22) The requested URL returned error: 404 The specified blob does not exist.
[2023-09-04 20:45:15.155] + export VSCODE_SERVER_TAR=vscode-reh-linux-x64.tar.gz
[2023-09-04 20:45:15.155] + [ 0 -ne 0 ]
[2023-09-04 20:45:15.155] + export REMOVE_SERVER_TAR_FILE=true
[2023-09-04 20:45:15.155] + set +e
[2023-09-04 20:45:15.155] + unset fix_download
[2023-09-04 20:45:15.155] + VSCODE_REMOTE_BIN=/home/rick/.cursor-server/bin
[2023-09-04 20:45:15.155] + uname -r
[2023-09-04 20:45:15.155] + WSL_VERSION=5.15.90.1-microsoft-standard-WSL2
[2023-09-04 20:45:15.155] + echo WSL version: 5.15.90.1-microsoft-standard-WSL2 Ubuntu
[2023-09-04 20:45:15.155] + dirname /mnt/c/Users/HP ZBook Fury/.cursor/extensions/ms-vscode-remote.remote-wsl-0.80.2/scripts/wslServer.sh
[2023-09-04 20:45:15.155] + /mnt/c/Users/HP ZBook Fury/.cursor/extensions/ms-vscode-remote.remote-wsl-0.80.2/scripts/wslDownload.sh e83fb25fe9144aa8b230e6f9ee2056e20fb24c70 stable /home/rick/.cursor-server/bin
[2023-09-04 20:45:15.155] + [ ! -d /home/rick/.cursor-server/bin/e83fb25fe9144aa8b230e6f9ee2056e20fb24c70 ]
[2023-09-04 20:45:15.155] + set -e
[2023-09-04 20:45:15.155] + [ -f /etc/alpine-release ]
[2023-09-04 20:45:15.155] + [ -d /home/rick/.cursor-server/bin ]
[2023-09-04 20:45:15.155] + echo Updating VS Code Server to version e83fb25fe9144aa8b230e6f9ee2056e20fb24c70
[2023-09-04 20:45:15.155] + echo Removing previous installation...
[2023-09-04 20:45:15.155] + rm -rf /home/rick/.cursor-server/bin/????????????????????????????????????????
[2023-09-04 20:45:15.155] + rm -rf /home/rick/.cursor-server/bin/????????????????????????????????????????-??????????
[2023-09-04 20:45:15.155] + rm -rf /home/rick/.cursor-server/bin/e83fb25fe9144aa8b230e6f9ee2056e20fb24c70-1693860111.tar.gz
[2023-09-04 20:45:15.155] + mkdir -p /home/rick/.cursor-server/bin
[2023-09-04 20:45:15.155] + [ vscode-reh-linux-x64.tar.gz ]
[2023-09-04 20:45:15.155] + [ -f vscode-reh-linux-x64.tar.gz ]
[2023-09-04 20:45:15.155] + [ !  ]
[2023-09-04 20:45:15.155] + date +%s
[2023-09-04 20:45:15.155] + SERVER_TAR_FILE=/home/rick/.cursor-server/bin/e83fb25fe9144aa8b230e6f9ee2056e20fb24c70-1693860314.tar.gz
[2023-09-04 20:45:15.155] + download /home/rick/.cursor-server/bin/e83fb25fe9144aa8b230e6f9ee2056e20fb24c70-1693860314.tar.gz
[2023-09-04 20:45:15.155] + command -v wget
[2023-09-04 20:45:15.155] + [ ! /usr/bin/wget ]
[2023-09-04 20:45:15.155] + local_name=/home/rick/.cursor-server/bin/e83fb25fe9144aa8b230e6f9ee2056e20fb24c70-1693860314.tar.gz
[2023-09-04 20:45:15.155] + [ -f /etc/alpine-release ]
[2023-09-04 20:45:15.155] + uname -m
[2023-09-04 20:45:15.155] + PLATFORM=x64
[2023-09-04 20:45:15.155] + echo Installing VS Code Server for x64 (e83fb25fe9144aa8b230e6f9ee2056e20fb24c70)
[2023-09-04 20:45:15.155] + printf Downloading:     
[2023-09-04 20:45:15.155] + local_url=https://update.code.visualstudio.com/commit:e83fb25fe9144aa8b230e6f9ee2056e20fb24c70/server-linux-x64/stable
[2023-09-04 20:45:15.155] + set +x
[2023-09-04 20:45:15.155] + [ ! -s /home/rick/.cursor-server/bin/e83fb25fe9144aa8b230e6f9ee2056e20fb24c70-1693860314.tar.gz ]
[2023-09-04 20:45:15.155] + echo Failed
[2023-09-04 20:45:15.155] + set +e
[2023-09-04 20:45:15.155] + wget -O /home/rick/.cursor-server/bin/e83fb25fe9144aa8b230e6f9ee2056e20fb24c70-1693860314.tar.gz https://update.code.visualstudio.com/commit:e83fb25fe9144aa8b230e6f9ee2056e20fb24c70/server-linux-x64/stable
[2023-09-04 20:45:15.155] --2023-09-04 21:45:15--  https://update.code.visualstudio.com/commit:e83fb25fe9144aa8b230e6f9ee2056e20fb24c70/server-linux-x64/stable
[2023-09-04 20:45:15.155] Resolving update.code.visualstudio.com (update.code.visualstudio.com)... 13.107.246.64, 13.107.213.64, 2620:1ec:bdf::64, ...
[2023-09-04 20:45:15.155] Connecting to update.code.visualstudio.com (update.code.visualstudio.com)|13.107.246.64|:443... connected.
[2023-09-04 20:45:15.155] HTTP request sent, awaiting response... 404 Not Found
[2023-09-04 20:45:15.155] 2023-09-04 21:45:15 ERROR 404: Not Found.
[2023-09-04 20:45:15.155] 
[2023-09-04 20:45:15.155] + local_rc=8
[2023-09-04 20:45:15.155] + echo ERROR: Failed to download https://update.code.visualstudio.com/commit:e83fb25fe9144aa8b230e6f9ee2056e20fb24c70/server-linux-x64/stable to /home/rick/.cursor-server/bin/e83fb25fe9144aa8b230e6f9ee2056e20fb24c70-1693860314.tar.gz
[2023-09-04 20:45:15.155] ERROR: Failed to download https://update.code.visualstudio.com/commit:e83fb25fe9144aa8b230e6f9ee2056e20fb24c70/server-linux-x64/stable to /home/rick/.cursor-server/bin/e83fb25fe9144aa8b230e6f9ee2056e20fb24c70-1693860314.tar.gz
[2023-09-04 20:45:15.155] + [ 8 -eq 5 ]
[2023-09-04 20:45:15.155] + exit 13
[2023-09-04 20:45:15.155] + RC=13
[2023-09-04 20:45:15.155] + [ 13 -ne 0 ]
[2023-09-04 20:45:15.155] + exit 13
[2023-09-04 20:45:15.155] For help with startup problems, go to https://code.visualstudio.com/docs/remote/troubleshooting#_wsl-tips

Sorry about this! Just to confirm, are you running “Connect to WSL” from Cursor itself? After installing the WSL plugin and hitting ctrl + shift + p?

Yep correct. Just to confirm, as it stands as I’m not connected it doesn’t allow me to open folders/projects from within WSL.

Hey there. Any updates. Really would love to start using this project.

1 Like

Hey, would also love to be able to use WSL with cursor!

Would also like to use WSL2 with cursor and even open folders using cursor .

Guess will have to wait to use this product until then :frowning:

This worked fine just a few hours ago. After installing an update it doesn’t work anymore. Please fix this soon. I cannot work now :slight_smile:

Sorry about this @tiborrr. Temporary workaround here: Can't connect to remote ssh server after recent update - #5 by truell20

1 Like