getcursor / cursor

The AI Code Editor
https://cursor.com
25.81k stars 1.6k forks source link

"Error: Failed to download VS Code Server (Server returned 404)" when connecting to remote Windows host #1506

Open mostlydev opened 5 months ago

mostlydev commented 5 months ago

As described in the title. This error comes up when attempting to connect from Cursor on MacOS to a remote Windows 11 host.

[17:32:33.912] > Windows PowerShell
> Copyright (C) Microsoft Corporation. All rights reserved.
> 
> Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows
[17:32:34.537] stderr> Loading personal and system profiles took 518ms.
[17:32:34.622] > ? ? ? mostlydev@WINDEV ? ? ? 
[17:32:34.636] > echo 'ready: 15f75be90e07'
[17:32:34.644] > ready: 15f75be90e07
[17:32:34.723] > ? ? ? mostlydev@WINDEV ? ? ? uname -rsv
[17:32:34.785] Platform: windows
[17:32:34.785] Remote command length: 6492/8192 characters
[17:32:34.858] > ? ? ? mostlydev@WINDEV ? ? ? ERROR ? powershell -NoProfile
[17:32:34.912] > Windows PowerShell
> Copyright (C) Microsoft Corporation. All rights reserved.
> 
> Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows
[17:32:35.023] > PS C:\Users\mostlydev> 
[17:32:35.055] > powershell -ExecutionPolicy Unrestricted -NoLogo -NoProfile -NonInteractive -Command "`$remoteSSHConfigurationScript=[Convert]::ToBase64String([Text.Encoding]::Unicode.GetBytes([Text.Encoding]::UTF8.GetString([Convert]::FromBase64String('CiR1dWlkPSIxNWY3NWJlOTBlMDciCi
[17:32:35.056] > Ike3V1aWR9OiBydW5uaW5nIgoiMTVmNzViZTkwZTA3OiBwYXVzZUxvZyIKJFByb2dyZXNzUHJlZmVyZ
[17:32:35.060] > W5jZT0nU2lsZW50bHlDb250aW51ZScKJHJfPSc1ZjkzNTNlZDhiZTM2OWM0YWMyYjRkNDM1OTZmNWZmMjgxNzQ2ZWMwJwokcD0kZW52OlBST0NFU1NPUl9BUkNISVRFQ1RVUkUKJGFyY2g9aWYgKCgkcCAtZXEgJ0FNRDY0JykgLW9yICgkcCAtZXE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CmFqXwokYWdfPUB7ClBhdGggPSAkbG9nClBhdHRlcm4gPSAiTGlzdGVuaW5nIG9uIDEyNy4wLjAuMTooLispIgp9CiRhZl89KEdldC1EYXRlKS5BZGRTZWNvbmRzKDQpCiRhbF89IlNlcnZlciBkaWQgbm90IHN0YXJ0IHN1Y2Nlc3NmdWxseS4gRnVsbCBzZXJ2ZXIgbG9nIGF0ICRsb2cgPj4+Igp3aGlsZSAoKEdldC1EYXRlKSAtbHQgJGFmXykgewppZihUZXN0LVBhdGggJGxvZykgewokYWhfPShzbHMgQGFnXykuTWF0Y2hlcy5Hcm91cHMKaWYoJGFoXykgewokZ2xvYmFsOnBvcnQgPSAkYWhfWzFdLlZhbHVlCmJyZWFrCn0KfQpzbGVlcCAtTWlsbGlzZWNvbmRzIDMwCn0KaWYgKCEkcG9ydCkgewokYWxfCmNhdCAkbG9nCiI8PDwgRW5kIG9mIHNlcnZlciBsb2ciCnEgMzIKfQp9IGNhdGNoIHsKIlNlcnZlciBmYWlsZWQgdG8gc3RhcnQuIC0gJCgkXy5Ub1N0cmluZygpKSIKIiQoJF8uU2NyaXB0U3RhY2tUcmFjZSkiCn0KdHJ5IHsKJGdsb2JhbDphaV8gPSAoZ2NpbSBXaW4zMl9PcGVyYXRpbmdTeXN0ZW0pLlZlcnNpb24KfSBjYXRjaCB7CiJGYWlsZWQgdG8gZmluZCBXaW5kb3dzIHZlcnNpb24gLSAkKCRfLlRvU3RyaW5nKCkpIgokZ2xvYmFsOmFpXyA9ICJ1bmtub3duIgp9CnByaW50UmVzdWx0CiIkcGlkLCB3YXRjaGluZyAkc3NoZFBJRCIKd2hpbGUgKCRUcnVlKSB7CmJfCnNsZWVwIDMwCn0KfQoiMTVmNzViZTkwZTA3OiByZXN1bWVMb2ciCm1haW4K')))); powershell -ExecutionPolicy Unrestricted -NoLogo -NoProfile -NonInteractive -EncodedCommand `$remoteSSHConfigurationScript"
[17:32:36.195] > 15f75be90e07: running
> 15f75be90e07: pauseLog
[17:32:36.284] > 15f75be90e07: resumeLog
[17:32:36.847] > Looking for existing CLI in C:\Users\mostlydev\.cursor-server
[17:32:36.850] > Downloading cli x64
> 15f75be90e07%%1%%
[17:32:37.039] > Download failed. - BlobNotFoundThe specified blob does not exist.
> RequestId:3e02b6ac-f01e-0017-3922-c4caaf000000
> Time:2024-06-21T21:32:37.1266953Z
[17:32:37.043] > Trigger local server download
> 15f75be90e07:trigger_server_download
> artifact==cli-win32-x64==
> destFolder==C:\Users\mostlydev\.cursor-server==
> destFolder2==/vscode-cli-5f9353ed8be369c4ac2b4d43596f5ff281746ec0.zip==
> 15f75be90e07:trigger_server_download_end
> Waiting for client to transfer server archive...
> Waiting for C:\Users\mostlydev\.cursor-server\vscode-cli-5f9353ed8be369c4ac2b4d43596f5ff281746ec0.zip.done and vscode-cli-5f9353ed8be369c4ac2b4d43596f5ff281746ec0.zip to exist
[17:32:37.044] Got request to download on client for {"artifact":"cli-win32-x64","destPath":"C:\\Users\\mostlydev\\.cursor-server/vscode-cli-5f9353ed8be369c4ac2b4d43596f5ff281746ec0.zip"}
[17:32:37.044] Downloading VS Code server locally...
[17:32:39.309] Terminating local server
[17:32:39.312] Resolver error: Error: Failed to download VS Code Server (Server returned 404)
    at g.Create (/Users/mostlydev/.cursor/extensions/ms-vscode-remote.remote-ssh-0.110.1/out/extension.js:2:499181)
    at /Users/mostlydev/.cursor/extensions/ms-vscode-remote.remote-ssh-0.110.1/out/extension.js:2:549814
    at async t.downloadAndCopyToHost (/Users/mostlydev/.cursor/extensions/ms-vscode-remote.remote-ssh-0.110.1/out/extension.js:2:549314)
    at async /Users/mostlydev/.cursor/extensions/ms-vscode-remote.remote-ssh-0.110.1/out/extension.js:2:557213
    at async e (/Users/mostlydev/.cursor/extensions/ms-vscode-remote.remote-ssh-0.110.1/out/extension.js:2:557328)
    at async /Users/mostlydev/.cursor/extensions/ms-vscode-remote.remote-ssh-0.110.1/out/extension.js:2:579574
    at async t.withShowDetailsEvent (/Users/mostlydev/.cursor/extensions/ms-vscode-remote.remote-ssh-0.110.1/out/extension.js:2:583233)
    at async /Users/mostlydev/.cursor/extensions/ms-vscode-remote.remote-ssh-0.110.1/out/extension.js:2:554370
    at async T (/Users/mostlydev/.cursor/extensions/ms-vscode-remote.remote-ssh-0.110.1/out/extension.js:2:552421)
    at async t.resolveWithLocalServer (/Users/mostlydev/.cursor/extensions/ms-vscode-remote.remote-ssh-0.110.1/out/extension.js:2:553910)
    at async k (/Users/mostlydev/.cursor/extensions/ms-vscode-remote.remote-ssh-0.110.1/out/extension.js:2:576791)
    at async t.resolve (/Users/mostlydev/.cursor/extensions/ms-vscode-remote.remote-ssh-0.110.1/out/extension.js:2:580604)
    at async /Users/mostlydev/.cursor/extensions/ms-vscode-remote.remote-ssh-0.110.1/out/extension.js:2:846713
[17:32:39.316] Local server exit: 15
[17:32:39.318] ------

[17:32:39.837] Opening exec server for ssh-remote+windev
[17:32:39.882] Acquiring local install lock: /var/folders/3l/gdf1_p5d2dq0j77nz014xrq00000gn/T/vscode-remote-ssh-90639290-install.lock
[17:32:39.882] Initizing new exec server for ssh-remote+windev
[17:32:39.929] Looking for existing server data file at /Users/mostlydev/Library/Application Support/Cursor/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-90639290-5f9353ed8be369c4ac2b4d43596f5ff281746ec0-0.110.1-es/data.json
[17:32:39.931] Using commit id "5f9353ed8be369c4ac2b4d43596f5ff281746ec0" and quality "stable" for server
[17:32:39.933] Install and start server if needed
[17:32:39.941] askpass server listening on /var/folders/3l/gdf1_p5d2dq0j77nz014xrq00000gn/T/vscode-ssh-askpass-4f40780d377c54c0adcacbb3545caf4b57577bb2.sock
[17:32:39.941] Spawning local server with {"serverId":2,"ipcHandlePath":"/var/folders/3l/gdf1_p5d2dq0j77nz014xrq00000gn/T/vscode-ssh-askpass-9041aad4efc679a057cb90188f8ae0e4fec23a69.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","58308","-o","ConnectTimeout=15","windev","powershell"],"serverDataFolderName":".cursor-server","dataFilePath":"/Users/mostlydev/Library/Application Support/Cursor/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-90639290-5f9353ed8be369c4ac2b4d43596f5ff281746ec0-0.110.1-es/data.json"}
[17:32:39.941] Local server env: {"SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.JuuavvaAbb/Listeners","SHELL":"/opt/homebrew/bin/fish","DISPLAY":"/private/tmp/com.apple.launchd.uQKyGijOa4/org.xquartz:0","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/mostlydev/.cursor/extensions/ms-vscode-remote.remote-ssh-0.110.1/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/mostlydev/.cursor/extensions/ms-vscode-remote.remote-ssh-0.110.1/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/3l/gdf1_p5d2dq0j77nz014xrq00000gn/T/vscode-ssh-askpass-4f40780d377c54c0adcacbb3545caf4b57577bb2.sock"}
[17:32:39.942] Spawned 38628
[17:32:40.051] > local-server-2> Running ssh connection command: ssh -v -T -D 58308 -o ConnectTimeout=15 windev powershell
[17:32:40.054] > local-server-2> Spawned ssh, pid=38654
[17:32:40.058] stderr> OpenSSH_9.6p1, LibreSSL 3.3.6
[17:32:40.320] stderr> debug1: Server host key: ssh-ed25519 SHA256:D6W3NaNy1nziwAFNQh2LTmyVS7Fqxumd4uCj3q7quwc
[17:32:40.455] stderr> Authenticated to cobb-east.somecompany ([107.202.31.138]:2223) using "publickey".
[17:32:40.717] > Windows PowerShell
> Copyright (C) Microsoft Corporation. All rights reserved.
> 
> Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows
[17:32:41.404] > ? ? ? mostlydev@WINDEV ? ? ? 
[17:32:41.415] > echo 'ready: ef40c721f4b3'
[17:32:41.425] > ready: ef40c721f4b3
[17:32:41.487] > ? ? ? mostlydev@WINDEV ? ? ? uname -rsv
[17:32:41.543] Platform: windows
[17:32:41.543] Remote command length: 6492/8192 characters
[17:32:41.613] > ? ? ? mostlydev@WINDEV ? ? ? ERROR ? powershell -NoProfile
[17:32:41.670] > Windows PowerShell
> Copyright (C) Microsoft Corporation. All rights reserved.
> 
> Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows
[17:32:41.775] > PS C:\Users\mostlydev> 
[17:32:41.805] > powershell -ExecutionPolicy Unrestricted -NoLogo -NoProfile -NonInteractive -Command "`$remoteSSHConfigurationScript=[Convert]::ToBase64String([Text.Encoding]::Unicode.GetBytes([Text.Encoding]::UTF8.GetString([Convert]::FromBase64String('CiR1dWlkPSJlZjQwYzcyMWY0YjMiCiIke3V1aWR9OiBydW5uaW5nIgoiZWY0MGM3MjFmNGIzOiBwYXVzZUxvZyIKJFByb2dyZXNzUHJlZmVyZW5jZT0nU2lsZW50bHlDb250aW51ZScKJHJfPSc1ZjkzNTNlZDhiZTM2OWM0YWMyYjRkNDM1OTZmNWZmMjgxNzQ2ZWMwJwokcD0kZW52OlBST0NFU1NPUl9BUkNISVRFQ1RVUkUKJGFyY2g9aWYgKCgkcCAtZXEgJ0FNRDY0JykgLW9yICgkcCAtZXEgJ0lBNjQnKSkgeyAneDY0JyB9IGVsc2UgeyAnaWEzMicgfQokc189KEpvaW4tUGF0aCAoUmVzb2x2ZS1QYXRoIH4pICcuY3Vyc29yLXNlcnZlcicpCiRjbGlEYXRhRGlyPShKb2luLVBhdGggIiRzXyIgJ2NsaScpCiRlbnY6VlNDT0RFX0FHRU5UX0ZPTERFUj0kc18KJGxvZz1OZXctVGVtcG9yYXJ5RmlsZQokY189ImNvZGUiCiRkXz0iJGNfLmV4ZSIKJGVfPSIkY18tJHJfLmV4ZSIKJGZfPSIkc19cJGVfIgokdF89J3N0YWJsZScKJGtfPSRUcnVl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kYWhfWzFdLlZhbHVlCmJyZWFrCn0KfQpzbGVlcCAtTWlsbGlzZWNvbmRzIDMwCn0KaWYgKCEkcG9ydCkgewokYWxfCmNhdCAkbG9nCiI8PDwgRW5kIG9mIHNlcnZlciBsb2ciCnEgMzIKfQp9IGNhdGNoIHsKIlNlcnZlciBmYWlsZWQgdG8gc3RhcnQuIC0gJCgkXy5Ub1N0cmluZygpKSIKIiQoJF8uU2NyaXB0U3RhY2tUcmFjZSkiCn0KdHJ5IHsKJGdsb2JhbDphaV8gPSAoZ2NpbSBXaW4zMl9PcGVyYXRpbmdTeXN0ZW0pLlZlcnNpb24KfSBjYXRjaCB7CiJGYWlsZWQgdG8gZmluZCBXaW5kb3dzIHZlcnNpb24gLSAkKCRfLlRvU3RyaW5nKCkpIgokZ2xvYmFsOmFpXyA9ICJ1bmtub3duIgp9CnByaW50UmVzdWx0CiIkcGlkLCB3YXRjaGluZyAkc3NoZFBJRCIKd2hpbGUgKCRUcnVlKSB7CmJfCnNsZWVwIDMwCn0KfQoiZWY0MGM3MjFmNGIzOiByZXN1bWVMb2ciCm1haW4K')))); powershell -ExecutionPolicy Unrestricted -NoLogo -NoProfile -NonInteractive -EncodedCommand `$remoteSSHConfigurationScript"
[17:32:42.948] > ef40c721f4b3: running
> ef40c721f4b3: pauseLog
[17:32:43.002] > ef40c721f4b3: resumeLog
[17:32:43.540] > Looking for existing CLI in C:\Users\mostlydev\.cursor-server
[17:32:43.546] > Downloading cli x64
> ef40c721f4b3%%1%%
[17:32:43.725] > Download failed. - BlobNotFoundThe specified blob does not exist.
> RequestId:96fdcef2-501e-006c-1422-c48833000000
> Time:2024-06-21T21:32:43.8035215Z
> Trigger local server download
> ef40c721f4b3:trigger_server_download
> artifact==cli-win32-x64==
> destFolder==C:\Users\mostlydev\.cursor-server==
> destFolder2==/vscode-cli-5f9353ed8be369c4ac2b4d43596f5ff281746ec0.zip==
> ef40c721f4b3:trigger_server_download_end
> Waiting for client to transfer server archive...
> Waiting for C:\Users\mostlydev\.cursor-server\vscode-cli-5f9353ed8be369c4ac2b4d43596f5ff281746ec0.zip.done and vscode-cli-5f9353ed8be369c4ac2b4d43596f5ff281746ec0.zip to exist
[17:32:43.725] Got request to download on client for {"artifact":"cli-win32-x64","destPath":"C:\\Users\\mostlydev\\.cursor-server/vscode-cli-5f9353ed8be369c4ac2b4d43596f5ff281746ec0.zip"}
[17:32:43.726] Downloading VS Code server locally...
[17:32:43.760] Terminating local server
[17:32:43.760] Exec server for ssh-remote+windev failed: Error: Failed to download VS Code Server (Server returned 404)
[17:32:43.760] Error opening exec server for ssh-remote+windev: Error: Failed to download VS Code Server (Server returned 404)
[17:32:43.763] Local server exit: 15
mostlydev commented 5 months ago

This seems to be related: https://github.com/microsoft/vscode-remote-release/issues/9677

Perhaps even the same bug.

Apparently, downgrading to version 0.109.0 of "Remote - SSH" resolves this, but Cursor does not let you pick any version other than 0.110.

mostlydev commented 5 months ago

I tried copying the extension from ~/.vscode to ~/.cursor and replaced the reference in extensions.json. It reports the new version is installed, but I still get the same error.

To be clear, I copied the whole node in extensions.json, not just the version identifier.

mostlydev commented 5 months ago

I followed the same process and downgraded to 0.109.0. Same error.

damianhodgkiss commented 5 months ago

I believe macos and windows hosts aren't supported, been waiting keenly for macos support for months :(

mostlydev commented 5 months ago

That's peculiar, considering those comprise the vast majority of dev OSes.

Sanger2000 commented 5 months ago

Yes, macos and windows remote hosts aren't currently supported. But this is definitely on our radar!

jenish-rudani commented 4 months ago

This was working before. It broke after a specific vscode update btw. I have personally used this with same machine M2 Mac Mini and ARM64 windows on Parallels VM.

jenish-rudani commented 4 months ago

This was working before. It broke after a specific vscode update btw. I have personally used this with same machine M2 Mac Mini and ARM64 windows on Parallels VM.

Let me add more context to this:

It seems that in previous version where I WAS able to ssh into Windows VM running on Paralles from MacOs host both ARM64 arch, the server that was getting downloaded on windows vm was X64.

I was able to replicate the previous working solution by patching Remote SSH extension (specifically extensions.js) by replace $arch detection if else.

More info here: https://github.com/microsoft/vscode-remote-release/issues/9677#issuecomment-2231535606

Connorelsea commented 4 months ago

I use VS Code "Remote - SSH" daily but the same workflow does not work in cursor. I remote from a M1 mac machine to another M1 mac. On cursor I am getting the error "Failed to download VS Code Server (Server returned 404)"

I imagine this would work if we could downgrade the plugin as others mentioned, but only one version is listed when clicking "install another version."

Unfortunately this is the only way I access my codebase so I cannot try cursor yet, but I hope I will be able to soon

If anybody here would like to shine some extra light on this issue you can also confirm that it's still happening on their forum: https://forum.cursor.com/t/cursor-remote-ssh-not-working-invalid-vscode-server-download-link/3889

ibeckermayer commented 4 months ago

This is happening for me trying to SSH into a Windows remote from MacOS as well, but my remote Windows machine is x86_64 and thus does not appear to be related to the arch issue.

I'm totally addicted to Cursor but this bug is making my workflow very cumbersome. I basically have VSCode (which can connect to remote) open in one window, and Cursor in another, and do some ad-hoc combination of git push/pull and copy pasting files between the two in order to develop for Windows from Mac. Would love to continue to promote Cursor to other VSCode developers at my company, but we need this feature to work.

OkGoDoIt commented 4 months ago

It's random issues like this that make me wish Cursor was just a vs code plugin. This has been an issue for months, why isn't it fixed yet?

sdepablos commented 3 months ago

When working with remote containers, VSCode installs a VS Code Server in the remote machine based on the client's compilation commit (Help > About > Commit). image

If the client is compiled on commit A, the server that it tries to download is based on commit A, but if we update the client to commit B, it will try to download commit B for the server.

Silly question: I think Cursor is a fork, so of course their commit SHAs are going to be different. Is anyone at Cursor making sure to modify whatever internal variable so the Remote Development extension would point to the correct VS Code Server commit instead of using the one in the Cursor client?

zhoukaigo commented 2 months ago

Same error. Cursor version: 0.40.4

tjburch commented 2 months ago

Still not working for windows host, 0.41.2.

wjohhan commented 1 month ago

still not working for windows 11 host / MacOS sequoia client(cursor installed)

yinhaoti commented 1 month ago

Any update?

mostlydev commented 1 month ago

This is stunning. It speaks volumes about the bubble that is ai development that an issue relevant to a majority their prospective audience isn't a higher priority.

Most of my worry about this app relates to these sorts of blindspots. It's culture. Microsoft has no illusions about current reality, and so vscode + cody + supermaven it is.

Edit: As I expected, Windows is the most common development OS, followed closely by MacOS. And I'm going to guess a majority of those MacOS developers are at least sometimes developing Windows apps.

ibeckermayer commented 1 month ago

@truell20 any thoughts on this one? Seems like there's a chance it may be a one liner somewhere that would unlock a major feature for a lot of users.

hsatarian2 commented 1 month ago

Any updates on this?

rohitgupta3 commented 1 month ago

Make sure you're logged into Cursor, then try again. That worked for me

hsatarian2 commented 1 month ago

Didn't help, same issue. VS Code server fails to install on remote win machine.

ankurbhatia24 commented 4 weeks ago

Hey @truell20 any update on this? Trying to connect to the code tunnel but facing this 404 Not found error for a particular commit hash:

image