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.68k stars 296 forks source link

[Remote-SSH Bug]: failed to connect with setting "remote.SSH.defaultExtensions" and profile function #10376

Closed 74th closed 2 weeks ago

74th commented 1 month ago

Is there an existing issue for this bug?

Required Troubleshooting Steps

Connect Locally

It connects successfully

->

I have always found the Remote-SSH function convenient to use. Thank you for all your help.

When using the profile feature in combination with the “emote.SSH.defaultExtensions” setting, an error occurs when trying to open another directory using the profile and the directory cannot be opened.

Expected Behavior

To open a directory using a profile without error.

Steps To Reproduce

  1. add "remote.SSH.defaultExtensions" to user settings.json
// User/settings.json
{
    "remote.SSH.defaultExtensions": [
        "EditorConfig.EditorConfig",
        "MS-vsliveshare.vsliveshare"
    ]
}
  1. create new profile

Image

  1. run command "Connect to Host" (This action is succeeded.)
  2. run code ~/tmp in remote terminal
  3. run command "Profiles: Switch Profiles" and select "test" profile
  4. click "Reload" button

Image

This did not occur when using only default profile.

This did not occur when the setting was left empty.

{
    "remote.SSH.defaultExtensions": [
        // "EditorConfig.EditorConfig",
        // "MS-vsliveshare.vsliveshare"
    ]
}

This did not occur when using Remote-SSH 0.114.3.

Once this occurred, I had to kill all code-server related processes and delete the .vscode-server directory to get it back.

Remote-SSH Log

Remote-SSH Log

``` [22:30:59.628] Log Level: 2 [22:30:59.639] VS Code version: 1.94.1 [22:30:59.639] Remote-SSH version: remote-ssh@0.115.0 [22:30:59.639] darwin arm64 [22:30:59.640] SSH Resolver called for "ssh-remote+reah", attempt 1 [22:30:59.640] "remote.SSH.useLocalServer": true [22:30:59.640] "remote.SSH.useExecServer": true [22:30:59.641] "remote.SSH.path": undefined [22:30:59.641] "remote.SSH.configFile": undefined [22:30:59.641] "remote.SSH.useFlock": true [22:30:59.642] "remote.SSH.lockfilesInTmp": false [22:30:59.642] "remote.SSH.localServerDownload": auto [22:30:59.642] "remote.SSH.remoteServerListenOnSocket": false [22:30:59.642] "remote.SSH.showLoginTerminal": false [22:30:59.642] "remote.SSH.defaultExtensions": ["asvetliakov.vscode-neovim","ms-vsliveshare.vsliveshare","editorconfig.editorconfig","mhutchie.git-graph","eamodio.gitlens","github.vscode-pull-request-github","esbenp.prettier-vscode","streetsidesoftware.code-spell-checker","hediet.vscode-drawio"] [22:30:59.642] "remote.SSH.loglevel": 2 [22:30:59.642] "remote.SSH.enableDynamicForwarding": true [22:30:59.643] "remote.SSH.enableRemoteCommand": false [22:30:59.643] "remote.SSH.serverPickPortsFromRange": {} [22:30:59.643] "remote.SSH.serverInstallPath": {} [22:30:59.643] "remote.SSH.permitPtyAllocation": false [22:30:59.643] "remote.SSH.preferredLocalPortRange: undefined [22:30:59.643] "remote.SSH.useCurlAndWgetConfigurationFiles: false [22:30:59.647] SSH Resolver called for host: reah [22:30:59.647] Setting up SSH remote "reah" [22:30:59.651] Acquiring local install lock: /var/folders/n3/zcknft2d5sl6m2cp_g62233h0000gn/T/vscode-remote-ssh-d2dfaa11-install.lock [22:30:59.652] Looking for existing server data file at /Users/nnyn/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-d2dfaa11-e10f2369d0d9614a452462f2e01cdc4aa9486296-0.115.0-es/data.json [22:30:59.653] Found existing data file [22:30:59.653] Found local server running: {"remoteListeningOn":{"port":33959},"osReleaseId":"ubuntu","arch":"aarch64","tmpDir":"/run/user/1000","platform":"linux","execServerToken":"2295fab7-9555-4250-97f5-7e061e8874b8","pid":9847,"ipcHandlePath":"/var/folders/n3/zcknft2d5sl6m2cp_g62233h0000gn/T/vscode-ssh-askpass-063d8e1cef7a27cd63624a789d0b86eb14810371.sock","socksPort":50408,"startupTime":1728480641093} [22:30:59.658] Found running server - short-circuiting install [22:30:59.660] Starting forwarding server. local port 50422 -> socksPort 50408 -> remotePort 33959 [22:30:59.660] Forwarding server listening on port 50422 [22:30:59.660] Waiting for ssh tunnel to be ready [22:30:59.661] [Forwarding server port 50422] Got connection 0 [22:30:59.662] Tunneled port 33959 to local port 50422 [22:30:59.662] Resolved "ssh-remote+reah" to "port 50422" [22:30:59.668] Initizing new exec server for ssh-remote+reah [22:30:59.668] Resolving exec server at port 50422 [22:30:59.670] [Forwarding server port 50422] Got connection 1 [22:30:59.856] Exec server for ssh-remote+reah created and cached [22:30:59.863] ------ [22:30:59.874] [server] Checking /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/log.txt and /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/pid.txt for a running server... [22:30:59.914] [server] Found running server (pid=32625) [22:30:59.915] [server] Installing extensions... [22:31:00.265] [server] Checking /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/log.txt and /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/pid.txt for a running server... [22:31:00.270] [server] Found running server (pid=32625) [22:31:00.271] [server] Installing extensions... [22:31:00.665] [server] Checking /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/log.txt and /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/pid.txt for a running server... [22:31:00.667] [server] Found running server (pid=32625) [22:31:00.672] ------ [22:31:00.672] SSH Resolver called for "ssh-remote+reah", attempt 2, (Reconnection) [22:31:00.673] SSH Resolver called for host: reah [22:31:00.674] Setting up SSH remote "reah" [22:31:00.675] Acquiring local install lock: /var/folders/n3/zcknft2d5sl6m2cp_g62233h0000gn/T/vscode-remote-ssh-d2dfaa11-install.lock [22:31:00.676] Looking for existing server data file at /Users/nnyn/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-d2dfaa11-e10f2369d0d9614a452462f2e01cdc4aa9486296-0.115.0-es/data.json [22:31:00.676] Found existing data file [22:31:00.676] Found local server running: {"remoteListeningOn":{"port":33959},"osReleaseId":"ubuntu","arch":"aarch64","tmpDir":"/run/user/1000","platform":"linux","execServerToken":"2295fab7-9555-4250-97f5-7e061e8874b8","pid":9847,"ipcHandlePath":"/var/folders/n3/zcknft2d5sl6m2cp_g62233h0000gn/T/vscode-ssh-askpass-063d8e1cef7a27cd63624a789d0b86eb14810371.sock","socksPort":50408,"startupTime":1728480641093} [22:31:00.677] Running server is stale. Ignoring [22:31:00.677] Using commit id "e10f2369d0d9614a452462f2e01cdc4aa9486296" and quality "stable" for server [22:31:00.680] 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": "ce7f01dcebf0", "startMarker": "ce7f01dcebf0: running", "commitId": "e10f2369d0d9614a452462f2e01cdc4aa9486296", "quality": "stable", "token": "1a1aaaa1-11a1-1111-111a-a11aa111a1a1", "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": "ce7f01dcebf0:trigger_server_download", "getDownloadServerEndTrigger": "ce7f01dcebf0:trigger_server_download_end", "getProgressDownloading": "ce7f01dcebf0%%1%%", "getProgressInstalling": "ce7f01dcebf0%%2%%" } [22:31:00.684] Install and start server if needed [22:31:00.688] PATH: /Users/nnyn/.sdkman/candidates/java/current/bin:/Users/nnyn/.sdkman/candidates/gradle/current/bin:/Users/nnyn/.rd/bin:/Users/nnyn/bin:/Users/nnyn/ghq/github.com/74th/dotfiles/bin/macos:/Users/nnyn/ghq/github.com/74th/mycheatsheets/bin:/Users/nnyn/ghq/github.com/74th/dotfiles/bin:/Users/nnyn/.cargo/bin:/Users/nnyn/.pyenv/bin:/Users/nnyn/.rye/shims:/Users/nnyn/go/bin:/Users/nnyn/.pyenv/shims:/Users/nnyn/.nodenv/shims:/Users/nnyn/npm/bin:/Users/nnyn/google-cloud-sdk/bin:/Users/nnyn/Library/Python/3.9/bin:/Users/nnyn/.local/bin:/Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/bin:/usr/local/sbin:/opt/homebrew/bin:/opt/local/bin:/usr/local/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 [22:31:00.688] Checking ssh with "ssh -V" [22:31:00.696] > OpenSSH_9.7p1, LibreSSL 3.3.6 [22:31:00.698] askpass server listening on /var/folders/n3/zcknft2d5sl6m2cp_g62233h0000gn/T/vscode-ssh-askpass-90a634f4def14116314be0b7a76ed2228dca28a9.sock [22:31:00.699] Spawning local server with {"serverId":1,"ipcHandlePath":"/var/folders/n3/zcknft2d5sl6m2cp_g62233h0000gn/T/vscode-ssh-askpass-8ac2617d591cd13543c7d30d49bae83932c80039.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","50427","-o","ConnectTimeout=15","reah"],"serverDataFolderName":".vscode-server","dataFilePath":"/Users/nnyn/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-d2dfaa11-e10f2369d0d9614a452462f2e01cdc4aa9486296-0.115.0-es/data.json"} [22:31:00.699] Local server env: {"SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.rVTt2s5uKB/Listeners","SHELL":"/bin/bash","DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/nnyn/.vscode/extensions/ms-vscode-remote.remote-ssh-0.115.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/nnyn/.vscode/extensions/ms-vscode-remote.remote-ssh-0.115.0/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/n3/zcknft2d5sl6m2cp_g62233h0000gn/T/vscode-ssh-askpass-90a634f4def14116314be0b7a76ed2228dca28a9.sock"} [22:31:00.700] Spawned 9898 [22:31:00.700] Using connect timeout of 17 seconds [22:31:00.708] [server] Installing extensions... [22:31:00.779] > local-server-1> Running ssh connection command: ssh -v -T -D 50427 -o ConnectTimeout=15 reah [22:31:00.781] > local-server-1> Spawned ssh, pid=9921 [22:31:00.784] stderr> OpenSSH_9.7p1, LibreSSL 3.3.6 [22:31:00.823] stderr> debug1: Server host key: ssh-ed25519 SHA256:7QJGctYjHFT8+3+ZkXMUlitghlVawBYMUAbkHxu175w [22:31:00.915] stderr> Authenticated to 192.168.1.194 ([192.168.1.194]:22) using "publickey". [22:31:01.291] > ___ ____ _ ____ ____ _ > / _ \| _ \(_) | ___| | _ \| |_ _ ___ > | | | | |_) | | |___ \ | |_) | | | | / __| > | |_| | __/| | ___) | | __/| | |_| \__ \ > \___/|_| |_| |____/ |_| |_|\__,_|___/ > > Welcome to Armbian 24.5.2 Noble with Linux 6.1.43-vendor-rk35xx > > System load: 5% Up time: 10:05 Local users: 13 > Memory usage: 4% of 15.35G IP: 172.20.0.1 172.18.0.1 172.19.0.1 172.17.0.1 192.168.1.194 > CPU temp: 38°C Usage of /: 22% of 454G > RX today: 1.2 GiB > > Tip of the day: Support our work and become a sponsor https://github.com/sponsors/armbian > > [ 39 security updates available, 135 updates total: apt upgrade ] > Last check: 2024-10-09 12:41 [22:31:01.304] > ready: ce7f01dcebf0 [22:31:01.307] > Linux 6.1.43-vendor-rk35xx #1 SMP Thu Jun 20 10:33:36 UTC 2024 [22:31:01.310] Platform: linux [22:31:01.311] > /bin/bash [22:31:01.314] Parent Shell: bash [22:31:01.314] Parent Shell pid: 9898 [22:31:01.316] > 33285 [22:31:01.316] Waiting for pid of spawned 'sh' subshell: '33285'... [22:31:01.319] > ce7f01dcebf0: running > Script executing under PID: 33285 [22:31:01.332] > Found existing installation at /home/nnyn/.vscode-server... > Starting VS Code CLI... > printenv: [22:31:01.334] > LANGUAGE=en_US.UTF-8 > USER=nnyn > SSH_CLIENT=192.168.1.4 50428 22 > XDG_SESSION_TYPE=tty > SHLVL=1 > HOME=/home/nnyn > LC_CTYPE=en_US.UTF-8 > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus > DEBUGINFOD_URLS=https://debuginfod.ubuntu.com > LOGNAME=nnyn > _=/usr/bin/sh > XDG_SESSION_CLASS=user > XDG_SESSION_ID=114 > PATH=/home/nnyn/.cargo/bin:/home/nnyn/.rye/shims:/home/nnyn/.local/bin:/home/nnyn/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin > XDG_RUNTIME_DIR=/run/user/1000 > LANG=en_US.UTF-8 > LC_MESSAGES=en_US.UTF-8 > SHELL=/bin/bash > PWD=/home/nnyn > LC_ALL=en_US.UTF-8 > SSH_CONNECTION=192.168.1.4 50428 192.168.1.194 22 [22:31:01.336] > Removing old logfile at /home/nnyn/.vscode-server/.cli.e10f2369d0d9614a452462f2e01cdc4aa9486296.log [22:31:01.337] > Spawned remote CLI: 33303 [22:31:01.341] > Waiting for server log... [22:31:01.376] > Waiting for server log... [22:31:01.415] > ce7f01dcebf0: start > listeningOn==127.0.0.1:39173== > osReleaseId==ubuntu== > arch==aarch64== > vscodeArch==arm64== > bitness==64== > tmpDir==/run/user/1000== > platform==linux== > unpackResult==== > didLocalDownload==0== > downloadTime==== > installTime==== > serverStartTime==79== > execServerToken==1a1aaaa1-11a1-1111-111a-a11aa111a1a1== > platformDownloadPath==cli-alpine-arm64== > ce7f01dcebf0: end [22:31:01.415] Received install output: listeningOn==127.0.0.1:39173== osReleaseId==ubuntu== arch==aarch64== vscodeArch==arm64== bitness==64== tmpDir==/run/user/1000== platform==linux== unpackResult==== didLocalDownload==0== downloadTime==== installTime==== serverStartTime==79== execServerToken==1a1aaaa1-11a1-1111-111a-a11aa111a1a1== platformDownloadPath==cli-alpine-arm64== [22:31:01.416] Remote server is listening on port 39173 [22:31:01.416] Parsed server configuration: {"serverConfiguration":{"remoteListeningOn":{"port":39173},"osReleaseId":"ubuntu","arch":"aarch64","tmpDir":"/run/user/1000","platform":"linux","execServerToken":"1a1aaaa1-11a1-1111-111a-a11aa111a1a1"},"serverStartTime":79,"installUnpackCode":""} [22:31:01.416] ** Note: Support for architecture "aarch64" is in preview ** [22:31:01.417] Persisting server connection details to /Users/nnyn/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-d2dfaa11-e10f2369d0d9614a452462f2e01cdc4aa9486296-0.115.0-es/data.json [22:31:01.419] Starting forwarding server. local port 50429 -> socksPort 50427 -> remotePort 39173 [22:31:01.419] Forwarding server listening on port 50429 [22:31:01.420] Waiting for ssh tunnel to be ready [22:31:01.420] Tunneled port 39173 to local port 50429 [22:31:01.420] Resolved "ssh-remote+reah" to "port 50429" [22:31:01.421] [Forwarding server port 50429] Got connection 0 [22:31:01.423] Verified and reusing cached exec server for ssh-remote+reah [22:31:01.425] ------ [22:31:01.429] [server] Checking /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/log.txt and /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/pid.txt for a running server... [22:31:01.429] [server] Checking /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/log.txt and /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/pid.txt for a running server... [22:31:01.475] [server] Found running server (pid=32625) [22:31:01.475] [server] Found running server (pid=32625) [22:31:01.475] [server] Installing extensions... [22:31:01.475] [server] Installing extensions... [22:31:01.837] [server] Checking /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/log.txt and /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/pid.txt for a running server... [22:31:01.837] [server] Checking /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/log.txt and /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/pid.txt for a running server... [22:31:01.838] [server] Found running server (pid=32625) [22:31:01.838] [server] Found running server (pid=32625) [22:31:01.839] [server] Installing extensions... [22:31:01.839] [server] Installing extensions... [22:31:01.841] ------ [22:31:01.841] SSH Resolver called for "ssh-remote+reah", attempt 3, (Reconnection) [22:31:01.841] SSH Resolver called for host: reah [22:31:01.841] Setting up SSH remote "reah" [22:31:01.842] Acquiring local install lock: /var/folders/n3/zcknft2d5sl6m2cp_g62233h0000gn/T/vscode-remote-ssh-d2dfaa11-install.lock [22:31:01.843] Looking for existing server data file at /Users/nnyn/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-d2dfaa11-e10f2369d0d9614a452462f2e01cdc4aa9486296-0.115.0-es/data.json [22:31:01.843] Found existing data file [22:31:01.843] Found local server running: {"remoteListeningOn":{"port":39173},"osReleaseId":"ubuntu","arch":"aarch64","tmpDir":"/run/user/1000","platform":"linux","execServerToken":"2d8bdca6-79b2-4529-852e-c23db176d9c8","pid":9898,"ipcHandlePath":"/var/folders/n3/zcknft2d5sl6m2cp_g62233h0000gn/T/vscode-ssh-askpass-8ac2617d591cd13543c7d30d49bae83932c80039.sock","socksPort":50427,"startupTime":1728480660700} [22:31:01.844] Found running server - short-circuiting install [22:31:01.845] Starting forwarding server. local port 50433 -> socksPort 50427 -> remotePort 39173 [22:31:01.846] Forwarding server listening on port 50433 [22:31:01.846] Waiting for ssh tunnel to be ready [22:31:01.846] Tunneled port 39173 to local port 50433 [22:31:01.846] Resolved "ssh-remote+reah" to "port 50433" [22:31:01.847] [Forwarding server port 50433] Got connection 0 [22:31:01.848] Verified and reusing cached exec server for ssh-remote+reah [22:31:01.849] ------ [22:31:02.246] [server] Checking /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/log.txt and /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/pid.txt for a running server... [22:31:02.246] [server] Checking /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/log.txt and /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/pid.txt for a running server... [22:31:02.246] [server] Checking /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/log.txt and /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/pid.txt for a running server... [22:31:02.246] [server] Found running server (pid=32625) [22:31:02.246] [server] Found running server (pid=32625) [22:31:02.246] [server] Found running server (pid=32625) [22:31:02.246] [server] Installing extensions... [22:31:02.246] [server] Installing extensions... [22:31:02.246] [server] Installing extensions... [22:31:02.661] [server] Checking /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/log.txt and /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/pid.txt for a running server... [22:31:02.661] [server] Checking /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/log.txt and /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/pid.txt for a running server... [22:31:02.661] [server] Checking /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/log.txt and /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/pid.txt for a running server... [22:31:02.662] [server] Found running server (pid=32625) [22:31:02.662] [server] Found running server (pid=32625) [22:31:02.663] [server] Found running server (pid=32625) [22:31:02.663] [server] Installing extensions... [22:31:02.663] [server] Installing extensions... [22:31:02.663] [server] Installing extensions... [22:31:02.665] ------ [22:31:02.665] SSH Resolver called for "ssh-remote+reah", attempt 4, (Reconnection) [22:31:02.666] SSH Resolver called for host: reah [22:31:02.666] Setting up SSH remote "reah" [22:31:02.667] Acquiring local install lock: /var/folders/n3/zcknft2d5sl6m2cp_g62233h0000gn/T/vscode-remote-ssh-d2dfaa11-install.lock [22:31:02.667] Looking for existing server data file at /Users/nnyn/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-d2dfaa11-e10f2369d0d9614a452462f2e01cdc4aa9486296-0.115.0-es/data.json [22:31:02.668] Found existing data file [22:31:02.668] Found local server running: {"remoteListeningOn":{"port":39173},"osReleaseId":"ubuntu","arch":"aarch64","tmpDir":"/run/user/1000","platform":"linux","execServerToken":"2d8bdca6-79b2-4529-852e-c23db176d9c8","pid":9898,"ipcHandlePath":"/var/folders/n3/zcknft2d5sl6m2cp_g62233h0000gn/T/vscode-ssh-askpass-8ac2617d591cd13543c7d30d49bae83932c80039.sock","socksPort":50427,"startupTime":1728480660700} [22:31:02.669] Found running server - short-circuiting install [22:31:02.670] Starting forwarding server. local port 50438 -> socksPort 50427 -> remotePort 39173 [22:31:02.670] Forwarding server listening on port 50438 [22:31:02.670] Waiting for ssh tunnel to be ready [22:31:02.670] Tunneled port 39173 to local port 50438 [22:31:02.670] Resolved "ssh-remote+reah" to "port 50438" [22:31:02.671] [Forwarding server port 50438] Got connection 0 [22:31:02.672] Verified and reusing cached exec server for ssh-remote+reah [22:31:02.673] ------ [22:31:03.080] [server] Checking /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/log.txt and /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/pid.txt for a running server... [22:31:03.080] [server] Checking /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/log.txt and /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/pid.txt for a running server... [22:31:03.080] [server] Checking /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/log.txt and /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/pid.txt for a running server... [22:31:03.080] [server] Checking /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/log.txt and /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/pid.txt for a running server... [22:31:03.080] [server] Found running server (pid=32625) [22:31:03.081] [server] Found running server (pid=32625) [22:31:03.081] [server] Found running server (pid=32625) [22:31:03.081] [server] Found running server (pid=32625) [22:31:03.081] [server] Installing extensions... [22:31:03.081] [server] Installing extensions... [22:31:03.081] [server] Installing extensions... [22:31:03.081] [server] Installing extensions... [22:31:03.578] [server] Checking /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/log.txt and /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/pid.txt for a running server... [22:31:03.578] [server] Checking /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/log.txt and /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/pid.txt for a running server... [22:31:03.579] [server] Checking /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/log.txt and /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/pid.txt for a running server... [22:31:03.579] [server] Checking /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/log.txt and /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/pid.txt for a running server... [22:31:03.579] [server] Found running server (pid=32625) [22:31:03.579] [server] Found running server (pid=32625) [22:31:03.579] [server] Found running server (pid=32625) [22:31:03.580] [server] Found running server (pid=32625) [22:31:03.580] [server] Installing extensions... [22:31:03.580] [server] Installing extensions... [22:31:03.580] [server] Installing extensions... [22:31:03.580] [server] Installing extensions... [22:31:03.586] ------ [22:31:03.586] SSH Resolver called for "ssh-remote+reah", attempt 5, (Reconnection) [22:31:03.587] SSH Resolver called for host: reah [22:31:03.587] Setting up SSH remote "reah" [22:31:03.589] Acquiring local install lock: /var/folders/n3/zcknft2d5sl6m2cp_g62233h0000gn/T/vscode-remote-ssh-d2dfaa11-install.lock [22:31:03.590] Looking for existing server data file at /Users/nnyn/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-d2dfaa11-e10f2369d0d9614a452462f2e01cdc4aa9486296-0.115.0-es/data.json [22:31:03.590] Found existing data file [22:31:03.590] Found local server running: {"remoteListeningOn":{"port":39173},"osReleaseId":"ubuntu","arch":"aarch64","tmpDir":"/run/user/1000","platform":"linux","execServerToken":"2d8bdca6-79b2-4529-852e-c23db176d9c8","pid":9898,"ipcHandlePath":"/var/folders/n3/zcknft2d5sl6m2cp_g62233h0000gn/T/vscode-ssh-askpass-8ac2617d591cd13543c7d30d49bae83932c80039.sock","socksPort":50427,"startupTime":1728480660700} [22:31:03.590] Running server is stale. Ignoring [22:31:03.591] Using commit id "e10f2369d0d9614a452462f2e01cdc4aa9486296" and quality "stable" for server [22:31:03.593] 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": "85b97be15b48", "startMarker": "85b97be15b48: running", "commitId": "e10f2369d0d9614a452462f2e01cdc4aa9486296", "quality": "stable", "token": "11aaa111-aa11-1a1a-a111-11aa1a11a111", "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": "85b97be15b48:trigger_server_download", "getDownloadServerEndTrigger": "85b97be15b48:trigger_server_download_end", "getProgressDownloading": "85b97be15b48%%1%%", "getProgressInstalling": "85b97be15b48%%2%%" } [22:31:03.594] Install and start server if needed [22:31:03.597] askpass server listening on /var/folders/n3/zcknft2d5sl6m2cp_g62233h0000gn/T/vscode-ssh-askpass-a853ad919ccaec79c0b00adada2d3912eecc0c2d.sock [22:31:03.597] Spawning local server with {"serverId":2,"ipcHandlePath":"/var/folders/n3/zcknft2d5sl6m2cp_g62233h0000gn/T/vscode-ssh-askpass-b4ff14ee4e78301c011a2e55b3fd9c921926f90a.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","50441","-o","ConnectTimeout=15","reah"],"serverDataFolderName":".vscode-server","dataFilePath":"/Users/nnyn/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-d2dfaa11-e10f2369d0d9614a452462f2e01cdc4aa9486296-0.115.0-es/data.json"} [22:31:03.597] Local server env: {"SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.rVTt2s5uKB/Listeners","SHELL":"/bin/bash","DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/nnyn/.vscode/extensions/ms-vscode-remote.remote-ssh-0.115.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/nnyn/.vscode/extensions/ms-vscode-remote.remote-ssh-0.115.0/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/n3/zcknft2d5sl6m2cp_g62233h0000gn/T/vscode-ssh-askpass-a853ad919ccaec79c0b00adada2d3912eecc0c2d.sock"} [22:31:03.599] Spawned 9922 [22:31:03.599] Using connect timeout of 17 seconds [22:31:03.687] > local-server-2> Running ssh connection command: ssh -v -T -D 50441 -o ConnectTimeout=15 reah [22:31:03.689] > local-server-2> Spawned ssh, pid=9945 [22:31:03.692] stderr> OpenSSH_9.7p1, LibreSSL 3.3.6 [22:31:03.754] stderr> debug1: Server host key: ssh-ed25519 SHA256:7QJGctYjHFT8+3+ZkXMUlitghlVawBYMUAbkHxu175w [22:31:03.846] stderr> Authenticated to 192.168.1.194 ([192.168.1.194]:22) using "publickey". [22:31:04.221] > ___ ____ _ ____ ____ _ > / _ \| _ \(_) | ___| | _ \| |_ _ ___ > | | | | |_) | | |___ \ | |_) | | | | / __| > | |_| | __/| | ___) | | __/| | |_| \__ \ > \___/|_| |_| |____/ |_| |_|\__,_|___/ > > Welcome to Armbian 24.5.2 Noble with Linux 6.1.43-vendor-rk35xx > > System load: 5% Up time: 10:05 Local users: 14 > Memory usage: 4% of 15.35G IP: 172.20.0.1 172.18.0.1 172.19.0.1 172.17.0.1 192.168.1.194 > CPU temp: 38°C Usage of /: 22% of 454G > RX today: 1.2 GiB > > Tip of the day: Support our work and become a sponsor https://github.com/sponsors/armbian > > [ 39 security updates available, 135 updates total: apt upgrade ] > Last check: 2024-10-09 12:41 > > [ General system configuration (beta): armbian-config ] [22:31:04.229] > ready: 85b97be15b48 [22:31:04.230] > Linux 6.1.43-vendor-rk35xx #1 SMP Thu Jun 20 10:33:36 UTC 2024 [22:31:04.230] Platform: linux [22:31:04.231] > /bin/bash [22:31:04.231] Parent Shell: bash [22:31:04.231] Parent Shell pid: 9922 [22:31:04.234] > 33625 [22:31:04.234] Waiting for pid of spawned 'sh' subshell: '33625'... [22:31:04.236] > 85b97be15b48: running > Script executing under PID: 33625 [22:31:04.251] > Found existing installation at /home/nnyn/.vscode-server... > Starting VS Code CLI... > printenv: [22:31:04.252] > LANGUAGE=en_US.UTF-8 > USER=nnyn > SSH_CLIENT=192.168.1.4 50442 22 > XDG_SESSION_TYPE=tty > SHLVL=1 > HOME=/home/nnyn > LC_CTYPE=en_US.UTF-8 > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus > DEBUGINFOD_URLS=https://debuginfod.ubuntu.com > LOGNAME=nnyn > _=/usr/bin/sh > XDG_SESSION_CLASS=user > XDG_SESSION_ID=115 > PATH=/home/nnyn/.cargo/bin:/home/nnyn/.rye/shims:/home/nnyn/.local/bin:/home/nnyn/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin > XDG_RUNTIME_DIR=/run/user/1000 > LANG=en_US.UTF-8 > LC_MESSAGES=en_US.UTF-8 > SHELL=/bin/bash > PWD=/home/nnyn > LC_ALL=en_US.UTF-8 > SSH_CONNECTION=192.168.1.4 50442 192.168.1.194 22 [22:31:04.254] > Removing old logfile at /home/nnyn/.vscode-server/.cli.e10f2369d0d9614a452462f2e01cdc4aa9486296.log [22:31:04.256] > Spawned remote CLI: 33643 [22:31:04.260] > Waiting for server log... [22:31:04.296] > Waiting for server log... [22:31:04.336] > 85b97be15b48: start > listeningOn==127.0.0.1:34053== > osReleaseId==ubuntu== > arch==aarch64== > vscodeArch==arm64== > bitness==64== > tmpDir==/run/user/1000== > platform==linux== > unpackResult==== > didLocalDownload==0== > downloadTime==== > installTime==== > serverStartTime==81== > execServerToken==11aaa111-aa11-1a1a-a111-11aa1a11a111== > platformDownloadPath==cli-alpine-arm64== > 85b97be15b48: end [22:31:04.337] Received install output: listeningOn==127.0.0.1:34053== osReleaseId==ubuntu== arch==aarch64== vscodeArch==arm64== bitness==64== tmpDir==/run/user/1000== platform==linux== unpackResult==== didLocalDownload==0== downloadTime==== installTime==== serverStartTime==81== execServerToken==11aaa111-aa11-1a1a-a111-11aa1a11a111== platformDownloadPath==cli-alpine-arm64== [22:31:04.337] Remote server is listening on port 34053 [22:31:04.337] Parsed server configuration: {"serverConfiguration":{"remoteListeningOn":{"port":34053},"osReleaseId":"ubuntu","arch":"aarch64","tmpDir":"/run/user/1000","platform":"linux","execServerToken":"11aaa111-aa11-1a1a-a111-11aa1a11a111"},"serverStartTime":81,"installUnpackCode":""} [22:31:04.337] ** Note: Support for architecture "aarch64" is in preview ** [22:31:04.338] Persisting server connection details to /Users/nnyn/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-d2dfaa11-e10f2369d0d9614a452462f2e01cdc4aa9486296-0.115.0-es/data.json [22:31:04.340] Starting forwarding server. local port 50443 -> socksPort 50441 -> remotePort 34053 [22:31:04.340] Forwarding server listening on port 50443 [22:31:04.340] Waiting for ssh tunnel to be ready [22:31:04.341] Tunneled port 34053 to local port 50443 [22:31:04.341] Resolved "ssh-remote+reah" to "port 50443" [22:31:04.342] [Forwarding server port 50443] Got connection 0 [22:31:04.343] Verified and reusing cached exec server for ssh-remote+reah [22:31:04.345] ------ [22:31:04.349] [server] Checking /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/log.txt and /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/pid.txt for a running server... [22:31:04.349] [server] Checking /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/log.txt and /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/pid.txt for a running server... [22:31:04.349] [server] Checking /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/log.txt and /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/pid.txt for a running server... [22:31:04.349] [server] Checking /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/log.txt and /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/pid.txt for a running server... [22:31:04.349] [server] Checking /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/log.txt and /home/nnyn/.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/pid.txt for a running server... [22:31:04.395] [server] Found running server (pid=32625) [22:31:04.395] [server] Found running server (pid=32625) [22:31:04.395] [server] Found running server (pid=32625) [22:31:04.395] [server] Found running server (pid=32625) [22:31:04.395] [server] Found running server (pid=32625) [22:31:04.395] [server] Installing extensions... [22:31:04.396] [server] Installing extensions... [22:31:04.396] [server] Installing extensions... [22:31:04.396] [server] Installing extensions... [22:31:04.396] [server] Installing extensions... [22:31:07.673] > local-server-1> Timed out [22:31:07.677] Local server exit: 0 ```

Anything else?

.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/log.txt

.vscode-server/cli/servers/Stable-e10f2369d0d9614a452462f2e01cdc4aa9486296/pid.txt

Version: 1.94.1
Commit: e10f2369d0d9614a452462f2e01cdc4aa9486296
Date: 2024-10-05T05:44:32.189Z
Electron: 30.5.1
ElectronBuildId: 10262041
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Darwin arm64 23.6.0
xsxnet commented 1 month ago

+1

joshspicer commented 1 month ago

Could you please try again after updating your editor to 1.94.2 (released this morning) and let me know if the issue continues to repro? Others are reporting that this has been fixed

74th commented 1 month ago

I tried it and when I connected to the remote server and code ~/tmp it seemed to open the workspace normally. However, when I then run “Developer: Reload Window”, I get an error. Instead of the previous error message “Failed to connect to remote extension host server”, the error message is “cloud not fetch remote environment”.

Image

As in the previous version, either delete the setting “remote.SSH.defaultExtensions” or delete all profiles except the default profile, so that it is recovered.

VS Code version

Version: 1.94.2
Commit: 384ff7382de624fb94dbaf6da11977bba1ecd427
Date: 2024-10-09T16:08:44.566Z (1 day ago)
Electron: 30.5.1
ElectronBuildId: 10262041
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Darwin arm64 23.6.0

Output: Remote-SSH

output_remote-ssh.log

.vscode-server/cli/servers/Stable-384ff7382de624fb94dbaf6da11977bba1ecd427/log.txt

_vscode-server-cli_servers_Stable-384ff7382de624fb94dbaf6da11977bba1ecd427_log.txt

jabbera commented 1 month ago

We are having the same issue.

joshspicer commented 1 month ago

Thanks for following up - will take a closer look

jabbera commented 1 month ago

This doesn't seem to be extension specific. We have about 10 in our default list and we can't get the install error to go away until we remove all of them.

tekumara commented 1 month ago

Still happening in 1.94.2 ... On the first connect after opening VS Code its fine:

[22:08:09.930] [server] [11:08:09] Installing extensions...
[22:08:09.944] [server] [11:08:09] Extension host agent started.
[22:08:10.099] [server] [11:08:09] Extension 'ms-python.python' v2024.16.1 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'ms-python.python@1.2.3'.
[22:08:10.100] [server] [11:08:09] Extension 'ms-python.vscode-pylance' v2024.10.1 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'ms-python.vscode-pylance@1.2.3'.

But on the next connect it find a running server and loops trying to install the extensions failing each time:

[22:09:23.478] [server] Found running server (pid=113168)
[22:09:23.478] [server] Installing extensions...
[22:09:24.921] Opening exec server for ssh-remote+dev
[22:09:25.160] Verified and reusing cached exec server for ssh-remote+dev
[22:09:25.389] Opening exec server for ssh-remote+dev
[22:09:25.618] Verified and reusing cached exec server for ssh-remote+dev

until it errors with Could not fetch remote environment:

I tried rm -rf ~/.vscode-server/* but that didn't help.

I have symlinked ~/.vscode-server to a network drive, maybe that's a problem?

tekumara commented 1 month ago

Removing the symlinked ~/.vscode-server directory (which pointed to an NFS mount) and re-connecting has fixed this:

rm -rf ~/.vscode-server/
jabbera commented 1 month ago

We have this setup but I can't remove the symlink. The home folder is way too slow so we symlink it to faster local storage.

grst commented 1 month ago

FWIW, I don't have a symlink, but use a non-standard path for .vscode-server using remote.SSH.serverInstallPath in settings.json. I am experiencing the same issue.

bldrdash commented 1 month ago

I have been experiencing the same error since the upgrade to VSCode 1.94. I am able to connect once. If I Reload Window, or open another instance to another project, I receive the error as in the original post's image, as well as "Could not fetch remote environment". If I run pkill -f 'vscode-server' I am able to attach successful, but still only one instance.

VScode Version: 1.94.2 Remote OS: Debian Linux 12 (all updates) Home Directory: ext4, not symlinked Running under a Profile Only the following extensions enabled while testing this error: Remote -SSH, Remote - SSH: Editing Configuration, Remote Explorer

Solutions that have worked to get back up and running: Remove remote.SSH.defaultExtensions from Default profile or Downgrade to 1.93.x (rm -rf ~/.vscode-server first)

jabbera commented 4 weeks ago

This is killing us. It's created a super manual workflow of installing extensions every time someone starts work for the day or needs to change resource allocations. @joshspicer not a complaint, more of an FYI for prioritization.

joshspicer commented 4 weeks ago

I'm unfortunately unable to repro with today's insiders and pre-release extension builds. I'm attaching a video so you can correct me if i'm repro'ing incorrectly.

Would folks mind trying on the latest insiders/pre-release combo (my combo is 1.95.0-insider (d7c7d5) and extension v0.116.2024100715 (pre-release))

If anyone can still repro, perhaps a video would help me see where i'm going wrong

https://github.com/user-attachments/assets/09680c10-647b-41e7-8b7c-ee01a024982f

tekumara commented 4 weeks ago

@joshspicer is the ~/.vscode-server-insiders/ directory on your remote machine a symlink? I can only repro this on 1.9.4.2 when its a symlink (I've yet to try the latest insiders version)

joshspicer commented 4 weeks ago

@tekumara Are you also swapping profiles like in the original poster's repro steps? Or are you able to repro in the default profile with a custom remote.SSH.defaultExtensions and a symlinked vscode-server-insiders directory? Are you able to not symlink the directory and instead set the remote.SSH.serverInstallPath setting? Does it still repro in that case?

If you do have a moment to test on the latest insiders please share your full logs for me to take a peek

joshspicer commented 4 weeks ago

@grst I have also tried using a custom path (/opt/my-dir, with 755 permissions and owned by my unprivileged user) in the latest insiders. I am not able to repro following the steps in the original comment.

Could you confirm in the latest insiders whether this issue has been fixed. If not, it would help me out to attach your complete logs (and if possible, a video like I did)

grst commented 3 weeks ago

Could it matter if the symlink points to a different device than the one of the home directory? I can try the insider version, but can't promise I find the time this week!

tekumara commented 3 weeks ago

@joshspicer I've tried this with the ~/.vscode-server symlink and vscode 1.95.1 and it appears to now work - thank you!

grst commented 3 weeks ago

Appears to work for me as well in 1.95.1

joshspicer commented 3 weeks ago

Thank you @tekumara, @grst for confirming.

@jabbera, @74th - are you able to confirm this is OK for you now?

vs-code-engineering[bot] commented 2 weeks ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!