Can’t connect to remote ssh server after recent update. Seems like it uses wrong link to download remote server blob.
this link is broken - https://cursor.blob.core.windows.net/remote-releases/0.11.0-1b7247269d81d7cd7a1512527e441539f8139f30/vscode-reh-linux-x64.tar.gz
Same as this Remote containers not working
links are broken.
Thanks for flagging, looking into this and fixing. Only released the latest update to a small set of users.
In the meantime, here is the previous update:
Apple Intel - https://download.cursor.sh/builds/230910rfa6kl52l/mac/zip/x64
Apple Arm - https://download.cursor.sh/builds/230910rfa6kl52l/mac/zip/arm64
Windows - https://download.cursor.sh/builds/230910rfa6kl52l/windows/nsis/x64
Linux AppImage - https://download.cursor.sh/builds/230910rfa6kl52l/linux/appImage/x64
Apologies about this
Sadly it doesn’t work still, even with a version rollback. It seems like it can’t find the vscode server version anymore with the vscode version we have. This might not be a you issue, but the fact that microsoft have done some upgrade that indirectly affects us?
This works for me. Hope that the issue will be fixed soon and I’ll be happy to test new features. Thanks for quick reaction and thanks for a great product!
@Viktor Can you send your error logs?
Turns out the blob exists now.
[Trace - 16:47:40.249] Server install command stdout:
Downloading server from 'https://cursor.blob.core.windows.net/remote-releases/0.10.4-c0db898419c36107211de244bdcf5f412c1a4920/vscode-reh-linux-arm64.tar.gz'
Server script: /root/.cursor-server/bin/0.10.4-c0db898419c36107211de244bdcf5f412c1a4920/bin/cursor-server
Server running process:
Error server did not start sucessfully
fab2d9bc4a7586d28a06fa99: start
exitCode==1==
listeningOn====
connectionToken==303710d1-a300-4b4f-9696-397e8c4a8003==
logFile==/root/.cursor-server/.c0db898419c36107211de244bdcf5f412c1a4920.log==
osReleaseId==alpine==
arch==aarch64==
platform==Linux==
tmpDir==/tmp==
fab2d9bc4a7586d28a06fa99: end
[Error - 16:47:40.250] Error resolving authority
Error: Couldn't install vscode server on remote server, install script returned non-zero exit status
at t.installCodeServer (/private/var/folders/1y/19770w5125vchlj8g7f3y__40000gn/T/AppTranslocation/6E43786B-D311-4400-880F-CF38604BD11D/d/Cursor.app/Contents/Resources/app/extensions/open-remote-ssh/dist/main.js:1:794454)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async /private/var/folders/1y/19770w5125vchlj8g7f3y__40000gn/T/AppTranslocation/6E43786B-D311-4400-880F-CF38604BD11D/d/Cursor.app/Contents/Resources/app/extensions/open-remote-ssh/dist/main.js:1:438101
Logfile says theres an issue finding node or something. Here’s what it shows when i invoke the installer manually:
5f0652fd8610:~/.cursor-server/bin/0.10.4-c0db898419c36107211de244bdcf5f412c1a4920/bin# ./cursor-server --start-server --host=127.0.0.1 --port=0 --connection-token-file /root/.cursor-server/.c0db898419c36107211de244bdcf5f412c1a4920.token --telemetry-level off --enable-remote-auto-shutdown --accept-server-license-terms
./cursor-server: line 12: /root/.cursor-server/bin/0.10.4-c0db898419c36107211de244bdcf5f412c1a4920/node: not found
I tried to fix it with symlink
5f0652fd8610:~/.cursor-server/bin/0.10.4-c0db898419c36107211de244bdcf5f412c1a4920/bin# rm /root/.cursor-server/bin/0.10.4-c0db898419c36107211de244bdcf5f412c1a4920/node
5f0652fd8610:~/.cursor-server/bin/0.10.4-c0db898419c36107211de244bdcf5f412c1a4920/bin# ln -s $(which node) /root/.cursor-server/bin/0.10.4-c0db898419c36107211de244bdcf5f412c1a4920/node
That partly solves it, but now i get a bunch of node module errors.
My guess is that it has something to do with my docker container being based on Alpine.
Error: Error loading shared library ld-linux-aarch64.so.1: No such file or directory (needed by /root/.cursor-
[IPC Library: Pty Host] innerError Error: Cannot find module '../build/Debug/pty.node'
The only way I could ask you to reproduce this is to use a docker container that has Alpine and see if yuo can get it to work.
It works with normal vscode, so definitely something on your end!
Remote SSH seems annoying to get working correctly with Alpine. However, dev containers works fine in vscode, but the error we get from running dev container in cursor:
[958 ms] WARNING: opening from cache https://dl-cdn.alpinelinux.org/alpine/v3.18/main: No such file or directory
WARNING: opening from cache https://dl-cdn.alpinelinux.org/alpine/v3.18/community: No such file or directory
[1118 ms] Failed to download VS Code Server (https://update.code.visualstudio.com/commit:a00e135b754f23d4fa63afd4fc7a5bb28a8d0e10/server-alpine-arm64/stable): HTTP 404 - Not Found
[1118 ms] Retrying to download VS Code Server.
[1708 ms] Error: Server returned 404
at g (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:844:30682)
at e.DownloadService.download (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:845:1567)
Rolling back the version dont seem to help with dev containers. Trying to attach to running containers.
Any news? The support seems to be dead.
It is fixed in new version, so just update your app.
I am still getting this error when I try to connect to a remote linux server:
> Waiting for /home/patrick/.cursor-server/bin/09def9ff1360998d7c7498cf29e93ac16a4
> 48c020/vscode-scp-done.flag and vscode-server.tar.gz to exist
[13:49:40.870] Got request to download on client for {"platform":"linux","arch":"x64","destFolder":"/home/patrick/.cursor-server/bin/09def9ff1360998d7c7498cf29e93ac16a48c020"}
[13:49:40.870] Downloading VS Code server locally...
[13:49:40.876] >
>
[13:49:41.751] Resolver error: Error: Server returned 404
at g (vscode-file://vscode-app/c:/Users/0101119/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:844:30682)
at e.DownloadService.download (vscode-file://vscode-app/c:/Users/0101119/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:845:1567)
[13:49:41.759] ------
I’ve tested in Windows and MacOs, got the same error.
Using VScode I can connect.
Could you paste your full logs?
Here are the full logs.
[08:27:35.729] Log Level: 2
[08:27:35.785] VS Code version: 0.11.6
[08:27:35.785] Remote-SSH version: remote-ssh@0.102.0
[08:27:35.786] win32 x64
[08:27:35.810] SSH Resolver called for "ssh-remote+mldev.tce.pa", attempt 1
[08:27:35.810] "remote.SSH.useLocalServer": false
[08:27:35.811] "remote.SSH.showLoginTerminal": false
[08:27:35.811] "remote.SSH.remotePlatform": {"coder-vscode--patrick--python310--main":"linux","coder-vscode--patrick--python-310-v9":"linux"}
[08:27:35.811] "remote.SSH.path": undefined
[08:27:35.811] "remote.SSH.configFile": undefined
[08:27:35.811] "remote.SSH.useFlock": true
[08:27:35.811] "remote.SSH.lockfilesInTmp": false
[08:27:35.811] "remote.SSH.localServerDownload": auto
[08:27:35.811] "remote.SSH.remoteServerListenOnSocket": false
[08:27:35.811] "remote.SSH.showLoginTerminal": false
[08:27:35.811] "remote.SSH.defaultExtensions": []
[08:27:35.812] "remote.SSH.loglevel": 2
[08:27:35.812] "remote.SSH.enableDynamicForwarding": true
[08:27:35.812] "remote.SSH.enableRemoteCommand": false
[08:27:35.812] "remote.SSH.serverPickPortsFromRange": {}
[08:27:35.812] "remote.SSH.serverInstallPath": {}
[08:27:35.820] SSH Resolver called for host: mldev.tce.pa
[08:27:35.820] Setting up SSH remote "mldev.tce.pa"
[08:27:35.823] Using commit id "09def9ff1360998d7c7498cf29e93ac16a48c020" and quality "stable" for server
[08:27:35.826] Install and start server if needed
[08:27:42.105] Checking ssh with "C:\Program Files (x86)\Common Files\Oracle\Java\javapath\ssh.exe -V"
[08:27:42.109] Got error from ssh: spawn C:\Program Files (x86)\Common Files\Oracle\Java\javapath\ssh.exe ENOENT
[08:27:42.109] Checking ssh with "C:\WINDOWS\system32\ssh.exe -V"
[08:27:42.112] Got error from ssh: spawn C:\WINDOWS\system32\ssh.exe ENOENT
[08:27:42.112] Checking ssh with "C:\WINDOWS\ssh.exe -V"
[08:27:42.115] Got error from ssh: spawn C:\WINDOWS\ssh.exe ENOENT
[08:27:42.115] Checking ssh with "C:\WINDOWS\System32\Wbem\ssh.exe -V"
[08:27:42.118] Got error from ssh: spawn C:\WINDOWS\System32\Wbem\ssh.exe ENOENT
[08:27:42.118] Checking ssh with "C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe -V"
[08:27:42.122] Got error from ssh: spawn C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[08:27:42.122] Checking ssh with "C:\WINDOWS\System32\OpenSSH\ssh.exe -V"
[08:27:42.164] > OpenSSH_for_Windows_8.6p1, LibreSSL 3.4.3
[08:27:42.168] Running script with connection command: "C:\WINDOWS\System32\OpenSSH\ssh.exe" -T -D 52166 "mldev.tce.pa" bash
[08:27:42.170] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[08:27:44.556] > 422b5f2d2148: running
> e]0;C:\WINDOWS\System32\cmd.exea
[08:27:44.556] Got some output, clearing connection timeout
[08:27:44.662] > Acquiring lock on /home/patrick/.cursor-server/bin/09def9ff1360998d7c7498cf29e93ac16a48c020/vscode-remote-lock.patrick.09def9ff1360998d7c7498cf29e93ac16a48c020
[08:27:44.707] > Installing to /home/patrick/.cursor-server/bin/09def9ff1360998d7c7498cf29e93ac16a48c020...
> 422b5f2d2148%%1%%
[08:27:44.723] > Downloading with wget
[08:27:45.753] > wget download failed
> https://update.code.visualstudio.com/commit:09def9ff1360998d7c7498cf29e93ac16a48c020/server-linux-x64/stable: 2023-09-28 08:27:45 ERROR 404: Not Found.
> printenv:
> SHELL=/usr/bin/zsh
> PWD=/home/patrick/.cursor-server/bin/09def9ff1360998d7c7498cf29e93ac16a48c020
> LOGNAME=patrick
> XDG_SESSION_TYPE=tty
> MOTD_SHOWN=pam
> HOME=/home/patrick
> LANG=pt_BR
> VSCODE_AGENT_FOLDER=/home/patrick/.cursor-server
> SSH_CONNECTION=192.168.250.13 52181 192.168.10.250 22
> XDG_SESSION_CLASS=user
> USER=patrick
> SHLVL=0
> XDG_SESSION_ID=235023
> XDG_RUNTIME_DIR=/run/user/1001
> SSH_CLIENT=192.168.250.13 52181 22
> PATH=/home/patrick/.cargo/bin:/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/1001/bus
> OLDPWD=/home/patrick
> _=/usr/bin/printenv
> Trigger local server download
> 422b5f2d2148:trigger_server_download
> platform==linux==
> vscodeArch==x64==
> destFolder==/home/patrick/.cursor-server/bin/==
> destFolder2==09def9ff1360998d7c7498cf29e93ac16a48c020==
> 422b5f2d2148:trigger_server_download_end
> Waiting for client to transfer server archive...
> Waiting for /home/patrick/.cursor-server/bin/09def9ff1360998d7c7498cf29e93ac16a4
> 48c020/vscode-scp-done.flag and vscode-server.tar.gz to exist
>
[08:27:45.754] Got request to download on client for {"platform":"linux","arch":"x64","destFolder":"/home/patrick/.cursor-server/bin/09def9ff1360998d7c7498cf29e93ac16a48c020"}
[08:27:45.755] Downloading VS Code server locally...
[08:27:46.236] Resolver error: Error: Server returned 404
at g (vscode-file://vscode-app/c:/Users/0101119/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:844:30682)
at e.DownloadService.download (vscode-file://vscode-app/c:/Users/0101119/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:845:1567)
[08:27:46.241] ------
Here is try to get from this URL: https://update.code.visualstudio.com/commit:09def9ff1360998d7c7498cf29e93ac16a48c020/server-linux-x64/stable
That does not exist.
How can I install the server manually?
Should I use wget or another tool?
Here are the logs:
[08:27:35.729] Log Level: 2
[08:27:35.785] VS Code version: 0.11.6
[08:27:35.785] Remote-SSH version: remote-ssh@0.102.0
[08:27:35.786] win32 x64
[08:27:35.810] SSH Resolver called for "ssh-remote+mldev.tce.pa", attempt 1
[08:27:35.810] "remote.SSH.useLocalServer": false
[08:27:35.811] "remote.SSH.showLoginTerminal": false
[08:27:35.811] "remote.SSH.remotePlatform": {"coder-vscode--patrick--python310--main":"linux","coder-vscode--patrick--python-310-v9":"linux"}
[08:27:35.811] "remote.SSH.path": undefined
[08:27:35.811] "remote.SSH.configFile": undefined
[08:27:35.811] "remote.SSH.useFlock": true
[08:27:35.811] "remote.SSH.lockfilesInTmp": false
[08:27:35.811] "remote.SSH.localServerDownload": auto
[08:27:35.811] "remote.SSH.remoteServerListenOnSocket": false
[08:27:35.811] "remote.SSH.showLoginTerminal": false
[08:27:35.811] "remote.SSH.defaultExtensions": []
[08:27:35.812] "remote.SSH.loglevel": 2
[08:27:35.812] "remote.SSH.enableDynamicForwarding": true
[08:27:35.812] "remote.SSH.enableRemoteCommand": false
[08:27:35.812] "remote.SSH.serverPickPortsFromRange": {}
[08:27:35.812] "remote.SSH.serverInstallPath": {}
[08:27:35.820] SSH Resolver called for host: mldev.tce.pa
[08:27:35.820] Setting up SSH remote "mldev.tce.pa"
[08:27:35.823] Using commit id "09def9ff1360998d7c7498cf29e93ac16a48c020" and quality "stable" for server
[08:27:35.826] Install and start server if needed
[08:27:42.105] Checking ssh with "C:\Program Files (x86)\Common Files\Oracle\Java\javapath\ssh.exe -V"
[08:27:42.109] Got error from ssh: spawn C:\Program Files (x86)\Common Files\Oracle\Java\javapath\ssh.exe ENOENT
[08:27:42.109] Checking ssh with "C:\WINDOWS\system32\ssh.exe -V"
[08:27:42.112] Got error from ssh: spawn C:\WINDOWS\system32\ssh.exe ENOENT
[08:27:42.112] Checking ssh with "C:\WINDOWS\ssh.exe -V"
[08:27:42.115] Got error from ssh: spawn C:\WINDOWS\ssh.exe ENOENT
[08:27:42.115] Checking ssh with "C:\WINDOWS\System32\Wbem\ssh.exe -V"
[08:27:42.118] Got error from ssh: spawn C:\WINDOWS\System32\Wbem\ssh.exe ENOENT
[08:27:42.118] Checking ssh with "C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe -V"
[08:27:42.122] Got error from ssh: spawn C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[08:27:42.122] Checking ssh with "C:\WINDOWS\System32\OpenSSH\ssh.exe -V"
[08:27:42.164] > OpenSSH_for_Windows_8.6p1, LibreSSL 3.4.3
[08:27:42.168] Running script with connection command: "C:\WINDOWS\System32\OpenSSH\ssh.exe" -T -D 52166 "mldev.tce.pa" bash
[08:27:42.170] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[08:27:44.556] > 422b5f2d2148: running
> e]0;C:\WINDOWS\System32\cmd.exea
[08:27:44.556] Got some output, clearing connection timeout
[08:27:44.662] > Acquiring lock on /home/patrick/.cursor-server/bin/09def9ff1360998d7c7498cf29e93ac16a48c020/vscode-remote-lock.patrick.09def9ff1360998d7c7498cf29e93ac16a48c020
[08:27:44.707] > Installing to /home/patrick/.cursor-server/bin/09def9ff1360998d7c7498cf29e93ac16a48c020...
> 422b5f2d2148%%1%%
[08:27:44.723] > Downloading with wget
[08:27:45.753] > wget download failed
> https://update.code.visualstudio.com/commit:09def9ff1360998d7c7498cf29e93ac16a48c020/server-linux-x64/stable: 2023-09-28 08:27:45 ERROR 404: Not Found.
> printenv:
> SHELL=/usr/bin/zsh
> PWD=/home/patrick/.cursor-server/bin/09def9ff1360998d7c7498cf29e93ac16a48c020
> LOGNAME=patrick
> XDG_SESSION_TYPE=tty
> MOTD_SHOWN=pam
> HOME=/home/patrick
> LANG=pt_BR
> VSCODE_AGENT_FOLDER=/home/patrick/.cursor-server
> SSH_CONNECTION=192.168.250.13 52181 192.168.10.250 22
> XDG_SESSION_CLASS=user
> USER=patrick
> SHLVL=0
> XDG_SESSION_ID=235023
> XDG_RUNTIME_DIR=/run/user/1001
> SSH_CLIENT=192.168.250.13 52181 22
> PATH=/home/patrick/.cargo/bin:/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/1001/bus
> OLDPWD=/home/patrick
> _=/usr/bin/printenv
> Trigger local server download
> 422b5f2d2148:trigger_server_download
> platform==linux==
> vscodeArch==x64==
> destFolder==/home/patrick/.cursor-server/bin/==
> destFolder2==09def9ff1360998d7c7498cf29e93ac16a48c020==
> 422b5f2d2148:trigger_server_download_end
> Waiting for client to transfer server archive...
> Waiting for /home/patrick/.cursor-server/bin/09def9ff1360998d7c7498cf29e93ac16a4
> 48c020/vscode-scp-done.flag and vscode-server.tar.gz to exist
>
[08:27:45.754] Got request to download on client for {"platform":"linux","arch":"x64","destFolder":"/home/patrick/.cursor-server/bin/09def9ff1360998d7c7498cf29e93ac16a48c020"}
[08:27:45.755] Downloading VS Code server locally...
[08:27:46.236] Resolver error: Error: Server returned 404
at g (vscode-file://vscode-app/c:/Users/0101119/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:844:30682)
at e.DownloadService.download (vscode-file://vscode-app/c:/Users/0101119/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:845:1567)
[08:27:46.241] ------
@truell20
I’ve tried to share the logs a couple of times here, but I keep getting blocked by some bot moderation.
I’ve posted on Github issue: Can’t connect to remote ssh server after recent update · Issue #937 · getcursor/cursor · GitHub
Hi there. I get similar issues. I posted my logs as well on the same thread in GitHub