Closed xiangjuner closed 2 weeks ago
I am somehow, experiencing the same problem since last week.
I have solved the issue on my end. Although I am not entirely sure what caused the problem for you, I suggest running a few checks on both your VS Code and LXPLUS server to ensure they communicate properly.
Run checks on the LXPLUS server:
rm -rf ~/.vscode-server
Check VS Code Remote-SSH settings:
"remote.SSH.useLocalServer"
is set to false
(it's true
in your logs). Disable it and test again."remote.SSH.loglevel"
to 3
for more detailed logs if needed.Restart VS Code and try connecting again.
Let me know if this resolves your issue!
Hi ,
Thank you very much! It works. :)
Thanks for the details in your issue, and glad to hear disabling useLocalServer
is helping.
I see the shared /afs
file system on your remote machine, which sounds like the same issue captured in https://github.com/microsoft/vscode-remote-release/issues/10445. I'll continue tracking in that issue
/duplicate https://github.com/microsoft/vscode-remote-release/issues/10445
Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.
Happy Coding!
Is there an existing issue for this bug?
Required Troubleshooting Steps
remote.SSH.useLocalServer
settingConnect Locally
It connects successfully
->
Hello experts, this is my first time to post my problem here. it maybe not formal.
My question is it seems that after the last update (about 1 week), I got an error after "Waiting for server log..." although it seems I have connected to the remote server. The problem can be solved by removing the .vscode-server. But it can only work for one time. If I restarted the vscode to connect the remote server , the same problem will arise again.
Could you please give me some advice, thank you very much!
The log is shown below :
Expected Behavior
No response
Steps To Reproduce
No response
Remote-SSH Log
[16:14:48.151] Log Level: 2 [16:14:48.161] VS Code version: 1.94.2 [16:14:48.161] Remote-SSH version: remote-ssh@0.115.0 [16:14:48.161] darwin arm64 [16:14:48.162] SSH Resolver called for "ssh-remote+lxplus-gpu.cern.ch", attempt 1 [16:14:48.162] "remote.SSH.useLocalServer": true [16:14:48.162] "remote.SSH.useExecServer": true [16:14:48.162] "remote.SSH.path": undefined [16:14:48.162] "remote.SSH.configFile": undefined [16:14:48.162] "remote.SSH.useFlock": true [16:14:48.162] "remote.SSH.lockfilesInTmp": true [16:14:48.162] "remote.SSH.localServerDownload": auto [16:14:48.162] "remote.SSH.remoteServerListenOnSocket": false [16:14:48.162] "remote.SSH.showLoginTerminal": false [16:14:48.162] "remote.SSH.defaultExtensions": [] [16:14:48.162] "remote.SSH.loglevel": 2 [16:14:48.162] "remote.SSH.enableDynamicForwarding": true [16:14:48.162] "remote.SSH.enableRemoteCommand": false [16:14:48.163] "remote.SSH.serverPickPortsFromRange": {} [16:14:48.163] "remote.SSH.serverInstallPath": {} [16:14:48.163] "remote.SSH.permitPtyAllocation": false [16:14:48.163] "remote.SSH.preferredLocalPortRange: undefined [16:14:48.163] "remote.SSH.useCurlAndWgetConfigurationFiles: false [16:14:48.166] SSH Resolver called for host: lxplus-gpu.cern.ch [16:14:48.166] Setting up SSH remote "lxplus-gpu.cern.ch" [16:14:48.170] Acquiring local install lock: /var/folders/c5/sz58p_mj03s_htbv9_3t68qr0000gn/T/vscode-remote-ssh-26866061-install.lock [16:14:48.172] Looking for existing server data file at /Users/xiangjun/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-26866061-384ff7382de624fb94dbaf6da11977bba1ecd427-0.115.0-es/data.json [16:14:48.172] No existing data file [16:14:48.173] Using commit id "384ff7382de624fb94dbaf6da11977bba1ecd427" and quality "stable" for server [16:14:48.174] 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": "f0572d34014e", "startMarker": "f0572d34014e: running", "commitId": "384ff7382de624fb94dbaf6da11977bba1ecd427", "quality": "stable", "token": "11a1a1a1-11a1-11a1-a11a-aaa111aa1a1a", "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": "f0572d34014e:trigger_server_download", "getDownloadServerEndTrigger": "f0572d34014e:trigger_server_download_end", "getProgressDownloading": "f0572d34014e%%1%%", "getProgressInstalling": "f0572d34014e%%2%%" } [16:14:48.175] Install and start server if needed [16:14:48.177] PATH: /opt/anaconda3/bin:/opt/anaconda3/condabin:/opt/homebrew/bin:/opt/homebrew/sbin:/opt/homebrew/Cellar/python@3.10/3.10.9/bin/python3.10/bin:/bin:/jre/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/Library/Apple/usr/bin [16:14:48.178] Checking ssh with "ssh -V" [16:14:48.183] > OpenSSH_9.0p1, LibreSSL 3.3.6
[16:14:48.185] askpass server listening on /var/folders/c5/sz58p_mj03s_htbv9_3t68qr0000gn/T/vscode-ssh-askpass-b24d9a955621f17081d797cbe5465a7e7ce24662.sock [16:14:48.185] Spawning local server with {"serverId":1,"ipcHandlePath":"/var/folders/c5/sz58p_mj03s_htbv9_3t68qr0000gn/T/vscode-ssh-askpass-3cab7ae17ec1749b7f4e005e9f7a366b5fb9c31c.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","57242","-o","ConnectTimeout=15","lxplus-gpu.cern.ch"],"serverDataFolderName":".vscode-server","dataFilePath":"/Users/xiangjun/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-26866061-384ff7382de624fb94dbaf6da11977bba1ecd427-0.115.0-es/data.json"} [16:14:48.185] Local server env: {"SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.IYJjPDzhZi/Listeners","SHELL":"/bin/bash","DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/xiangjun/.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/xiangjun/.vscode/extensions/ms-vscode-remote.remote-ssh-0.115.0/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/c5/sz58p_mj03s_htbv9_3t68qr0000gn/T/vscode-ssh-askpass-b24d9a955621f17081d797cbe5465a7e7ce24662.sock"} [16:14:48.186] Spawned 96886 [16:14:48.186] Using connect timeout of 17 seconds [16:14:48.255] > local-server-1> Running ssh connection command: ssh -v -T -D 57242 -o ConnectTimeout=15 lxplus-gpu.cern.ch [16:14:48.257] > local-server-1> Spawned ssh, pid=96896 [16:14:48.260] stderr> OpenSSH_9.0p1, LibreSSL 3.3.6 [16:14:49.057] stderr> debug1: Server host key: ssh-ed25519 SHA256:xOtCWmpDSZenkpkC7zNvTW0l8eh3kXaStmqZC3UVcAk [16:14:49.765] stderr> no credential for 8E1465DD-A14E-441F-B376-49C03494C2D5 [16:14:49.765] stderr> [16:14:49.765] stderr> [16:14:49.766] stderr> unknown mech-code 0 for mech 1 2 752 43 14 2 [16:14:49.766] stderr> [16:14:49.766] stderr> [16:14:49.766] stderr> unknown mech-code 0 for mech 1 3 6 1 5 5 14 [16:14:49.766] stderr> [16:14:49.766] stderr> [16:14:49.789] stderr> unknown mech-code 2 for mech 1 3 6 1 4 1 311 2 2 10 [16:14:49.789] stderr> [16:14:49.789] stderr> [16:14:49.789] stderr> unknown mech-code 0 for mech 1 3 5 1 5 2 7 [16:14:49.789] stderr> [16:14:49.789] stderr> [16:14:49.790] stderr> unknown mech-code 0 for mech 1 3 6 1 5 2 5 [16:14:49.790] stderr> [16:14:49.790] stderr> [16:14:50.310] Got askpass request: {"request":" (zgao@lxplus-gpu.cern.ch) Password: "} [16:14:50.310] Showing password prompt [16:14:50.311] Listening for interwindow password on /var/folders/c5/sz58p_mj03s_htbv9_3t68qr0000gn/T/vscode-ssh-askpass-6b461d83eb3d5f8df519de9074c8d04021798ec8.sock [16:14:50.311] Writing password prompt to globalState [16:14:58.781] Got password response [16:14:58.782] Interactor gave response: **** [16:14:58.783] Cleaning up other-window auth server [16:14:58.785] Using connect timeout of 17 seconds [16:14:59.236] stderr> Authenticated to lxplus-gpu.cern.ch ([188.184.195.72]:22) using "keyboard-interactive". [16:15:00.068] > * ****
[16:15:01.563] Failed to parse remote port from server output [16:15:01.563] Terminating local server [16:15:01.567] Resolver error: Error: at v.Create (/Users/xiangjun/.vscode/extensions/ms-vscode-remote.remote-ssh-0.115.0/out/extension.js:2:493431) at t.handleInstallOutput (/Users/xiangjun/.vscode/extensions/ms-vscode-remote.remote-ssh-0.115.0/out/extension.js:2:490753) at e (/Users/xiangjun/.vscode/extensions/ms-vscode-remote.remote-ssh-0.115.0/out/extension.js:2:545236) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async /Users/xiangjun/.vscode/extensions/ms-vscode-remote.remote-ssh-0.115.0/out/extension.js:2:567561 at async t.withShowDetailsEvent (/Users/xiangjun/.vscode/extensions/ms-vscode-remote.remote-ssh-0.115.0/out/extension.js:2:571256) at async /Users/xiangjun/.vscode/extensions/ms-vscode-remote.remote-ssh-0.115.0/out/extension.js:2:541941 at async T (/Users/xiangjun/.vscode/extensions/ms-vscode-remote.remote-ssh-0.115.0/out/extension.js:2:539992) at async t.resolveWithLocalServer (/Users/xiangjun/.vscode/extensions/ms-vscode-remote.remote-ssh-0.115.0/out/extension.js:2:541481) at async P (/Users/xiangjun/.vscode/extensions/ms-vscode-remote.remote-ssh-0.115.0/out/extension.js:2:564693) at async t.resolve (/Users/xiangjun/.vscode/extensions/ms-vscode-remote.remote-ssh-0.115.0/out/extension.js:2:568667) at async /Users/xiangjun/.vscode/extensions/ms-vscode-remote.remote-ssh-0.115.0/out/extension.js:2:839059 [16:15:01.572] ------
[16:15:01.575] Local server exit: 15
Anything else?
No response