vscode-remote-release icon indicating copy to clipboard operation
vscode-remote-release copied to clipboard

[Remote-SSH Bug]: Resolver error: Error: Failed to download VS Code Server (Server returned 404)

Open jenish-rudani opened this issue 11 months ago • 45 comments

Is there an existing issue for this bug?

  • [X] I have searched the existing issues

Required Troubleshooting Steps

  • [X] I have followed these troubleshooting steps
  • [X] I have tried both values of the remote.SSH.useLocalServer setting

Connect Locally

It connects successfully

->

No response

Expected Behavior

I am running windows 11 in parallels and trying to open a vscode server on Windows 11 remote from MacOs host.

Steps To Reproduce

Host: Darwin Mac-mini.local 23.1.0 Darwin Kernel Version 23.1.0: Mon Oct 9 21:28:45 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6020 arm64 Remote: CPU0 Apple Silicon ARMv8 (64-bit) Family 8 Model 0 Revision 0 3200 CPU

Open VsCode -> Connect to host -> win11

win11 host defined as, Host win11 10.211.55.4 HostName 10.211.55.4 User atom IdentityFile ~/.ssh/windows11Parallel PasswordAuthentication no

I can ssh into win11 using ssh win11 without any issues.

Remote-SSH Log

Remote-SSH Log

[13:23:27.192] Log Level: 1
[13:23:27.197] SSH Resolver called for "ssh-remote+win11", attempt 1
[13:23:27.197] "remote.SSH.useLocalServer": true
[13:23:27.197] "remote.SSH.useExecServer": true
[13:23:27.197] "remote.SSH.path": undefined
[13:23:27.197] "remote.SSH.configFile": undefined
[13:23:27.197] "remote.SSH.useFlock": true
[13:23:27.197] "remote.SSH.lockfilesInTmp": false
[13:23:27.198] "remote.SSH.localServerDownload": always
[13:23:27.198] "remote.SSH.remoteServerListenOnSocket": false
[13:23:27.198] "remote.SSH.showLoginTerminal": true
[13:23:27.198] "remote.SSH.defaultExtensions": []
[13:23:27.198] "remote.SSH.loglevel": 1
[13:23:27.198] "remote.SSH.enableDynamicForwarding": true
[13:23:27.198] "remote.SSH.enableRemoteCommand": false
[13:23:27.198] "remote.SSH.serverPickPortsFromRange": {}
[13:23:27.198] "remote.SSH.serverInstallPath": {}
[13:23:27.200] VS Code version: 1.87.2
[13:23:27.201] Remote-SSH version: [email protected]
[13:23:27.201] darwin arm64
[13:23:27.202] SSH Resolver called for host: win11
[13:23:27.202] Setting up SSH remote "win11"
[13:23:27.204] Acquiring local install lock: /var/folders/th/mkmvgmmn49l6p7qm7hw7mwg80000gn/T/vscode-remote-ssh-d761b3ab-install.lock
[13:23:27.204] Looking for existing server data file at /Users/atom/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-d761b3ab-863d2581ecda6849923a2118d93a088b0745d9d6-0.109.0-es/data.json
[13:23:27.205] Using commit id "863d2581ecda6849923a2118d93a088b0745d9d6" and quality "stable" for server
[13:23:27.206] Install and start server if needed
[13:23:27.207] PATH: /Applications/:/Users/atom/.vcpkg/artifacts/2139c4c6/compilers.arm.armclang/6.21.0/bin:/Users/atom/go/bin:/opt/homebrew/opt/[email protected]//bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_311.jdk/Contents/Home//bin:/bin/:/Applications/Sublime Text.app/Contents/SharedSupport/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/go/bin
[13:23:27.207] Checking ssh with "ssh -V"
[13:23:27.216] > OpenSSH_9.4p1, LibreSSL 3.3.6

[13:23:27.217] askpass server listening on /var/folders/th/mkmvgmmn49l6p7qm7hw7mwg80000gn/T/vscode-ssh-askpass-12f29cf5ec491f35d241694bce047d0f03848202.sock
[13:23:27.218] Spawning local server with {"serverId":1,"ipcHandlePath":"/var/folders/th/mkmvgmmn49l6p7qm7hw7mwg80000gn/T/vscode-ssh-askpass-7579cef0098828e15e545255a520c95da1788295.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","55173","-o","ConnectTimeout=15","win11","powershell"],"serverDataFolderName":".vscode-server","dataFilePath":"/Users/atom/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-d761b3ab-863d2581ecda6849923a2118d93a088b0745d9d6-0.109.0-es/data.json"}
[13:23:27.218] Local server env: {"SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.TtJDq267xU/Listeners","SHELL":"/bin/zsh","DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"","VSCODE_SSH_ASKPASS_MAIN":"/Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/th/mkmvgmmn49l6p7qm7hw7mwg80000gn/T/vscode-ssh-askpass-12f29cf5ec491f35d241694bce047d0f03848202.sock"}
[13:23:27.218] Spawned 9342
[13:23:27.315] > local-server-1> Running ssh connection command: ssh -v -T -D 55173 -o ConnectTimeout=15 win11 powershell
[13:23:27.316] > local-server-1> Spawned ssh, pid=9354
[13:23:27.318] stderr> OpenSSH_9.4p1, LibreSSL 3.3.6
[13:23:27.319] stderr> debug1: Reading configuration data /Users/atom/.ssh/config
[13:23:27.319] stderr> debug1: /Users/atom/.ssh/config line 1: Applying options for win11
[13:23:27.319] stderr> debug1: Reading configuration data /etc/ssh/ssh_config
[13:23:27.319] stderr> debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files
[13:23:27.319] stderr> debug1: /etc/ssh/ssh_config line 54: Applying options for *
[13:23:27.319] stderr> debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
[13:23:27.319] stderr> debug1: Connecting to 10.211.55.4 [10.211.55.4] port 22.
[13:23:27.320] stderr> debug1: fd 3 clearing O_NONBLOCK
[13:23:27.320] stderr> debug1: Connection established.
[13:23:27.320] stderr> debug1: identity file /Users/atom/.ssh/windows11Parallel type 3
[13:23:27.320] stderr> debug1: identity file /Users/atom/.ssh/windows11Parallel-cert type -1
[13:23:27.320] stderr> debug1: Local version string SSH-2.0-OpenSSH_9.4
[13:23:27.352] stderr> debug1: Remote protocol version 2.0, remote software version OpenSSH_for_Windows_8.6
[13:23:27.352] stderr> debug1: compat_banner: match: OpenSSH_for_Windows_8.6 pat OpenSSH* compat 0x04000000
[13:23:27.352] stderr> debug1: Authenticating to 10.211.55.4:22 as 'atom'
[13:23:27.353] stderr> debug1: load_hostkeys: fopen /Users/atom/.ssh/known_hosts2: No such file or directory
[13:23:27.353] stderr> debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
[13:23:27.353] stderr> debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
[13:23:27.353] stderr> debug1: SSH2_MSG_KEXINIT sent
[13:23:27.371] stderr> debug1: SSH2_MSG_KEXINIT received
[13:23:27.371] stderr> debug1: kex: algorithm: curve25519-sha256
[13:23:27.371] stderr> debug1: kex: host key algorithm: ssh-ed25519
[13:23:27.371] stderr> debug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none
[13:23:27.371] stderr> debug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none
[13:23:27.372] stderr> debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
[13:23:27.375] stderr> debug1: SSH2_MSG_KEX_ECDH_REPLY received
[13:23:27.375] stderr> debug1: Server host key: ssh-ed25519 SHA256:3LZO+dz/McEsgVE1bF23aS8pOMqjGp9rJoN5MAMFnyk
[13:23:27.376] stderr> debug1: load_hostkeys: fopen /Users/atom/.ssh/known_hosts2: No such file or directory
[13:23:27.376] stderr> debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
[13:23:27.376] stderr> debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
[13:23:27.376] stderr> debug1: Host '10.211.55.4' is known and matches the ED25519 host key.
[13:23:27.376] stderr> debug1: Found key in /Users/atom/.ssh/known_hosts:24
[13:23:27.378] stderr> debug1: rekey out after 134217728 blocks
[13:23:27.378] stderr> debug1: SSH2_MSG_NEWKEYS sent
[13:23:27.378] stderr> debug1: expecting SSH2_MSG_NEWKEYS
[13:23:27.378] stderr> debug1: SSH2_MSG_NEWKEYS received
[13:23:27.378] stderr> debug1: rekey in after 134217728 blocks
[13:23:27.382] stderr> debug1: get_agent_identities: bound agent to hostkey
[13:23:27.382] stderr> debug1: get_agent_identities: ssh_fetch_identitylist: agent contains no identities
[13:23:27.382] stderr> debug1: Will attempt key: /Users/atom/.ssh/windows11Parallel ED25519 SHA256:LJbaC1xX5X1BNkHFWzL2f0OaZ1ac6LyfN7PUA8lPZYc explicit
[13:23:27.382] stderr> debug1: SSH2_MSG_EXT_INFO received
[13:23:27.382] stderr> debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,[email protected],ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected]>
[13:23:27.430] stderr> debug1: SSH2_MSG_SERVICE_ACCEPT received
[13:23:27.446] stderr> debug1: Authentications that can continue: publickey,keyboard-interactive
[13:23:27.446] stderr> debug1: Next authentication method: publickey
[13:23:27.446] stderr> debug1: Offering public key: /Users/atom/.ssh/windows11Parallel ED25519 SHA256:LJbaC1xX5X1BNkHFWzL2f0OaZ1ac6LyfN7PUA8lPZYc explicit
[13:23:27.447] stderr> debug1: Server accepts key: /Users/atom/.ssh/windows11Parallel ED25519 SHA256:LJbaC1xX5X1BNkHFWzL2f0OaZ1ac6LyfN7PUA8lPZYc explicit
[13:23:27.479] stderr> Authenticated to 10.211.55.4 ([10.211.55.4]:22) using "publickey".
[13:23:27.479] stderr> debug1: Local connections to LOCALHOST:55173 forwarded to remote address socks:0
[13:23:27.479] stderr> debug1: Local forwarding listening on ::1 port 55173.
[13:23:27.479] stderr> debug1: channel 0: new port-listener [port listener] (inactive timeout: 0)
[13:23:27.480] stderr> debug1: Local forwarding listening on 127.0.0.1 port 55173.
[13:23:27.480] stderr> debug1: channel 1: new port-listener [port listener] (inactive timeout: 0)
[13:23:27.480] stderr> debug1: channel 2: new session [client-session] (inactive timeout: 0)
[13:23:27.480] stderr> debug1: Requesting [email protected]
[13:23:27.480] stderr> debug1: Entering interactive session.
[13:23:27.480] stderr> debug1: pledge: filesystem
[13:23:27.501] stderr> debug1: client_input_global_request: rtype [email protected] want_reply 0
[13:23:27.501] stderr> debug1: client_input_hostkeys: searching /Users/atom/.ssh/known_hosts for 10.211.55.4 / (none)
[13:23:27.505] stderr> debug1: client_input_hostkeys: searching /Users/atom/.ssh/known_hosts2 for 10.211.55.4 / (none)
[13:23:27.505] stderr> debug1: client_input_hostkeys: hostkeys file /Users/atom/.ssh/known_hosts2 does not exist
[13:23:27.505] stderr> debug1: client_input_hostkeys: host key found matching a different name/address, skipping UserKnownHostsFile update
[13:23:27.505] stderr> debug1: Sending environment.
[13:23:27.505] stderr> debug1: Sending command: powershell
[13:23:27.506] stderr> debug1: pledge: network
[13:23:27.628] > Windows PowerShell
> Copyright (C) Microsoft Corporation. All rights reserved.
> 
> Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows
[13:23:27.766] > PS C:\Users\atom> 
[13:23:27.788] > echo 'ready: f94a61bff400'
[13:23:27.822] > ready: f94a61bff400
[13:23:27.827] > PS C:\Users\atom> 
[13:23:27.827] > u
[13:23:27.828] > name -rsv
[13:23:27.884] Platform: windows
[13:23:27.884] Remote command length: 6476/8192 characters
[13:23:27.891] > PS C:\Users\atom> 
[13:23:27.891] > powershell -NoProfile
[13:23:27.948] > Windows PowerShell
> Copyright (C) Microsoft Corporation. All rights reserved.
> 
> Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows
[13:23:28.083] > PS C:\Users\atom> 
[13:23:28.111] > powershell -ExecutionPolicy Unrestricted -NoLogo -NoProfile -NonInteractive -Command "`$remoteSSHConfigurationScript=[Convert]::ToBase64String([Text.Encoding]::Unicode.GetBytes([Text.Encoding]::UTF8.GetString([Convert]::FromBase64String('CiR1dWlkPSJmOTRhNjFiZmY0MDAiCiIke3V1aWR9OiBydW5uaW5nIgoiZjk0YTYxYmZmNDAwOiBwYXVzZUxvZyIKJFByb2dyZXNzUHJlZmVyZW5jZT0nU2lsZW50bHlDb250aW51ZScKJHJfPSc4NjNkMjU4MWVjZGE2ODQ5OTIzYTIxMThkOTNhMDg4YjA3NDVkOWQ2JwokcD0kZW52OlBST0NFU1NPUl9BUkNISVRFQ1RVUkUKJGFyY2g9aWYgKCgkcCAtZXEgJ0FNRDY0JykgLW9yICgkcCAtZXEgJ0lBNjQnKSkgeyAneDY0JyB9IGVsc2UgeyAnaWEzMicgfQokc189KEpvaW4tUGF0aCAoUmVzb2x2ZS1QYXRoIH4pICcudnNjb2RlLXNlcnZlcicpCiRjbGlEYXRhRGlyPShKb2luLVBhdGggIiRzXyIgJ2NsaScpCiRlbnY6VlNDT0RFX0FHRU5UX0ZPTERFUj0kc18KJGxvZz1OZXctVGVtcG9yYXJ5RmlsZQokY189ImNvZGUiCiRkXz0iJGNfLmV4ZSIKJGVfPSIkY18tJHJfLmV4ZSIKJGZfPSIkc19cJGVfIgokdF89J3N0YWJsZScKJGtfPSRUcnVlCiRsXz0kVHJ1ZQokZ2xvYmFsOnZfID0gJEZhbHNlCiRnbG9iYWw6d18gPSAnJwokZ2xvYmFsOm5fID0gJycKJGdsb2JhbDpvXyA9ICcnCiRnbG9iYWw6cF8gPSAnJwokZ2xvYmFsOnFfID0gJycKZnVuY3Rpb24gYWtfIHsKImxpc3RlbmluZ09uPT0kcG9ydD09Igoib3NSZWxlYXNlSW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NlY29uZHMgMzAKfQppZiAoISRwb3J0KSB7CiRhbF8KY2F0ICRsb2cKIjw8PCBFbmQgb2Ygc2VydmVyIGxvZyIKcSAzMgp9Cn0gY2F0Y2ggewoiU2VydmVyIGZhaWxlZCB0byBzdGFydC4gLSAkKCRfLlRvU3RyaW5nKCkpIgoiJCgkXy5TY3JpcHRTdGFja1RyYWNlKSIKfQp0cnkgewokZ2xvYmFsOmFpXyA9IChnY2ltIFdpbjMyX09wZXJhdGluZ1N5c3RlbSkuVmVyc2lvbgp9IGNhdGNoIHsKIkZhaWxlZCB0byBmaW5kIFdpbmRvd3MgdmVyc2lvbiAtICQoJF8uVG9TdHJpbmcoKSkiCiRnbG9iYWw6YWlfID0gInVua25vd24iCn0KcHJpbnRSZXN1bHQKI
[13:23:28.116] > iRwaWQsIHdhdGNoaW5nICRzc2hkUElEIgp3aGlsZSAoJFRydWUpIHsKYl8Kc2xlZXAgMzAKfQp9CiJmOTRhNjFiZmY0MDA6IHJlc3VtZUxvZyIKbWFpbgo=')))); powershell -ExecutionPolicy Unrestr
[13:23:28.116] > i
[13:23:28.116] > cted -NoLogo -NoProfile -NonInteractive -EncodedCommand `$remoteSSHConfigurationScript"
[13:23:28.396] > f94a61bff400: running
> f94a61bff400: pauseLog
[13:23:28.456] > f94a61bff400: resumeLog
[13:23:28.721] > Looking for existing CLI in C:\Users\atom\.vscode-server
[13:23:28.724] > Trigger local server download
[13:23:28.724] > f94a61bff400:trigger_server_download
[13:23:28.725] > artifact==cli-win32==
[13:23:28.725] > 
> destFolder==C:\Users\atom\.vscode-server==
> destFolder2==/vscode-cli-863d2581ecda6849923a2118d93a088b0745d9d6.zip==
> f94a61bff400:trigger_server_download_end
> Waiting for client to transfer server archive...
> Waiting for C:\Users\atom\.vscode-server\vscode-cli-863d2581ecda6849923a2118d93a088b0745d9d6.zip.done and vscode-cli-863d2581ecda6849923a2118d93a088b0745d9d6.zip to exist
[13:23:28.725] Got request to download on client for {"artifact":"cli-win32","destPath":"C:\\Users\\atom\\.vscode-server/vscode-cli-863d2581ecda6849923a2118d93a088b0745d9d6.zip"}
[13:23:28.725] Downloading VS Code server locally...
[13:23:28.819] Terminating local server
[13:23:28.821] Resolver error: Error: Failed to download VS Code Server (Server returned 404)
	at g.Create (/Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:499734)
	at /Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:550334
	at async t.downloadAndCopyToHost (/Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:549834)
	at async /Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:557733
	at async e (/Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:557848)
	at async /Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:580094
	at async t.withShowDetailsEvent (/Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:583753)
	at async /Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:554890
	at async T (/Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:552941)
	at async t.resolveWithLocalServer (/Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:554430)
	at async k (/Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:577311)
	at async t.resolve (/Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:581124)
	at async /Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:847283
[13:23:28.823] TELEMETRY: {"eventName":"resolver","properties":{"osReleaseId":"","arch":"","askedPw":"0","askedPassphrase":"0","asked2fa":"0","askedHostKey":"0","remoteInConfigFile":"1","gotUnrecognizedPrompt":"0","dynamicForwarding":"1","localServer":"1","didLocalDownload":"0","installUnpackCode":"0","outcome":"failure","reason":"LocalDownloadFailed","exitCodeLabel":""},"measures":{"resolveAttempts":1,"isExecServer":0,"timing.totalResolveTime":1623,"timing.preSshTime":21,"timing.establishSshTime":1178}}
[13:23:28.824] ------




[13:23:28.827] Local server exit: 15

Anything else?

No response

jenish-rudani avatar Mar 19 '24 20:03 jenish-rudani

Hi, I also have the same problem, I can ssh connect to the host from a client , both machines installing window 11. Howerver, this "Resolver error: Error: Failed to download VS Code Server (Server returned 404)" still happens, I have tried many efforts to solve it but still could not move on.

binhpht avatar Mar 22 '24 17:03 binhpht

It looks like we detected the remote as 32-bit windows, is it actually 32-bit windows or a 32-bit SSH server? It's failing to download the 32-bit server because we don't support that platform anymore.

roblourens avatar Mar 22 '24 17:03 roblourens

If that's wrong, please connect to that remote and check $env:PROCESSOR_ARCHITECTURE

roblourens avatar Mar 22 '24 17:03 roblourens

Both of the machines I am currently using are running 64-bit Windows 11. The host is powered by an ARM64 processor, while the client uses an Intel 64-bit processor (AMD64). The error in the terminal suggests that it attempted to download the 32-bit version of the VS Code server:

[19:15:09.664] Got request to download on client for {"artifact":"cli-win32","destPath":"C:\Users\admin\.vscode-server/vscode-cli-863d2581ecda6849923a2118d93a088b0745d9d6.zip"} [19:15:09.665] Downloading VS Code server locally... [19:15:09.682] > [19:15:09.990] Resolver error: Error: Failed to download VS Code Server (Server returned 404)

When I tried to remote using host machine, using the same machine to remote vs code for testing, it works well.

binhpht avatar Mar 22 '24 17:03 binhpht

The remote is ARM64 actually.

PS C:\Users\atom> $env:PROCESSOR_ARCHITECTURE returns ARM64

jenish-rudani avatar Mar 22 '24 17:03 jenish-rudani

I managed to fix by using older version 1.85.2 instead of the latest version.

binhpht avatar Mar 22 '24 19:03 binhpht

Same here.

Logs say: https://update.code.visualstudio.com/commit:863d2581ecda6849923a2118d93a088b0745d9d6/server-linux-legacy-x64/stable: 2024-03-24 05:48:24 ERROR 404: Not Found.

invokablegmbh avatar Mar 24 '24 04:03 invokablegmbh

Same here. Trying to connect to Ubuntu 22.04 LTS x64 https://update.code.visualstudio.com/commit:863d2581ecda6849923a2118d93a088b0745d9d6/server-linux-legacy-x64/stable

pcherkashin avatar Mar 24 '24 18:03 pcherkashin

Same here. Trying to connect to CentOS/7 Resolver error: Error: Failed to download VS Code Server (Server returned 404) Version 1.87,2

On VSC-insider the remote vscode server was installed correctly. Version 1.88.0-insider

bvv400 avatar Mar 25 '24 13:03 bvv400

After updating VSCode to 1.87.2, I can't setup NEW remote SSH connection due to error while downloading vscode-server (Destination OS is Ubuntu @ x86_64):

[14:56:51.846] > Linux 6.5.0-21-generic #21~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Feb  9 13:32:52 UTC 2
[14:56:51.846] Platform: linux
[14:56:51.851] > /bin/bash
[14:56:51.851] Shell: bash
[14:56:51.851] Creating bash subshell inside "bash"
[14:56:51.864] > bash version:  5.1.16(1)-release
[14:56:51.879] > 0541393a5b34: running
[14:56:51.907] > Acquiring lock on /home/user/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6/vscode-remote-lock.user.863d2581ecda6849923a2118d93a088b0745d9d6
[14:56:51.912] > Installing to /home/user/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6...
[14:56:51.915] > 0541393a5b34%%1%%
[14:56:51.920] > Downloading with wget
[14:56:52.152] > wget download failed
> https://update.code.visualstudio.com/commit:863d2581ecda6849923a2118d93a088b0745d9d6/server-linux-legacy-x64/stable: 2024-03-25 17:56:52 ERROR 404: Not Found.

Try to follow the broken link from another PC:

% wget https://update.code.visualstudio.com/commit:863d2581ecda6849923a2118d93a088b0745d9d6/server-linux-legacy-x64/stable; echo $?
--2024-03-25 15:06:43--  https://update.code.visualstudio.com/commit:863d2581ecda6849923a2118d93a088b0745d9d6/server-linux-legacy-x64/stable
Resolving update.code.visualstudio.com (update.code.visualstudio.com)... 13.107.246.45, 13.107.213.45
Connecting to update.code.visualstudio.com (update.code.visualstudio.com)|13.107.246.45|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-03-25 15:06:43 ERROR 404: Not Found.

8

Please note that the previously established SSH remote connection to another PC, which already has the vscode-server downloaded, continues to function properly after the update as well.

lomalkin avatar Mar 25 '24 15:03 lomalkin

I'm seeing this as well connecting from 64-bit Windows 10 PC to a 64-bit Intel RedHat 8 Linux server.

ecker-deshaw avatar Mar 25 '24 16:03 ecker-deshaw

I am having the same issue. any luck without downgrading to 1.85 version? !_!

2jiwon avatar Mar 26 '24 02:03 2jiwon

After updating to v.1.87.2, I had a similar issue. I was using the extension "Remote - SSH' on the pre-release version.

I switched it to the release version (v.0.109.0), and it resolved the problem for me.

imsujinpark avatar Mar 26 '24 05:03 imsujinpark

@imsujinpark You saved my day! Yes switched to the release version solved the problem, thank you!

2jiwon avatar Mar 26 '24 05:03 2jiwon

Thanks @imsujinpark! Switching to the release version was the trick.

Mighty-Monarch avatar Mar 26 '24 10:03 Mighty-Monarch

My error also resolved by switching down to the release version of the Remote - SSH extension. Thanks!

ryan-l-robinson avatar Mar 26 '24 15:03 ryan-l-robinson

I came across this problem too.

When the downloading link is with server-linux-x64, it goes well.

wget https://update.code.visualstudio.com/commit:863d2581ecda6849923a2118d93a088b0745d9d6/server-linux-x64/stable

But on my AWS remote machine, the download link is with server-linux-legacy-x64

wget https://update.code.visualstudio.com/commit:863d2581ecda6849923a2118d93a088b0745d9d6/server-linux-legacy-x64/stable

And the result goes

--2024-03-27 12:18:40--  https://update.code.visualstudio.com/commit:863d2581ecda6849923a2118d93a088b0745d9d6/server-linux-legacy-x64/stable
Resolving update.code.visualstudio.com (update.code.visualstudio.com)... 13.107.246.40, 13.107.213.40, 2620:1ec:bdf::40, ...
Connecting to update.code.visualstudio.com (update.code.visualstudio.com)|13.107.246.40|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-03-27 12:18:40 ERROR 404: Not Found.

That is so weird, I think this is where the problem lies.

hnyls2002 avatar Mar 27 '24 12:03 hnyls2002

Same here. Trying to connect to CentOS/7 Resolver error: Error: Failed to download VS Code Server (Server returned 404) Version 1.87,2

On VSC-insider the remote vscode server was installed correctly. Version 1.88.0-insider

error also resolved by switching down to the release version of the Remote - SSH extension. Thanks!

bvv400 avatar Mar 27 '24 12:03 bvv400

Thanks @imsujinpark! I got same issues, after switching it to the release version (v.0.109.0), I can connect my vms.

FanhaiLu1 avatar Mar 28 '24 05:03 FanhaiLu1

@imsujinpark I also encountered a 404 issue. After switching the Remote-SSH plug-in to the release version, the issue was solved. Thanks! image

InImpasse avatar Apr 01 '24 06:04 InImpasse

切换至发布版本可以解决404问题。我记得我一直是发布版本,什么时候变成了预发布版本的?

ThreeE999 avatar Apr 03 '24 03:04 ThreeE999

@roblourens I still have this issue, the Vs code usually automatically update the latest version and I could not remote SSH. Switch to the release version for SSH extension does not fix the issue for me. I also have tried to use VS code insider but it does not work. The processor of the host machine is ARM64. Thanks

binhpht avatar Apr 03 '24 12:04 binhpht

After updating to v.1.87.2, I had a similar issue. I was using the extension "Remote - SSH' on the pre-release version.

I switched it to the release version (v.0.109.0), and it resolved the problem for me.

You are right! Thanks!

BeastyZ avatar Apr 05 '24 04:04 BeastyZ

Same error here on version 0.110.1 of Remote - SSH. Switching to release version is not fixing the issue. Host is macOS 14.4.1 with Apple M2, guest is Windows 11 Pro ARM 23H2.

[17:41:24.909] Got request to download on client for {"artifact":"cli-win32","destPath":"C:\\Users\\romain_fallet\\.vscode-server\\.vscode-server/vscode-cli-5c3e652f63e798a5ac2f31ffd0d863669328dc4c.zip"}
[17:41:24.909] Downloading VS Code server locally...
[17:41:25.272] Terminating local server
[17:41:25.278] Resolver error: Error: Échec du téléchargement de VS Code Server (Server returned 404)

RomainFallet avatar Apr 08 '24 15:04 RomainFallet

@RomainFallet i also have the same, the only solution i found is downgrade your vs code to 1.85

binhpht avatar Apr 08 '24 16:04 binhpht

@roblourens

Please let us know if you need extensive logs/information on this issue which better helps you debug and troubleshoot this.

Looking forward to hearing your feedback on this matter.

jenish-rudani avatar Apr 08 '24 16:04 jenish-rudani

@RomainFallet i also have the same, the only solution i found is downgrade your vs code to 1.85

Thanks, downgrading to VSCode 1.85 solved the problem for me too!

RomainFallet avatar Apr 08 '24 17:04 RomainFallet

@RomainFallet Rememeber to turn off auto update

binhpht avatar Apr 08 '24 17:04 binhpht

This is still an issue with vscode 1.88 and both release and pre-release remote-ssh extension (macos arm64 host, windows arm64 remote).

Downgrading to vscode v1.85 is the only thing that worked

andrjohns avatar Apr 21 '24 10:04 andrjohns

@andrjohns I managed to work normally with version 1.88. I remote to the window 11, Arm 64

binhpht avatar Apr 21 '24 10:04 binhpht