Cursor Remote SSH not working; invalid VScode Server Download Link

Hello, I am trying to use Cursor with remote SSH but when I attempt to initialize the connection on a remote linux machine for the first time using my intel mac, I get this error

> Missing GLIBC >= 2.28!
> Found version ldd (Ubuntu GLIBC 2.23-0ubuntu11) 2.23
> 48102762f54d$$1$$
> Acquiring lock on /future/u/fkhoubsi/.cache/.cursor-server/bin/0e81b24fc275f346a0c44466c7c3cb7152835340/vscode-remote-lock.fkhoubsi.0e81b24fc275f346a0c44466c7c3cb7152835340
> Installing to /future/u/fkhoubsi/.cache/.cursor-server/bin/0e81b24fc275f346a0c44466c7c3cb7152835340...
[15:10:01.388] > 48102762f54d%%1%%
> Downloading with wget
[15:10:01.627] > wget download failed
> https://update.code.visualstudio.com/commit:0e81b24fc275f346a0c44466c7c3cb7152835340/server-linux-x64/stable: 2024-03-31 12:10:01 ERROR 404: Not Found.
> printenv:
[15:10:01.636] >     NNTPSERVER=nntp.stanford.edu
>     XDG_SESSION_ID=54370
>     SHELL=/bin/bash
>     SSH_CLIENT=171.64.75.72 10162 22
>     USER=fkhoubsi
>     VSCODE_AGENT_FOLDER=/future/u/fkhoubsi/.cache/.cursor-server
>     PATH=/future/u/fkhoubsi/miniconda3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/afs/cs/software/sbin:/afs/cs/software/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
>     MAIL=/var/mail/fkhoubsi
>     BACON_SOCKET_DIR=/tmp
>     PWD=/future/u/fkhoubsi/.cache/.cursor-server/bin/0e81b24fc275f346a0c44466c7c3cb7152835340
>     LANG=en_US.UTF-8
>     KRB5CCNAME=FILE:/tmp/krb5cc_23578_gTvINQ
>     HOME=/future/u/fkhoubsi/.cache
>     SHLVL=2
>     LANGUAGE=en_US:
>     LOGNAME=fkhoubsi
>     SSH_CONNECTION=171.64.75.72 10162 172.24.75.212 22
>     XDG_RUNTIME_DIR=/run/user/23578
>     _=/usr/bin/printenv
>     OLDPWD=/afs/cs.stanford.edu/u/fkhoubsi
> Trigger local server download
> 48102762f54d:trigger_server_download
[15:10:01.687] > artifact==server-linux-x64==
> destFolder==/future/u/fkhoubsi/.cache/.cursor-server/bin/==
> destFolder2==/0e81b24fc275f346a0c44466c7c3cb7152835340/vscode-server.tar.gz==
> 48102762f54d:trigger_server_download_end
> Waiting for client to transfer server archive...
> Waiting for /future/u/fkhoubsi/.cache/.cursor-server/bin/0e81b24fc275f346a0c44466c7c3cb7152835340/vscode-server.tar.gz.done and vscode-server.tar.gz to exist
>  
[15:10:01.687] Got request to download on client for {"artifact":"server-linux-x64","destPath":"/future/u/fkhoubsi/.cache/.cursor-server/bin//0e81b24fc275f346a0c44466c7c3cb7152835340/vscode-server.tar.gz"}
[15:10:01.688] Downloading VS Code server locally...
[15:10:01.983] Terminating local server
[15:10:01.986] Resolver error: Error: Failed to download VS Code Server (Server returned 404)
	at g.Create (/Users/faraz/.cursor/extensions/ms-vscode-remote.remote-ssh-0.108.0/out/extension.js:2:460245)
	at /Users/faraz/.cursor/extensions/ms-vscode-remote.remote-ssh-0.108.0/out/extension.js:2:510845
	at async t.downloadAndCopyToHost (/Users/faraz/.cursor/extensions/ms-vscode-remote.remote-ssh-0.108.0/out/extension.js:2:510345)
	at async /Users/faraz/.cursor/extensions/ms-vscode-remote.remote-ssh-0.108.0/out/extension.js:2:518244
	at async e (/Users/faraz/.cursor/extensions/ms-vscode-remote.remote-ssh-0.108.0/out/extension.js:2:518359)
	at async /Users/faraz/.cursor/extensions/ms-vscode-remote.remote-ssh-0.108.0/out/extension.js:2:540605
	at async t.withShowDetailsEvent (/Users/faraz/.cursor/extensions/ms-vscode-remote.remote-ssh-0.108.0/out/extension.js:2:544264)
	at async /Users/faraz/.cursor/extensions/ms-vscode-remote.remote-ssh-0.108.0/out/extension.js:2:515401
	at async T (/Users/faraz/.cursor/extensions/ms-vscode-remote.remote-ssh-0.108.0/out/extension.js:2:513452)
	at async t.resolveWithLocalServer (/Users/faraz/.cursor/extensions/ms-vscode-remote.remote-ssh-0.108.0/out/extension.js:2:514941)
	at async k (/Users/faraz/.cursor/extensions/ms-vscode-remote.remote-ssh-0.108.0/out/extension.js:2:537822)
	at async t.resolve (/Users/faraz/.cursor/extensions/ms-vscode-remote.remote-ssh-0.108.0/out/extension.js:2:541635)
	at async /Users/faraz/.cursor/extensions/ms-vscode-remote.remote-ssh-0.108.0/out/extension.js:2:807794
[15:10:01.992] ------




[15:10:01.993] Local server exit: 15
[15:10:02.369] Opening exec server for ssh-remote+future8
[15:10:02.380] Initizing new exec server for ssh-remote+future8
[15:10:02.443] Acquiring local install lock: /var/folders/q6/w7ly2gbn65q1h8rrlf6kw_fc0000gp/T/vscode-remote-ssh-04b813ea-install.lock
[15:10:02.449] Looking for existing server data file at /Users/faraz/Library/Application Support/Cursor/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-04b813ea-0e81b24fc275f346a0c44466c7c3cb7152835340-0.108.0-es/data.json
[15:10:02.449] Using commit id "0e81b24fc275f346a0c44466c7c3cb7152835340" and quality "stable" for server
[15:10:02.451] Install and start server if needed
[15:10:02.456] askpass server listening on /var/folders/q6/w7ly2gbn65q1h8rrlf6kw_fc0000gp/T/vscode-ssh-askpass-96b1d3e11de891b7b6f5a368f0e8435a6ef8d765.sock
[15:10:02.457] Spawning local server with {"serverId":2,"ipcHandlePath":"/var/folders/q6/w7ly2gbn65q1h8rrlf6kw_fc0000gp/T/vscode-ssh-askpass-5ac59ef4248807f6588adcab35fbd67df33ff998.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","58842","-o","ConnectTimeout=60","future8"],"serverDataFolderName":".cursor-server","dataFilePath":"/Users/faraz/Library/Application Support/Cursor/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-04b813ea-0e81b24fc275f346a0c44466c7c3cb7152835340-0.108.0-es/data.json"}
[15:10:02.457] Local server env: {"SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.CQvhOUNPi6/Listeners","SHELL":"/bin/zsh","DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/faraz/.cursor/extensions/ms-vscode-remote.remote-ssh-0.108.0/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/Applications/Cursor.app/Contents/Frameworks/Cursor Helper (Plugin).app/Contents/MacOS/Cursor Helper (Plugin)","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"","VSCODE_SSH_ASKPASS_MAIN":"/Users/faraz/.cursor/extensions/ms-vscode-remote.remote-ssh-0.108.0/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/q6/w7ly2gbn65q1h8rrlf6kw_fc0000gp/T/vscode-ssh-askpass-96b1d3e11de891b7b6f5a368f0e8435a6ef8d765.sock"}
[15:10:02.459] Spawned 40517
[15:10:02.724] > local-server-2> Running ssh connection command: ssh -v -T -D 58842 -o ConnectTimeout=60 future8
[15:10:02.725] > local-server-2> Spawned ssh, pid=40520
[15:10:02.738] stderr> OpenSSH_9.4p1, LibreSSL 3.3.6
[15:10:02.762] stderr> OpenSSH_9.4p1, LibreSSL 3.3.6
[15:10:03.085] stderr> debug1: Server host key: ecdsa-sha2-nistp384 SHA256:z+oEL88LDNoKDluk3bq8EC/vlF1x+gDorNgj7GGf4iM

I think the error originates from


[15:10:01.627] > wget download failed
> https://update.code.visualstudio.com/commit:0e81b24fc275f346a0c44466c7c3cb7152835340/server-linux-x64/stable: 2024-03-31 12:10:01 ERROR 404: Not Found.

After checking, the link https://update.code.visualstudio.com/commit:0e81b24fc275f346a0c44466c7c3cb7152835340/server-linux-x64/stable indeed does not exist.

How can I fix this? How can I change the commit id commit:0e81b24fc275f346a0c44466c7c3cb7152835340 used in the download link for Cursor to download a valid existing file?

I also tried to copy my .vscode-server on the remote machine to .cursor-server but it did not work, it still looks for a server with specific commit id commit:0e81b24fc275f346a0c44466c7c3cb7152835340

1 Like

I am getting this same error on arm macOS on latest cursor version 0.37.1

Have been unable to use Cursor so far

Just go to extension implementation and modify the $arch detection so you can download x64 version of vscode server for ARM64 platform.

That will run on Rosetta but it will still work.

Instructions:

  1. Go to your extensions directory, for vscode it’s .vscode/extensions/ms-vscode.remote…
  2. Open /Users//.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0
  3. Go to out/extension.js and replace $arch with $arch=if (($p -eq ‘AMD64’) -or ($p -eq ‘IA64’) -or ($p -eq ‘ARM64’)) { ‘x64’ } else { ‘ia32’ }
  4. ❯ grep -o "arch=." extension.js | sed 's/\n.$//’
❯ grep -o "arch=.*" extension.js | sed 's/\\n.*$//'

arch=if (($p -eq 'AMD64') -or ($p -eq 'IA64') -or ($p -eq 'ARM64')) { 'x64' } else { 'ia32' }
1 Like

The “Remote - SSH” plugin has already been working in normal VS Code. Would a similar modification work in Cursor’s files?