microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.69k stars 296 forks source link

[Remote-SSH Bug]: Remote SSH connect fails on box w/o internet connection #10344

Closed moritzwilksch closed 3 weeks ago

moritzwilksch commented 1 month ago

Is there an existing issue for this bug?

Required Troubleshooting Steps

Connect Locally

It connects successfully

->

No response

Expected Behavior

VScode server on the remote host does not attempt to connect to the internet

Steps To Reproduce

Environment:

  1. Start local vscode
  2. connect to host
  3. logs look fine (local server download + scp to host, server seems to start up)
  4. error occurs after "Installing and setting up Visual Studio Code Server..." as the remote vscode server tries to access the internet which fails. More specifically I get prompted for my Proxy authentication details which has never happened before.

Remote-SSH Log

Remote-SSH Log

``` [10:13:35.342] Log Level: 1 [10:13:35.345] SSH Resolver called for "ssh-remote+localhost", attempt 1 [10:13:35.346] "remote.SSH.useLocalServer": false [10:13:35.346] "remote.SSH.useExecServer": true [10:13:35.346] "remote.SSH.showLoginTerminal": false [10:13:35.346] "remote.SSH.remotePlatform": {"localhost":"linux"} [10:13:35.346] "remote.SSH.path": undefined [10:13:35.346] "remote.SSH.configFile": undefined [10:13:35.347] "remote.SSH.useFlock": true [10:13:35.347] "remote.SSH.lockfilesInTmp": false [10:13:35.347] "remote.SSH.localServerDownload": auto [10:13:35.347] "remote.SSH.remoteServerListenOnSocket": false [10:13:35.347] "remote.SSH.showLoginTerminal": false [10:13:35.347] "remote.SSH.defaultExtensions": [] [10:13:35.347] "remote.SSH.loglevel": 1 [10:13:35.349] "remote.SSH.enableDynamicForwarding": true [10:13:35.349] "remote.SSH.enableRemoteCommand": false [10:13:35.349] "remote.SSH.serverPickPortsFromRange": {} [10:13:35.349] "remote.SSH.serverInstallPath": {} [10:13:35.349] "remote.SSH.permitPtyAllocation": false [10:13:35.349] "remote.SSH.preferredLocalPortRange: undefined [10:13:35.350] "remote.SSH.useCurlAndWgetConfigurationFiles: false [10:13:35.356] VS Code version: 1.94.0 [10:13:35.356] Remote-SSH version: remote-ssh@0.114.3 [10:13:35.356] win32 x64 [10:13:35.361] SSH Resolver called for host: localhost [10:13:35.361] Setting up SSH remote "localhost" [10:13:35.366] Using commit id "d78a74bcdfad14d5d3b1b782f87255d802b57511" and quality "stable" for server [10:13:35.369] Script variables: { "InstallExitCode.24": "AlreadyInProgress", "InstallExitCode.25": "ServerDownloadFailed", "InstallExitCode.26": "NoDownloaderAvailable", "InstallExitCode.27": "UnsupportedArch", "InstallExitCode.28": "StatusCheckFailed", "InstallExitCode.29": "NeedInsidersArch", "InstallExitCode.30": "NoDownloaderAvailableForStatusCheck", "InstallExitCode.31": "ServerTransferFailed", "InstallExitCode.32": "ServerFailedToStart", "InstallExitCode.33": "NeedInsidersWindows", "InstallExitCode.34": "CreateInstallDirFailed", "InstallExitCode.35": "UnsupportedPlatform", "InstallExitCode.36": "ServerTerminatedCVE20201416", "InstallExitCode.37": "UnpackFailed", "InstallExitCode.38": "ChangeDirFailed", "InstallExitCode.AlreadyInProgress": "24", "InstallExitCode.ServerDownloadFailed": "25", "InstallExitCode.NoDownloaderAvailable": "26", "InstallExitCode.NoDownloaderAvailableForStatusCheck": "30", "InstallExitCode.UnsupportedArch": "27", "InstallExitCode.StatusCheckFailed": "28", "InstallExitCode.NeedInsidersArch": "29", "InstallExitCode.ServerTransferFailed": "31", "InstallExitCode.ServerFailedToStart": "32", "InstallExitCode.NeedInsidersWindows": "33", "InstallExitCode.CreateInstallDirFailed": "34", "InstallExitCode.UnsupportedPlatform": "35", "InstallExitCode.ServerTerminatedCVE20201416": "36", "InstallExitCode.UnpackFailed": "37", "InstallExitCode.ChangeDirFailed": "38", "InstallUnpackCode.Success": "success", "InstallUnpackCode.Error": "error", "InstallUnpackCode.MissingFiles": "missingFiles", "uuid": "c5c02d40d1bb", "startMarker": "c5c02d40d1bb: running", "commitId": "d78a74bcdfad14d5d3b1b782f87255d802b57511", "quality": "stable", "token": "11111a11-1a11-11aa-a1a1-111a1a1a11a1", "vscodeAgentFolder": "$HOME/.vscode-server", "allowClientDownload": "1", "forceClientDownload": "0", "cliNameInArchive": "code", "ignoreWgetConfigFlag": " --no-config ", "ignoreCurlConfigFlag": " --disable ", "wgetTriesSegment": "--tries=1", "listenArgs": "--on-host=127.0.0.1 --on-port", "getDownloadServerStartTrigger": "c5c02d40d1bb:trigger_server_download", "getDownloadServerEndTrigger": "c5c02d40d1bb:trigger_server_download_end", "getProgressDownloading": "c5c02d40d1bb%%1%%", "getProgressInstalling": "c5c02d40d1bb%%2%%" } [10:13:35.372] Install and start server if needed [10:13:35.378] Checking ssh with "C:\Program Files (x86)\Eclipse Adoptium\jre-8.0.422.5\bin\ssh.exe -V" [10:13:35.381] Got error from ssh: spawn C:\Program Files (x86)\Eclipse Adoptium\jre-8.0.422.5\bin\ssh.exe ENOENT [10:13:35.381] Checking ssh with "C:\SIT_APPS\Miniconda3\ssh.exe -V" [10:13:35.382] Got error from ssh: spawn C:\SIT_APPS\Miniconda3\ssh.exe ENOENT [10:13:35.382] Checking ssh with "C:\SIT_APPS\Miniconda3\Library\mingw-w64\bin\ssh.exe -V" [10:13:35.383] Got error from ssh: spawn C:\SIT_APPS\Miniconda3\Library\mingw-w64\bin\ssh.exe ENOENT [10:13:35.383] Checking ssh with "C:\SIT_APPS\Miniconda3\Library\usr\bin\ssh.exe -V" [10:13:35.383] Got error from ssh: spawn C:\SIT_APPS\Miniconda3\Library\usr\bin\ssh.exe ENOENT [10:13:35.383] Checking ssh with "C:\SIT_APPS\Miniconda3\Library\bin\ssh.exe -V" [10:13:35.384] Got error from ssh: spawn C:\SIT_APPS\Miniconda3\Library\bin\ssh.exe ENOENT [10:13:35.384] Checking ssh with "C:\SIT_APPS\Miniconda3\Scripts\ssh.exe -V" [10:13:35.385] Got error from ssh: spawn C:\SIT_APPS\Miniconda3\Scripts\ssh.exe ENOENT [10:13:35.385] Checking ssh with "C:\WINDOWS\system32\ssh.exe -V" [10:13:35.386] Got error from ssh: spawn C:\WINDOWS\system32\ssh.exe ENOENT [10:13:35.386] Checking ssh with "C:\WINDOWS\ssh.exe -V" [10:13:35.387] Got error from ssh: spawn C:\WINDOWS\ssh.exe ENOENT [10:13:35.387] Checking ssh with "C:\WINDOWS\System32\Wbem\ssh.exe -V" [10:13:35.388] Got error from ssh: spawn C:\WINDOWS\System32\Wbem\ssh.exe ENOENT [10:13:35.388] Checking ssh with "C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe -V" [10:13:35.390] Got error from ssh: spawn C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT [10:13:35.390] Checking ssh with "C:\WINDOWS\System32\OpenSSH\ssh.exe -V" [10:13:35.437] > OpenSSH_for_Windows_8.6p1, LibreSSL 3.4.3 [10:13:35.443] Running script with connection command: "C:\WINDOWS\System32\OpenSSH\ssh.exe" -T -D 51050 localhost sh [10:13:35.444] Generated SSH command: 'type "C:\Users\MYUSERNAME\AppData\Local\Temp\vscode-linux-multi-line-command-localhost-58264258.sh" | "C:\WINDOWS\System32\OpenSSH\ssh.exe" -T -D 51050 localhost sh' [10:13:35.445] Terminal shell path: C:\WINDOWS\System32\cmd.exe [10:13:36.128] "install" terminal received data: "[?25lWarning: Permanently added '[localhost]:2222' (ED25519) to the list of known hosts. ]0;C:\WINDOWS\System32\cmd.exe[?25h" [10:13:36.129] Got some output, clearing connection timeout [10:13:36.652] "install" terminal received data: "c5c02d40d1bb: running Script executing under PID: 9985" [10:13:36.708] "install" terminal received data: "Installing to /home/MYUSERNAME/.vscode-server... c5c02d40d1bb%%1%% Downloading with wget wget is from busybox: no" [10:13:36.806] "install" terminal received data: "Program 'wget' appears to support flag '--no-config'" [10:13:36.837] "install" terminal received data: "wget download failed Proxy tunneling failed: ForbiddenUnable to establish SSL connection. printenv: REDACTED Trigger local server download c5c02d40d1bb:trigger_server_download" [10:13:36.850] "install" terminal received data: " artifact==cli-alpine-x64==" [10:13:36.865] "install" terminal received data: " destFolder==/home/MYUSERNAME/.vscode-server==[?25l destFolder2==/vscode-cli-d78a74bcdfad14d5d3b1b782f87255d802b57511.tar.gz== [?25h c5c02d40d1bb:trigger_server_download_end Waiting for client to transfer server archive... Waiting for /home/MYUSERNAME/.vscode-server/vscode-cli-d78a74bcdfad14d5d3b1b782f872 255d802b57511.tar.gz.done and vscode-server.tar.gz to exist " [10:13:36.866] Got request to download on client for {"artifact":"cli-alpine-x64","destPath":"/home/MYUSERNAME/.vscode-server/vscode-cli-d78a74bcdfad14d5d3b1b782f87255d802b57511.tar.gz"} [10:13:36.866] server download URL: https://update.code.visualstudio.com/commit:d78a74bcdfad14d5d3b1b782f87255d802b57511/cli-alpine-x64/stable [10:13:36.866] Downloading VS Code server locally... [10:13:37.132] Downloaded VS Code server to c:\Users\MYUSERNAME\AppData\Local\Temp\5da67073-f8c0-432d-90df-799055b978ac [10:13:37.133] Renamed VS Code server to c:\Users\MYUSERNAME\AppData\Local\Temp\vscode_server_1728029617132\vscode-cli-d78a74bcdfad14d5d3b1b782f87255d802b57511.tar.gz [10:13:37.133] Preparing to scp to host localhost [10:13:37.138] Checking ssh with "C:\Program Files (x86)\Eclipse Adoptium\jre-8.0.422.5\bin\ssh.exe -V" [10:13:37.140] Got error from ssh: spawn C:\Program Files (x86)\Eclipse Adoptium\jre-8.0.422.5\bin\ssh.exe ENOENT [10:13:37.140] Checking ssh with "C:\SIT_APPS\Miniconda3\ssh.exe -V" [10:13:37.141] Got error from ssh: spawn C:\SIT_APPS\Miniconda3\ssh.exe ENOENT [10:13:37.141] Checking ssh with "C:\SIT_APPS\Miniconda3\Library\mingw-w64\bin\ssh.exe -V" [10:13:37.142] Got error from ssh: spawn C:\SIT_APPS\Miniconda3\Library\mingw-w64\bin\ssh.exe ENOENT [10:13:37.142] Checking ssh with "C:\SIT_APPS\Miniconda3\Library\usr\bin\ssh.exe -V" [10:13:37.143] Got error from ssh: spawn C:\SIT_APPS\Miniconda3\Library\usr\bin\ssh.exe ENOENT [10:13:37.143] Checking ssh with "C:\SIT_APPS\Miniconda3\Library\bin\ssh.exe -V" [10:13:37.143] Got error from ssh: spawn C:\SIT_APPS\Miniconda3\Library\bin\ssh.exe ENOENT [10:13:37.144] Checking ssh with "C:\SIT_APPS\Miniconda3\Scripts\ssh.exe -V" [10:13:37.144] Got error from ssh: spawn C:\SIT_APPS\Miniconda3\Scripts\ssh.exe ENOENT [10:13:37.144] Checking ssh with "C:\WINDOWS\system32\ssh.exe -V" [10:13:37.145] Got error from ssh: spawn C:\WINDOWS\system32\ssh.exe ENOENT [10:13:37.145] Checking ssh with "C:\WINDOWS\ssh.exe -V" [10:13:37.146] Got error from ssh: spawn C:\WINDOWS\ssh.exe ENOENT [10:13:37.146] Checking ssh with "C:\WINDOWS\System32\Wbem\ssh.exe -V" [10:13:37.147] Got error from ssh: spawn C:\WINDOWS\System32\Wbem\ssh.exe ENOENT [10:13:37.147] Checking ssh with "C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe -V" [10:13:37.148] Got error from ssh: spawn C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT [10:13:37.148] Checking ssh with "C:\WINDOWS\System32\OpenSSH\ssh.exe -V" [10:13:37.204] > OpenSSH_for_Windows_8.6p1, LibreSSL 3.4.3 [10:13:37.207] Expecting scp to be next to ssh at C:\WINDOWS\System32\OpenSSH\scp.exe [10:13:37.208] Testing scp with "C:\WINDOWS\System32\OpenSSH\scp.exe" [10:13:37.274] scp exited with code: 1 [10:13:37.274] Got stderr from scp: usage: scp [-346ABCpqrTv] [-c cipher] [-F ssh_config] [-i identity_file] [-J destination] [-l limit] [-o ssh_option] [-P port] [-S program] source ... target [10:13:37.274] Copying file to remote with "C:\WINDOWS\System32\OpenSSH\scp.exe" "vscode-cli-d78a74bcdfad14d5d3b1b782f87255d802b57511.tar.gz" "vscode-cli-d78a74bcdfad14d5d3b1b782f87255d802b57511.tar.gz.done" localhost:"/home/MYUSERNAME/.vscode-server" [10:13:37.274] Using cwd: file:///c%3A/Users/MYUSERNAME/AppData/Local/Temp/vscode_server_1728029617132 [10:13:37.274] Terminal shell path: C:\WINDOWS\System32\cmd.exe [10:13:37.687] "Copy server to host" terminal received data: "[?25lWarning: Permanently added '[localhost]:2222' (ED25519) to the list of known hosts. ]0;C:\WINDOWS\System32\cmd.exe[?25h" [10:13:38.207] "Copy server to host" terminal received data: "vscode-cli-d78a74bcdfad14d5d3b1b782f87255d802b57511.tar.gz 0% 0 0.0KB/" [10:13:39.211] "Copy server to host" terminal received data: " vscode-cli-d78a74bcdfad14d5d3b1b782f87255d802b57511.tar.gz 68% 5856KB 5.7MB/" [10:13:39.866] "install" terminal received data: " " [10:13:40.406] "Copy server to host" terminal received data: " vscode-cli-d78a74bcdfad14d5d3b1b782f87255d802b57511.tar.gz 100% 8578KB 3.8MB/" [10:13:40.440] "Copy server to host" terminal received data: "vscode-cli-d78a74bcdfad14d5d3b1b782f87255d802b57511.tar.gz.done 0% 0 0" [10:13:40.481] "Copy server to host" terminal received data: " vscode-cli-d78a74bcdfad14d5d3b1b782f87255d802b57511.tar.gz.done 100% 9 0" [10:13:42.370] "Copy server to host" terminal command done [10:13:42.838] "install" terminal received data: "Found flag and server on host" [10:13:42.847] "install" terminal received data: "" [10:13:42.907] "install" terminal received data: "c5c02d40d1bb%%2%% tar --version: tar (GNU tar) 1.26 Copyright (C) 2011 Free Software Foundation, Inc.[?25l License GPLv3+: GNU GPL version 3 or later . [?25h This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by John Gilmore and Jay Fenlason." [10:13:42.918] "install" terminal received data: "" [10:13:43.268] "install" terminal received data: "code 1.94.0 (commit d78a74bcdfad14d5d3b1b782f87255d802b57511) Starting VS Code CLI... printenv:" REDACTED [10:13:43.280] "install" terminal received data: " Spawned remote CLI: 10200 cat: /home/MYUSERNAME/.vscode-server/.cli.d78a74bcdfad14d5d3b1b782f87255d802b57511. .log: No such file or directory" [10:13:43.298] "install" terminal received data: "" [10:13:43.306] "install" terminal received data: "Waiting for server log..." [10:13:43.375] "install" terminal received data: "Waiting for server log... c5c02d40d1bb: start listeningOn==127.0.0.1:34439== osReleaseId==amzn== arch==x86_64== vscodeArch==x64== bitness==64== tmpDir==/run/user/MYUSERID== platform==linux== unpackResult==success== didLocalDownload==1== downloadTime==== installTime==350== serverStartTime==80== execServerToken==11111a11-1a11-11aa-a1a1-111a1a1a11a1== platformDownloadPath==cli-alpine-x64== c5c02d40d1bb: end" [10:13:43.376] Received install output: listeningOn==127.0.0.1:34439== osReleaseId==amzn== arch==x86_64== vscodeArch==x64== bitness==64== tmpDir==/run/user/MYUSERID== platform==linux== unpackResult==success== didLocalDownload==1== downloadTime==== installTime==350== serverStartTime==80== execServerToken==11111a11-1a11-11aa-a1a1-111a1a1a11a1== platformDownloadPath==cli-alpine-x64== [10:13:43.376] Remote server is listening on port 34439 [10:13:43.376] Parsed server configuration: {"serverConfiguration":{"remoteListeningOn":{"port":34439},"osReleaseId":"amzn","arch":"x86_64","tmpDir":"/run/user/MYUSERID","platform":"linux","execServerToken":"11111a11-1a11-11aa-a1a1-111a1a1a11a1"},"installTime":350,"serverStartTime":80,"didLocalDownload":true,"installUnpackCode":"success"} [10:13:43.383] Starting forwarding server. local port 51054 -> socksPort 51050 -> remotePort 34439 [10:13:43.384] Forwarding server listening on port 51054 [10:13:43.385] Waiting for ssh tunnel to be ready [10:13:43.387] [Forwarding server port 51054] Got connection 0 [10:13:43.391] Tunneled port 34439 to local port 51054 [10:13:43.391] Resolved "ssh-remote+localhost" to "port 51054" [10:13:43.404] Initizing new exec server for ssh-remote+localhost [10:13:43.404] Resolving exec server at port 51054 [10:13:43.427] "install" terminal received data: "" [10:13:43.431] [Forwarding server port 51054] Got connection 1 [10:13:43.582] Exec server for ssh-remote+localhost created and cached [10:13:43.582] Updating terminal environments: {} [10:13:43.586] TELEMETRY: {"eventName":"resolver","properties":{"osReleaseId":"amzn","arch":"x86_64","askedPw":"0","askedPassphrase":"0","asked2fa":"0","askedHostKey":"0","remoteInConfigFile":"0","gotUnrecognizedPrompt":"0","dynamicForwarding":"1","localServer":"0","didLocalDownload":"1","installUnpackCode":"1","outcome":"success"},"measures":{"resolveAttempts":1,"retries":1,"isExecServer":1,"timing.totalResolveTime":8241,"timing.preSshTime":100,"timing.establishSshTime":1207,"timing.scriptTime":7931,"timing.localDownloadTime":267,"timing.scpTime":5096,"timing.installTime":350,"timing.serverStartTime":80}} [10:13:43.587] ------ [10:13:43.627] [server] Checking /home/MYUSERNAME/.vscode-server/cli/servers/Stable-d78a74bcdfad14d5d3b1b782f87255d802b57511/log.txt and /home/MYUSERNAME/.vscode-server/cli/servers/Stable-d78a74bcdfad14d5d3b1b782f87255d802b57511/pid.txt for a running server... [10:13:43.716] [server] Installing and setting up Visual Studio Code Server... [10:14:44.281] [server] Error installing server: error requesting https://update.code.visualstudio.com/commit:d78a74bcdfad14d5d3b1b782f87255d802b57511/server-linux-legacy-x64/stable: 407 ```

Anything else?

Another peculiar thing: /home/MYUSER/.vscode-server/cli/servers/Stable-d78a74bcdfad14d5d3b1b782f87255d802b57511/ does not exist on my remote host. Instead, I have a directory called /home/MYUSER/.vscode-server/cli/servers/Stable-d78a74bcdfad14d5d3b1b782f87255d802b57511.staging/ (note the .staging suffix)

moritzwilksch commented 1 month ago

I think setting remote.SSH.useExecServer to false as described here might solve this issue. Can't say for sure because on my machine the server then fails to start, but this is most likely due to an outdated glibc on my remote box. If I manually download, scp, and untar the legacy vscode-server-linux-legacy-x64.tar.gz and disable useExecServer then I can connect!

Is the fact that we try to access the internet even during an install that is correctly detected to be "offline" a regression in the newest version of the execServer? The discussion in #8926 seems to suggest that it is bound to become the new default so it'd be great if offline installs continued to work :)

JammyJellyfish commented 1 month ago

I have the same issue but only with version 1.94.x, downgrading to 1.93.1 solved the issue for me. As it seems to be related to the vscode version, I created an issue in the main repo as well.

moritzwilksch commented 1 month ago

I'd assume that the newer VSCode version implicitly uses a newer remote server as well, so the root cause is probably with the new remote server trying to contact the internet.

JammyJellyfish commented 1 month ago

FYI: It is working now on my machine after executing Remote-SSH: Uninstall VS Code Server from Host... with a working Version (1.93.1), then upgrading to 1.94.1. On next connection the server was copied with scp without any issue.

joshspicer commented 1 month ago

Thanks all for the details. There have been some VS Code server issues reported that folks are sharing VS Code 1.94.2 (released this morning) fixes. If folks are repro'ing similar issues after updating please share your logs

I'm confirming whether we currently support offline remote hosts when useExecServer is enabled. How that typically works is that we install a "bootstrap" program (copied via SCP if necessary) and that program handles downloading the appropriate VS Code server.

moritzwilksch commented 1 month ago

Thanks for getting back to us @joshspicer! The issue persists even with the most recent VSCode 1.95 version, logs look similar to what I shared initialy: VSCode attempts to connect to the internet on the remote instance which prompts me for a proxy configuration in my setup and subsequently fails to install/start the remote server.

I'm confirming whether we currently support offline remote hosts when useExecServer is enabled.

Are you planning to support both useExecServer true/false or is one bound to become the default at some point? Connecting to offline remote hosts is a crucial feature in many enterprise setups. Understandable that this might ship later if the new execServer is still in development, just want to flag that many people rely on this functionality, so please don't deprecate the current fall-back option before we have an alternative :)

joshspicer commented 1 month ago

useExecServer is bound to eventually be the only option and we've been trying to focus on addressing issues in that mode first. No plans to remove the fallback as of now, as you know there are a lot of edge cases not covered by exec mode 🙂

Thank you for the additional data

joshspicer commented 4 weeks ago

Thanks for your patience. I've done some more experimentation. With the default Remote - SSH settings on Windows 11 (useExecServer == enabled) I am able to connect OK to an "airgapped" machine

@moritzwilksch would you be able to share more details/code snippets on your proxy configuration? With exec server on, it should be able to use your local host to fetch the appropriate server assets. Looking at:

[10:14:44.281] [server] Error installing server: error requesting https://update.code.visualstudio.com/commit:d78a74bcdfad14d5d3b1b782f87255d802b57511/server-linux-legacy-x64/stable: 407 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

It appears your proxy is interfering with that process.

I can see that earlier we were able to fetch the "exec server" from the web, so the issue is some incompatibility with your proxy and how we do this download server step above.

[10:13:36.866] Got request to download on client for {"artifact":"cli-alpine-x64","destPath":"/home/MYUSERNAME/.vscode-server/vscode-cli-d78a74bcdfad14d5d3b1b782f87255d802b57511.tar.gz"}
[10:13:36.866] server download URL: https://update.code.visualstudio.com/commit:d78a74bcdfad14d5d3b1b782f87255d802b57511/cli-alpine-x64/stable
[10:13:36.866] Downloading VS Code server locally...
[10:13:37.132] Downloaded VS Code server to c:\Users\MYUSERNAME\AppData\Local\Temp\5da67073-f8c0-432d-90df-799055b978ac
moritzwilksch commented 3 weeks ago

Interesting! Could it be possible that the local download process does not respect the proxy config provided in the HTTP(S)_PROXY env variables? In my setup, the local windows machine is running a px-proxy (in a cygwin shell, though) to connect to the proxy server and exports:

https_proxy=http://localhost:3128
http_proxy=http://localhost:3128

EDIT: Just figured out that setting "http.proxy": "http://localhost:3128" fixes the problem! I don't think I had to set this beforehand, but I could be mistaken and the setting got lost during the update.

Anyways, thanks for your feedback, the remote development features are a killer feature and a joy to use!

joshspicer commented 3 weeks ago

Awesome - thank you for your patience and help debugging! Off the top of my head I don't believe this behavior would've changed in the last few release (I'm not certain though 🙂 )

I've added this to an initative i'm working on to improve error output - your configuration is one that we should be able to detect and provide suggestions on programatically. Thanks!