Getting a 404 error when trying to connect to a remote

[15:31:22.838] Terminating local server
[15:31:22.840] Resolver error: Error: Server returned 404
at l (vscode-file://vscode-app/tmp/.mount_cursorOP2w3O/resources/app/out/vs/workbench/workbench.desktop.main.js:928:29606)
at S.download (vscode-file://vscode-app/tmp/.mount_cursorOP2w3O/resources/app/out/vs/workbench/workbench.desktop.main.js:929:1753)
[15:31:22.859] ------

Are you trying to connect to remote SSH? What OS are you trying to connect to? Are you trying to connect to an armhf machine?

I have tested against two remotes, both are ubuntu 22, local is Mint 21

I have connected to both systems in the past, the issue only started occurring Yesterday

Could you screenshot the error page you’re seeing? Could you run dpkg --print-architecture on one of the remotes?

$ dpkg --print-architecture
amd64

I tested from my win10 system, and it is working fine from there

Could you screenshot the error page you’re seeing? Having a hard time reproducing on my end. Wondering if this is a Mint specific issue.

I think it could just be some form of corrupted files or similar, but I will copy the entire ssh logs

[09:25:27.343] Log Level: 2
[09:25:27.353] SSH Resolver called for “ssh-remote+jason-web”, attempt 1
[09:25:27.353] “remote.SSH.useLocalServer”: true
[09:25:27.354] “remote.SSH.useExecServer”: false
[09:25:27.354] “remote.SSH.path”: undefined
[09:25:27.354] “remote.SSH.configFile”: /home/jason/cursorconfig
[09:25:27.355] “remote.SSH.useFlock”: true
[09:25:27.355] “remote.SSH.lockfilesInTmp”: false
[09:25:27.355] “remote.SSH.localServerDownload”: auto
[09:25:27.356] “remote.SSH.remoteServerListenOnSocket”: false
[09:25:27.356] “remote.SSH.showLoginTerminal”: false
[09:25:27.356] “remote.SSH.defaultExtensions”:
[09:25:27.356] “remote.SSH.loglevel”: 2
[09:25:27.356] “remote.SSH.enableDynamicForwarding”: true
[09:25:27.356] “remote.SSH.enableRemoteCommand”: false
[09:25:27.356] “remote.SSH.serverPickPortsFromRange”: {}
[09:25:27.356] “remote.SSH.serverInstallPath”: {}
[09:25:27.368] VS Code version: 0.28.0
[09:25:27.368] Remote-SSH version: remote-ssh@0.108.0
[09:25:27.368] linux x64
[09:25:30.783] SSH Resolver called for host: jason-web
[09:25:30.783] Setting up SSH remote “jason-web”
[09:25:30.787] Acquiring local install lock: /tmp/vscode-remote-ssh-99c22197-install.lock
[09:25:30.789] Looking for existing server data file at /home/jason/.config/Cursor/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-99c22197-5719f9d13ceeb311b54ffe441ad66bbcff5297a0-0.108.0-tr/data.json
[09:25:30.789] Using commit id “5719f9d13ceeb311b54ffe441ad66bbcff5297a0” and quality “stable” for server
[09:25:30.792] Install and start server if needed
[09:25:30.839] PATH: /tmp/.mount_cursorVik8Fi:/tmp/.mount_cursorVik8Fi/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
[09:25:30.839] Checking ssh with “ssh -V”
[09:25:30.850] > OpenSSH_8.9p1 Ubuntu-3ubuntu0.6, OpenSSL 3.0.2 15 Mar 2022

[09:25:30.898] Using SSH config file “/home/jason/cursorconfig”
[09:25:30.899] askpass server listening on /run/user/1000/vscode-ssh-askpass-70a7481f1d7c692b07cf34c9b7c3663f2af9e15f.sock
[09:25:30.899] Spawning local server with {“serverId”:1,“ipcHandlePath”:“/run/user/1000/vscode-ssh-askpass-ea5ef4493d3af16daa7dcd94b693c50bda8ad58c.sock”,“sshCommand”:“ssh”,“sshArgs”:[“-v”,“-T”,“-D”,“35159”,“-o”,“ConnectTimeout=15”,“-F”,“/home/jason/cursorconfig”,“jason-web”],“serverDataFolderName”:“.cursor-server”,“dataFilePath”:“/home/jason/.config/Cursor/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-99c22197-5719f9d13ceeb311b54ffe441ad66bbcff5297a0-0.108.0-tr/data.json”}
[09:25:30.899] Local server env: {“SSH_AUTH_SOCK”:“/run/user/1000/keyring/ssh”,“SHELL”:“/bin/bash”,“DISPLAY”:“:0”,“ELECTRON_RUN_AS_NODE”:“1”,“SSH_ASKPASS”:“/home/jason/.cursor/extensions/ms-vscode-remote.remote-ssh-0.108.0/out/local-server/askpass.sh”,“VSCODE_SSH_ASKPASS_NODE”:“/tmp/.mount_cursorVik8Fi/cursor”,“VSCODE_SSH_ASKPASS_EXTRA_ARGS”:“”,“VSCODE_SSH_ASKPASS_MAIN”:“/home/jason/.cursor/extensions/ms-vscode-remote.remote-ssh-0.108.0/out/askpass-main.js”,“VSCODE_SSH_ASKPASS_HANDLE”:“/run/user/1000/vscode-ssh-askpass-70a7481f1d7c692b07cf34c9b7c3663f2af9e15f.sock”}
[09:25:30.905] Spawned 64817
[09:25:31.087] > local-server-1> Running ssh connection command: ssh -v -T -D 35159 -o ConnectTimeout=15 -F /home/jason/cursorconfig jason-web
[09:25:31.091] > local-server-1> Spawned ssh, pid=64825
[09:25:31.096] stderr> OpenSSH_8.9p1 Ubuntu-3ubuntu0.6, OpenSSL 3.0.2 15 Mar 2022
[09:25:31.143] stderr> OpenSSH_8.9p1 Ubuntu-3ubuntu0.6, OpenSSL 3.0.2 15 Mar 2022
[09:25:31.291] stderr> debug1: Server host key: ssh-ed25519 SHA256:hIcI5iYEbMwLrvtHjE+zWnsRm98pJhZjqypNK6TB5Ik
[09:25:31.424] stderr> Authenticated to jdsnet.hopto,org ([100.14.162.71]:22) using “publickey”.
[09:25:32.766] stderr> debug1: Server host key: ssh-ed25519 SHA256:y8dZh5Xtu6YmfoDHYoZ+uoGfYqygVfuLOQJc4dHd0xo
[09:25:32.868] stderr> Authenticated to jason-web (via proxy) using “publickey”.

[09:25:33.754] > ready: a943d3f87a95
[09:25:33.768] > Linux 5.4.0-171-generic #189-Ubuntu SMP Fri Jan 5 14:23:02 UTC 2024
[09:25:33.768] Platform: linux
[09:25:33.785] > /bin/bash
[09:25:33.785] Shell: bash
[09:25:33.786] Creating bash subshell inside “bash”
[09:25:33.801] > bash version: 5.0.17(1)-release
[09:25:33.898] > a943d3f87a95: running
[09:25:33.979] > Acquiring lock on /home/jason/.cursor-server/bin/5719f9d13ceeb311b54ffe441ad66bbcff5297a0/vscode-remote-lock.jason.5719f9d13ceeb311b54ffe441ad66bbcff5297a0
[09:25:33.996] > Installing to /home/jason/.cursor-server/bin/5719f9d13ceeb311b54ffe441ad66bbcff5297a0…
[09:25:34.004] > a943d3f87a95%%1%%
[09:25:34.015] > Downloading with wget
[09:25:34.378] > wget download failed
https//update.code.visualstudio.com/commit:5719f9d13ceeb311b54ffe441ad66bbcff5297a0/server-linux-x64/stable: 2024-02-26 09:25:34 ERROR 404: Not Found.

printenv:
SHELL=/bin/bash
PWD=/home/jason/.cursor-server/bin/5719f9d13ceeb311b54ffe441ad66bbcff5297a0
LOGNAME=jason
XDG_SESSION_TYPE=tty
MOTD_SHOWN=pam
HOME=/home/jason
LANG=en_US.UTF-8
VSCODE_AGENT_FOLDER=/home/jason/.cursor-server
SSH_CONNECTION=192.168.5.110 39946 192.168.5.150 22
XDG_SESSION_CLASS=user
USER=jason
SHLVL=1
XDG_SESSION_ID=1082
XDG_RUNTIME_DIR=/run/user/1000
SSH_CLIENT=192.168.5.110 39946 22
XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
OLDPWD=/home/jason
_=/usr/bin/printenv
Trigger local server download
a943d3f87a95:trigger_server_download
artifact==server-linux-x64==
destFolder==/home/jason/.cursor-server/bin/==
destFolder2==/5719f9d13ceeb311b54ffe441ad66bbcff5297a0/vscode-server.tar.gz==
a943d3f87a95:trigger_server_download_end
Waiting for client to transfer server archive…
Waiting for /home/jason/.cursor-server/bin/5719f9d13ceeb311b54ffe441ad66bbcff5297a0/vscode-server.tar.gz.done and vscode-server.tar.gz to exist

[09:25:34.379] Got request to download on client for {“artifact”:“server-linux-x64”,“destPath”:“/home/jason/.cursor-server/bin//5719f9d13ceeb311b54ffe441ad66bbcff5297a0/vscode-server.tar.gz”}
[09:25:34.380] Downloading VS Code server locally…
[09:25:34.541] Terminating local server
[09:25:34.550] Resolver error: Error: Failed to download VS Code Server (Server returned 404)
at g.Create (/home/jason/.cursor/extensions/ms-vscode-remote.remote-ssh-0.108.0/out/extension.js:2:460245)
at /home/jason/.cursor/extensions/ms-vscode-remote.remote-ssh-0.108.0/out/extension.js:2:510845
at async t.downloadAndCopyToHost (/home/jason/.cursor/extensions/ms-vscode-remote.remote-ssh-0.108.0/out/extension.js:2:510345)
at async /home/jason/.cursor/extensions/ms-vscode-remote.remote-ssh-0.108.0/out/extension.js:2:518244
at async e (/home/jason/.cursor/extensions/ms-vscode-remote.remote-ssh-0.108.0/out/extension.js:2:518359)
at async /home/jason/.cursor/extensions/ms-vscode-remote.remote-ssh-0.108.0/out/extension.js:2:540605
at async t.withShowDetailsEvent (/home/jason/.cursor/extensions/ms-vscode-remote.remote-ssh-0.108.0/out/extension.js:2:544264)
at async /home/jason/.cursor/extensions/ms-vscode-remote.remote-ssh-0.108.0/out/extension.js:2:515401
at async T (/home/jason/.cursor/extensions/ms-vscode-remote.remote-ssh-0.108.0/out/extension.js:2:513452)
at async t.resolveWithLocalServer (/home/jason/.cursor/extensions/ms-vscode-remote.remote-ssh-0.108.0/out/extension.js:2:514941)
at async k (/home/jason/.cursor/extensions/ms-vscode-remote.remote-ssh-0.108.0/out/extension.js:2:537822)
at async t.resolve (/home/jason/.cursor/extensions/ms-vscode-remote.remote-ssh-0.108.0/out/extension.js:2:541635)
at async /home/jason/.cursor/extensions/ms-vscode-remote.remote-ssh-0.108.0/out/extension.js:2:807794
[09:25:34.625] ------

[09:25:34.628] Local server exit: 15

I had to edit a few lines due to hyperlink limits

It would not allow me to paste in the logs, but due to the fact that the issue is isolated to my laptop, I am fairly sure at this point it is a corrupted file, where does cursor store it’s application files, I am going to try deleting that and reinstalling

I tried deleting .config/Cursor, that did not fix the issue

I deleted ~/.cursor and that fixed the issue

The remote ssh plugin for microsoft vscode is not compatible with cursor. So uninstall the remote ssh plugin and install the open ssh plugin recommended by cursor. Removing . /cursor folder is equivalent to deleting all the plugins.