microsoft / microsoft/vscode-remote-release
Remote SSH Connection Not Possible Unless I Remove .vscode-server Folder (AFS Filesystem)
Nobody has claimed this yet.
- Dominant language
- Dockerfile
- Stars
- 4.2k
- Forks
- 469
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
Is there an existing issue for this bug?
- I have searched the existing open issues and found none that apply.
- If I find any issue of interest that is related or closed, I will included a link to it in this issue.
Required Troubleshooting Steps
- I have read and performed the troubleshooting steps
- I have tried both values of the
remote.SSH.useLocalServersetting - My issue was not covered in the Tips and Tricks linked from the Troubleshooting Wiki.
- I will include a complete copy of my Remote - SSH logs by running Remote-SSH: Show Log in the command palette or from View > Output in the menu bar
[Optional] Diagnose with Copilot
I did not ask the @remote-ssh participant for help
In step 2 of the troubleshooting wiki, what was the result of running the generated SSH command verbatim outside of VS Code?
I did not try step 2 of the troubleshooting steps
Remote-SSH Log
Remote-SSH Log
[16:12:56.537] Log Level: 2
[16:12:56.546] SSH Resolver called for "ssh-remote+lxplus", attempt 1
[16:12:56.548] remote.SSH.useLocalServer = true
[16:12:56.548] remote.SSH.useExecServer = true
[16:12:56.548] remote.SSH.path =
[16:12:56.548] remote.SSH.configFile =
[16:12:56.548] remote.SSH.useFlock = true
[16:12:56.548] remote.SSH.lockfilesInTmp = false
[16:12:56.548] remote.SSH.localServerDownload = auto
[16:12:56.548] remote.SSH.remoteServerListenOnSocket = false
[16:12:56.548] remote.SSH.defaultExtensions = []
[16:12:56.548] remote.SSH.loglevel = 2
[16:12:56.548] remote.SSH.enableDynamicForwarding = true
[16:12:56.548] remote.SSH.enableRemoteCommand = false
[16:12:56.548] remote.SSH.serverPickPortsFromRange = {}
[16:12:56.548] remote.SSH.serverInstallPath = {}
[16:12:56.548] remote.SSH.permitPtyAllocation = false
[16:12:56.548] remote.SSH.preferredLocalPortRange = undefined
[16:12:56.548] remote.SSH.useCurlAndWgetConfigurationFiles = false
[16:12:56.548] remote.SSH.experimental.chat = true
[16:12:56.548] remote.SSH.experimental.enhancedSessionLogs = true
[16:12:56.552] VS Code version: 1.96.4
[16:12:56.552] Remote-SSH version: remote-ssh@0.116.1
[16:12:56.552] darwin arm64
[16:12:56.554] SSH Resolver called for host: lxplus
[16:12:56.554] Setting up SSH remote "lxplus"
[16:12:56.557] Acquiring local install lock: /var/folders/s3/0cjgb00d7kg6x2z58k_3ky5h0000gn/T/vscode-remote-ssh-b05e4bc9-install.lock
[16:12:56.558] Looking for existing server data file at /Users/diiego/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-b05e4bc9-cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba-0.116.1-es/data.json
[16:12:56.558] No existing data file
[16:12:56.558] Using commit id "cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba" and quality "stable" for server
[16:12:56.560] Script variables:
{
"ExitCode.0": "OK",
"ExitCode.64": "LinuxPrereqs",
"ExitCode.65": "ProxyAuthenticationRequired",
"ExitCode.128": "UnparsableOutput",
"ExitCode.129": "EmptyOutput",
"ExitCode.131": "UnhandledResolverExitCode",
"ExitCode.132": "OfflineError",
"ExitCode.133": "SshInstall",
"ExitCode.134": "FindLocalPort",
"ExitCode.135": "Timeout",
"ExitCode.136": "ExhaustedRetries",
"ExitCode.137": "PermissionDenied",
"ExitCode.138": "MitmPortForwardingDisabled",
"ExitCode.139": "Canceled",
"ExitCode.140": "BadLocalDownloadRequest",
"ExitCode.141": "LocalDownloadFailed",
"ExitCode.142": "LocalLockTimeout",
"ExitCode.143": "NoBash",
"ExitCode.144": "InvalidHostName",
"ExitCode.145": "BadInstallScriptResult",
"ExitCode.146": "ShellRequestFailedOnChannel",
"ExitCode.147": "InvalidPortRange",
"ExitCode.148": "SendDisconnectBrokenPipe",
"ExitCode.149": "LocalServerCrashed",
"ExitCode.150": "NoFreePortInRange",
"ExitCode.151": "InvalidCustomServerPath",
"ExitCode.192": "AlreadyInProgress",
"ExitCode.193": "ServerDownloadFailed",
"ExitCode.194": "NoDownloaderAvailable",
"ExitCode.195": "NoDownloaderAvailableForStatusCheck",
"ExitCode.196": "UnsupportedArch",
"ExitCode.197": "StatusCheckFailed",
"ExitCode.198": "NeedInsidersArch",
"ExitCode.199": "ServerTransferFailed",
"ExitCode.200": "ServerFailedToStart",
"ExitCode.201": "NeedInsidersWindows",
"ExitCode.202": "CreateInstallDirFailed",
"ExitCode.203": "UnsupportedPlatform",
"ExitCode.204": "ServerTerminatedCVE20201416",
"ExitCode.205": "UnpackFailed",
"ExitCode.206": "ChangeDirFailed",
"ExitCode.1023": "UnclassifiedError",
"ExitCode.OK": "0",
"ExitCode.LinuxPrereqs": "64",
"ExitCode.ProxyAuthenticationRequired": "65",
"ExitCode.UnparsableOutput": "128",
"ExitCode.EmptyOutput": "129",
"ExitCode.UnhandledResolverExitCode": "131",
"ExitCode.OfflineError": "132",
"ExitCode.SshInstall": "133",
"ExitCode.FindLocalPort": "134",
"ExitCode.Timeout": "135",
"ExitCode.ExhaustedRetries": "136",
"ExitCode.PermissionDenied": "137",
"ExitCode.MitmPortForwardingDisabled": "138",
"ExitCode.Canceled": "139",
"ExitCode.BadLocalDownloadRequest": "140",
"ExitCode.LocalDownloadFailed": "141",
"ExitCode.LocalLockTimeout": "142",
"ExitCode.NoBash": "143",
"ExitCode.InvalidHostName": "144",
"ExitCode.BadInstallScriptResult": "145",
"ExitCode.ShellRequestFailedOnChannel": "146",
"ExitCode.InvalidPortRange": "147",
"ExitCode.SendDisconnectBrokenPipe": "148",
"ExitCode.LocalServerCrashed": "149",
"ExitCode.NoFreePortInRange": "150",
"ExitCode.InvalidCustomServerPath": "151",
"ExitCode.AlreadyInProgress": "192",
"ExitCode.ServerDownloadFailed": "193",
"ExitCode.NoDownloaderAvailable": "194",
"ExitCode.NoDownloaderAvailableForStatusCheck": "195",
"ExitCode.UnsupportedArch": "196",
"ExitCode.StatusCheckFailed": "197",
"ExitCode.NeedInsidersArch": "198",
"ExitCode.ServerTransferFailed": "199",
"ExitCode.ServerFailedToStart": "200",
"ExitCode.NeedInsidersWindows": "201",
"ExitCode.CreateInstallDirFailed": "202",
"ExitCode.UnsupportedPlatform": "203",
"ExitCode.ServerTerminatedCVE20201416": "204",
"ExitCode.UnpackFailed": "205",
"ExitCode.ChangeDirFailed": "206",
"ExitCode.UnclassifiedError": "1023",
"InstallUnpackCode.Success": "success",
"InstallUnpackCode.Error": "error",
"InstallUnpackCode.MissingFiles": "missingFiles",
"uuid": "ff728ca6f3a5",
"startMarker": "ff728ca6f3a5: running",
"commitId": "cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba",
"quality": "stable",
"token": "a1aa1a11-1111-11aa-a11a-11aa1a1111a1",
"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": "ff728ca6f3a5:trigger_server_download",
"getDownloadServerEndTrigger": "ff728ca6f3a5:trigger_server_download_end",
"getProgressDownloading": "ff728ca6f3a5%%1%%",
"getProgressInstalling": "ff728ca6f3a5%%2%%",
"printVars": "echo \"SSH_AUTH_SOCK==$SSH_AUTH_SOCK==\"\necho \"DISPLAY==$DISPLAY==\""
}
[16:12:56.561] Install and start server if needed
[16:12:56.563] PATH: /Users/diiego/miniconda3/condabin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/Library/TeX/texbin:/opt/X11/bin:/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
[16:12:56.563] Checking ssh with "ssh -V"
[16:12:56.567] > OpenSSH_9.0p1, LibreSSL 3.3.6
[16:12:56.569] askpass server listening on /var/folders/s3/0cjgb00d7kg6x2z58k_3ky5h0000gn/T/vscode-ssh-askpass-5a31353acb0d992a6375eae7a6e9dfc02999858b.sock
[16:12:56.569] Spawning local server with {"serverId":1,"ipcHandlePath":"/var/folders/s3/0cjgb00d7kg6x2z58k_3ky5h0000gn/T/vscode-ssh-askpass-5e178647280631e0b48f2051cfcc2beda483184d.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","50870","-o","ConnectTimeout=15","lxplus"],"serverDataFolderName":".vscode-server","dataFilePath":"/Users/diiego/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-b05e4bc9-cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba-0.116.1-es/data.json"}
[16:12:56.569] Local server env: {"SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.gKEaP3MWUq/Listeners","SHELL":"/bin/zsh","DISPLAY":"/private/tmp/com.apple.launchd.bJ9dRMs506/org.xquartz:0","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/diiego/.vscode/extensions/ms-vscode-remote.remote-ssh-0.116.1/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/diiego/.vscode/extensions/ms-vscode-remote.remote-ssh-0.116.1/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/s3/0cjgb00d7kg6x2z58k_3ky5h0000gn/T/vscode-ssh-askpass-5a31353acb0d992a6375eae7a6e9dfc02999858b.sock"}
[16:12:56.569] Spawned 8483
[16:12:56.570] Using connect timeout of 17 seconds
[16:12:56.636] > local-server-1> Running ssh connection command: ssh -v -T -D 50870 -o ConnectTimeout=15 lxplus
[16:12:56.637] > local-server-1> Spawned ssh, pid=8491
[16:12:56.640] stderr> OpenSSH_9.0p1, LibreSSL 3.3.6
[16:12:56.901] stderr> debug1: Server host key: ssh-ed25519 SHA256:xOtCWmpDSZenkpkC7zNvTW0l8eh3kXaStmqZC3UVcAk
[16:12:57.359] Got askpass request: {"request":" (dcostasr@lxplus.cern.ch) Password: "}
[16:12:57.360] Showing password prompt
[16:12:57.360] Listening for interwindow password on /var/folders/s3/0cjgb00d7kg6x2z58k_3ky5h0000gn/T/vscode-ssh-askpass-e0d1be4eab8887c840fcf569a9843a279e7c3633.sock
[16:12:57.360] Writing password prompt to globalState
[16:13:01.834] Got password response
[16:13:01.835] Interactor gave response: ********
[16:13:01.835] Cleaning up other-window auth server
[16:13:01.837] Using connect timeout of 17 seconds
[16:13:02.010] stderr> Authenticated to lxplus.cern.ch ([188.185.42.142]:22) using "keyboard-interactive".
[16:13:02.567] > * ********************************************************************
> * Welcome to lxplus987.cern.ch, Red Hat Enterprise Linux release 9.5 (Plow)
> * Archive of news is available in /etc/motd-archive
> * Reminder: you have agreed to the CERN
> * computing rules, in particular OC5. CERN implements
> * the measures necessary to ensure compliance.
> * https://cern.ch/ComputingRules
> * Puppet environment: production, Roger state: production
> * Foreman hostgroup: lxplus/nodes/login
> * Availability zone: cern-geneva-a
> * LXPLUS Public Login Service - http://lxplusdoc.web.cern.ch/
> * Please read LXPLUS Privacy Notice in http://cern.ch/go/TpV7
> * ********************************************************************
> * October 10th: LxPlus will switch to requiring 2fa during 2025
> * Test your access from now https://cern.ch/otg0152605
[16:13:02.805] > ready: ff728ca6f3a5
[16:13:02.861] > Linux 5.14.0-503.22.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jan 15 08:02:15 EST 2025
[16:13:02.861] Platform: linux
[16:13:02.907] > /bin/bash
[16:13:02.907] Parent Shell: bash
[16:13:02.907] Parent Shell pid: 8483
[16:13:02.964] > 2849177
[16:13:02.964] Waiting for pid of spawned 'sh' subshell: '2849177'...
[16:13:02.998] > 2849177
[16:13:03.009] > ff728ca6f3a5: running
[16:13:03.011] > Script executing under PID: 2849177
[16:13:03.025] > Found existing installation at /afs/cern.ch/user/d/dcostasr/.vscode-server...
> Starting VS Code CLI...
> printenv:
[16:13:03.029] > SHELL=/bin/bash
> LCG_GFAL_INFOSYS=lcg-bdii.cern.ch:2170
> HISTCONTROL=ignoredups
> CASTOR_HOME=/castor/cern.ch/user/d/dcostasr
> HOSTNAME=lxplus987.cern.ch
> HISTSIZE=1000
> OS_REGION_NAME=cern
> OS_PROJECT_DOMAIN_ID=default
> GUESTFISH_OUTPUT=\e[0m
> EDITOR=/bin/nano -w
> KRB5CCNAME=FILE:/run/user/163855/krb5cc
> PWD=/afs/cern.ch/user/d/dcostasr
> LOGNAME=dcostasr
> XDG_SESSION_TYPE=tty
> MODULESHOME=/usr/share/Modules
> MANPATH=/usr/share/man::/opt/puppetlabs/puppet/share/man
> MESA_GLSL_CACHE_DIR=/run/user/163855
> MYPROXY_SERVER=myproxy.cern.ch
> OS_AUTH_URL=https://keystone.cern.ch/v3
> GUESTFISH_RESTORE=\e[0m
> MOTD_SHOWN=pam
> __MODULES_SHARE_MANPATH=:1
> HOME=/afs/cern.ch/user/d/dcostasr
> SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
> LANG=en_US.UTF-8
> GUESTFISH_PS1=\[\e[1;32m\]><fs>\[\e[0;31m\]
> TMPDIR=/tmp/dcostasr
> SSH_CONNECTION=83.165.96.240 44243 188.185.42.142 22
> KUBECACHEDIR=/run/user/163855/kubecache
> XDG_SESSION_CLASS=user
> SELINUX_ROLE_REQUESTED=
> LESSOPEN=||/usr/bin/lesspipe.sh %s
> USER=dcostasr
> CONDA_SHLVL=0
> MODULES_RUN_QUARANTINE=LD_LIBRARY_PATH LD_PRELOAD
> OS_VOLUME_API_VERSION=3
> LOADEDMODULES=
> SELINUX_USE_CURRENT_RANGE=
> DISPLAY=localhost:37.0
> OS_IDENTITY_PROVIDER=sssd
> SHLVL=2
> GUESTFISH_INIT=\e[1;34m
> CVS_RSH=ssh
> XDG_SESSION_ID=4201
> OS_AUTH_TYPE=v3fedkerb
> XDG_RUNTIME_DIR=/run/user/163855
> OS_MUTUAL_AUTH=disabled
> S_COLORS=auto
> SSH_CLIENT=83.165.96.240 44243 22
> __MODULES_LMINIT=module use --append /usr/share/Modules/modulefiles:module use --append /etc/modulefiles:module use --append /usr/share/modulefiles
> OS_PROJECT_NAME=Personal dcostasr
> DOCKER_HOST=unix:///run/user/163855/podman/podman.sock
> which_declare=declare -f
> KDEDIRS=/usr
> OS_PROTOCOL=kerberos
> PATH=/afs/cern.ch/user/d/dcostasr/scripts:/usr/sue/bin:/usr/share/Modules/bin:/usr/condabin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/puppetlabs/bin:/afs/cern.ch/user/d/dcostasr/.local/bin:/afs/cern.ch/user/d/dcostasr/bin
> SELINUX_LEVEL_REQUESTED=
> MODULEPATH=/etc/scl/modulefiles:/usr/share/Modules/modulefiles:/etc/modulefiles:/usr/share/modulefiles
> DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/163855/bus
> MAIL=/var/spool/mail/dcostasr
> MESA_SHADER_CACHE_DIR=/run/user/163855
> OS_COMPUTE_API_VERSION=2.72
> HTGETTOKENOPTS=--vaulttokenfile=/run/user/%uid/vt
> OS_IDENTITY_API_VERSION=3
> MODULES_CMD=/usr/share/Modules/libexec/modulecmd.tcl
> BASH_FUNC_ml%%=() { module ml "$@"
> }
> BASH_FUNC_which%%=() { ( alias;
> eval ${which_declare} ) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot $@
> }
> BASH_FUNC_module%%=() { local _mlredir=0;
> if [ -n "${MODULES_REDIRECT_OUTPUT+x}" ]; then
> if [ "$MODULES_REDIRECT_OUTPUT" = '0' ]; then
> _mlredir=0;
> else
> if [ "$MODULES_REDIRECT_OUTPUT" = '1' ]; then
> _mlredir=1;
> fi;
> fi;
> fi;
> case " $@ " in
> *' --no-redirect '*)
> _mlredir=0
> ;;
> *' --redirect '*)
> _mlredir=1
> ;;
> esac;
> if [ $_mlredir -eq 0 ]; then
> _module_raw "$@";
> else
> _module_raw "$@" 2>&1;
> fi
> }
> BASH_FUNC_scl%%=() { if [ "$1" = "load" -o "$1" = "unload" ]; then
> eval "module $@";
> else
> /usr/bin/scl "$@";
> fi
> }
> BASH_FUNC__module_raw%%=() { eval "$(/usr/bin/tclsh '/usr/share/Modules/libexec/modulecmd.tcl' bash "$@")";
> _mlstatus=$?;
> return $_mlstatus
> }
> _=/usr/bin/printenv
[16:13:03.030] > Removing old logfile at /afs/cern.ch/user/d/dcostasr/.vscode-server/.cli.cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba.log
[16:13:03.035] > Spawned remote CLI: 2849199
[16:13:03.042] > Waiting for server log...
[16:13:03.075] > Waiting for server log...
[16:13:03.109] > Waiting for server log...
[16:13:03.143] > Waiting for server log...
[16:13:03.191] > Waiting for server log...
[16:13:03.212] > Waiting for server log...
[16:13:03.246] > Waiting for server log...
[16:13:03.281] > Waiting for server log...
[16:13:03.316] > Waiting for server log...
[16:13:03.353] > Waiting for server log...
[16:13:03.387] > Waiting for server log...
[16:13:03.422] > Waiting for server log...
[16:13:03.458] > Waiting for server log...
[16:13:03.493] > Waiting for server log...
[16:13:03.550] > Waiting for server log...
[16:13:03.565] > ff728ca6f3a5: start
[16:13:03.566] > listeningOn====
> osReleaseId==rhel==
> arch==x86_64==
> vscodeArch==x64==
> bitness==64==
> tmpDir==/run/user/163855==
> platform==linux==
> unpackResult====
> didLocalDownload==0==
> downloadTime====
> installTime====
> serverStartTime==537==
> execServerToken==a1aa1a11-1111-11aa-a11a-11aa1a1111a1==
> platformDownloadPath==cli-alpine-x64==
[16:13:03.567] > SSH_AUTH_SOCK====
> DISPLAY==localhost:37.0==
> ff728ca6f3a5: end
[16:13:03.567] Received install output: listeningOn====
osReleaseId==rhel==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/run/user/163855==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
serverStartTime==537==
execServerToken==a1aa1a11-1111-11aa-a11a-11aa1a1111a1==
platformDownloadPath==cli-alpine-x64==SSH_AUTH_SOCK====
DISPLAY==localhost:37.0==
[16:13:03.569] Failed to parse remote port from server output
[16:13:03.569] Terminating local server
[16:13:03.574] Resolver error: Error:
at v.Create (/Users/diiego/.vscode/extensions/ms-vscode-remote.remote-ssh-0.116.1/out/extension.js:2:696499)
at t.handleInstallOutput (/Users/diiego/.vscode/extensions/ms-vscode-remote.remote-ssh-0.116.1/out/extension.js:2:694580)
at e (/Users/diiego/.vscode/extensions/ms-vscode-remote.remote-ssh-0.116.1/out/extension.js:2:748527)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /Users/diiego/.vscode/extensions/ms-vscode-remote.remote-ssh-0.116.1/out/extension.js:2:770991
at async t.withShowDetailsEvent (/Users/diiego/.vscode/extensions/ms-vscode-remote.remote-ssh-0.116.1/out/extension.js:2:774668)
at async /Users/diiego/.vscode/extensions/ms-vscode-remote.remote-ssh-0.116.1/out/extension.js:2:745239
at async P (/Users/diiego/.vscode/extensions/ms-vscode-remote.remote-ssh-0.116.1/out/extension.js:2:743294)
at async t.resolveWithLocalServer (/Users/diiego/.vscode/extensions/ms-vscode-remote.remote-ssh-0.116.1/out/extension.js:2:744791)
at async x (/Users/diiego/.vscode/extensions/ms-vscode-remote.remote-ssh-0.116.1/out/extension.js:2:767986)
at async t.resolve (/Users/diiego/.vscode/extensions/ms-vscode-remote.remote-ssh-0.116.1/out/extension.js:2:772083)
at async /Users/diiego/.vscode/extensions/ms-vscode-remote.remote-ssh-0.116.1/out/extension.js:2:1055245
[16:13:03.583] ------
[16:13:03.584] No hints found in the recent session.
[16:13:03.588] Local server exit: 15
[16:13:04.039] Opening exec server for ssh-remote+lxplus
[16:13:04.044] Acquiring local install lock: /var/folders/s3/0cjgb00d7kg6x2z58k_3ky5h0000gn/T/vscode-remote-ssh-b05e4bc9-install.lock
[16:13:04.044] Initizing new exec server for ssh-remote+lxplus
[16:13:04.051] Looking for existing server data file at /Users/diiego/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-b05e4bc9-cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba-0.116.1-es/data.json
[16:13:04.052] No existing data file
[16:13:04.052] Using commit id "cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba" and quality "stable" for server
[16:13:04.053] Script variables:
{
"ExitCode.0": "OK",
"ExitCode.64": "LinuxPrereqs",
"ExitCode.65": "ProxyAuthenticationRequired",
"ExitCode.128": "UnparsableOutput",
"ExitCode.129": "EmptyOutput",
"ExitCode.131": "UnhandledResolverExitCode",
"ExitCode.132": "OfflineError",
"ExitCode.133": "SshInstall",
"ExitCode.134": "FindLocalPort",
"ExitCode.135": "Timeout",
"ExitCode.136": "ExhaustedRetries",
"ExitCode.137": "PermissionDenied",
"ExitCode.138": "MitmPortForwardingDisabled",
"ExitCode.139": "Canceled",
"ExitCode.140": "BadLocalDownloadRequest",
"ExitCode.141": "LocalDownloadFailed",
"ExitCode.142": "LocalLockTimeout",
"ExitCode.143": "NoBash",
"ExitCode.144": "InvalidHostName",
"ExitCode.145": "BadInstallScriptResult",
"ExitCode.146": "ShellRequestFailedOnChannel",
"ExitCode.147": "InvalidPortRange",
"ExitCode.148": "SendDisconnectBrokenPipe",
"ExitCode.149": "LocalServerCrashed",
"ExitCode.150": "NoFreePortInRange",
"ExitCode.151": "InvalidCustomServerPath",
"ExitCode.192": "AlreadyInProgress",
"ExitCode.193": "ServerDownloadFailed",
"ExitCode.194": "NoDownloaderAvailable",
"ExitCode.195": "NoDownloaderAvailableForStatusCheck",
"ExitCode.196": "UnsupportedArch",
"ExitCode.197": "StatusCheckFailed",
"ExitCode.198": "NeedInsidersArch",
"ExitCode.199": "ServerTransferFailed",
"ExitCode.200": "ServerFailedToStart",
"ExitCode.201": "NeedInsidersWindows",
"ExitCode.202": "CreateInstallDirFailed",
"ExitCode.203": "UnsupportedPlatform",
"ExitCode.204": "ServerTerminatedCVE20201416",
"ExitCode.205": "UnpackFailed",
"ExitCode.206": "ChangeDirFailed",
"ExitCode.1023": "UnclassifiedError",
"ExitCode.OK": "0",
"ExitCode.LinuxPrereqs": "64",
"ExitCode.ProxyAuthenticationRequired": "65",
"ExitCode.UnparsableOutput": "128",
"ExitCode.EmptyOutput": "129",
"ExitCode.UnhandledResolverExitCode": "131",
"ExitCode.OfflineError": "132",
"ExitCode.SshInstall": "133",
"ExitCode.FindLocalPort": "134",
"ExitCode.Timeout": "135",
"ExitCode.ExhaustedRetries": "136",
"ExitCode.PermissionDenied": "137",
"ExitCode.MitmPortForwardingDisabled": "138",
"ExitCode.Canceled": "139",
"ExitCode.BadLocalDownloadRequest": "140",
"ExitCode.LocalDownloadFailed": "141",
"ExitCode.LocalLockTimeout": "142",
"ExitCode.NoBash": "143",
"ExitCode.InvalidHostName": "144",
"ExitCode.BadInstallScriptResult": "145",
"ExitCode.ShellRequestFailedOnChannel": "146",
"ExitCode.InvalidPortRange": "147",
"ExitCode.SendDisconnectBrokenPipe": "148",
"ExitCode.LocalServerCrashed": "149",
"ExitCode.NoFreePortInRange": "150",
"ExitCode.InvalidCustomServerPath": "151",
"ExitCode.AlreadyInProgress": "192",
"ExitCode.ServerDownloadFailed": "193",
"ExitCode.NoDownloaderAvailable": "194",
"ExitCode.NoDownloaderAvailableForStatusCheck": "195",
"ExitCode.UnsupportedArch": "196",
"ExitCode.StatusCheckFailed": "197",
"ExitCode.NeedInsidersArch": "198",
"ExitCode.ServerTransferFailed": "199",
"ExitCode.ServerFailedToStart": "200",
"ExitCode.NeedInsidersWindows": "201",
"ExitCode.CreateInstallDirFailed": "202",
"ExitCode.UnsupportedPlatform": "203",
"ExitCode.ServerTerminatedCVE20201416": "204",
"ExitCode.UnpackFailed": "205",
"ExitCode.ChangeDirFailed": "206",
"ExitCode.UnclassifiedError": "1023",
"InstallUnpackCode.Success": "success",
"InstallUnpackCode.Error": "error",
"InstallUnpackCode.MissingFiles": "missingFiles",
"uuid": "ade70e006e01",
"startMarker": "ade70e006e01: running",
"commitId": "cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba",
"quality": "stable",
"token": "a111a111-111a-1aaa-aaa1-1111a111a111",
"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": "ade70e006e01:trigger_server_download",
"getDownloadServerEndTrigger": "ade70e006e01:trigger_server_download_end",
"getProgressDownloading": "ade70e006e01%%1%%",
"getProgressInstalling": "ade70e006e01%%2%%",
"printVars": "echo \"SSH_AUTH_SOCK==$SSH_AUTH_SOCK==\"\necho \"DISPLAY==$DISPLAY==\""
}
[16:13:04.054] Install and start server if needed
[16:13:04.061] askpass server listening on /var/folders/s3/0cjgb00d7kg6x2z58k_3ky5h0000gn/T/vscode-ssh-askpass-5ec45d790b2abe6243e51f535a0feb8055fa9d3b.sock
[16:13:04.061] Spawning local server with {"serverId":2,"ipcHandlePath":"/var/folders/s3/0cjgb00d7kg6x2z58k_3ky5h0000gn/T/vscode-ssh-askpass-9ce28fb7c6e49c0c1c0d7eea76151f853066d507.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","50870","-o","ConnectTimeout=15","lxplus"],"serverDataFolderName":".vscode-server","dataFilePath":"/Users/diiego/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-b05e4bc9-cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba-0.116.1-es/data.json"}
[16:13:04.061] Local server env: {"SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.gKEaP3MWUq/Listeners","SHELL":"/bin/zsh","DISPLAY":"/private/tmp/com.apple.launchd.bJ9dRMs506/org.xquartz:0","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/diiego/.vscode/extensions/ms-vscode-remote.remote-ssh-0.116.1/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/diiego/.vscode/extensions/ms-vscode-remote.remote-ssh-0.116.1/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/s3/0cjgb00d7kg6x2z58k_3ky5h0000gn/T/vscode-ssh-askpass-5ec45d790b2abe6243e51f535a0feb8055fa9d3b.sock"}
[16:13:04.062] Spawned 8522
[16:13:04.062] Using connect timeout of 17 seconds
[16:13:04.133] > local-server-2> Running ssh connection command: ssh -v -T -D 50870 -o ConnectTimeout=15 lxplus
[16:13:04.135] > local-server-2> Spawned ssh, pid=8530
[16:13:04.138] stderr> OpenSSH_9.0p1, LibreSSL 3.3.6
[16:13:04.368] stderr> debug1: Server host key: ssh-ed25519 SHA256:xOtCWmpDSZenkpkC7zNvTW0l8eh3kXaStmqZC3UVcAk
[16:13:04.820] Got askpass request: {"request":" (dcostasr@lxplus.cern.ch) Password: "}
[16:13:04.820] Showing password prompt
[16:13:04.821] Listening for interwindow password on /var/folders/s3/0cjgb00d7kg6x2z58k_3ky5h0000gn/T/vscode-ssh-askpass-698826fcffda379887ac487a236229810b694ac4.sock
[16:13:04.821] Writing password prompt to globalState
[16:13:06.797] Password dialog canceled
[16:13:06.797] Interactor signaled cancel
[16:13:06.798] Cleaning up other-window auth server
[16:13:06.798] Using connect timeout of 17 seconds
[16:13:08.986] Got askpass request: {"request":" (dcostasr@lxplus.cern.ch) Password: "}
[16:13:08.986] Using connect timeout of 17 seconds
[16:13:11.133] Got askpass request: {"request":" (dcostasr@lxplus.cern.ch) Password: "}
[16:13:11.133] Using connect timeout of 17 seconds
[16:13:13.111] stderr> dcostasr@lxplus.cern.ch: Permission denied (publickey,gssapi-with-mic,keyboard-interactive).
[16:13:13.114] > local-server-2> ssh child died, shutting down
[16:13:13.124] Local server exit: 0
[16:13:13.125] Received install output: local-server-2> Running ssh connection command: ssh -v -T -D 50870 -o ConnectTimeout=15 lxplus
local-server-2> Spawned ssh, pid=8530
OpenSSH_9.0p1, LibreSSL 3.3.6
debug1: Server host key: ssh-ed25519 SHA256:xOtCWmpDSZenkpkC7zNvTW0l8eh3kXaStmqZC3UVcAk
dcostasr@lxplus.cern.ch: Permission denied (publickey,gssapi-with-mic,keyboard-interactive).
local-server-2> ssh child died, shutting down
[16:13:13.125] WARN: $PLATFORM is undefined in installation script output. Errors may be dropped.
[16:13:13.126] Exec server for ssh-remote+lxplus failed: Error: Permission denied (publickey,gssapi-with-mic,keyboard-interactive).
[16:13:13.127] Error opening exec server for ssh-remote+lxplus: Error: Permission denied (publickey,gssapi-with-mic,keyboard-interactive).
[16:13:13.127] No hints found in the recent session.
Expected Behavior
Connect to a remote server using password.
Actual Behavior
Not connecting.
Steps To Reproduce
- In VSCode, I press the lower left green button to connect, select the host and type the password. Connections fails.
- Connect to server from my own terminal, remove everything but
extensionsfolder inside.vscode-server. - Repeat step 1 but successfuly this time.
- Disconnect from server using the green button again and pressing
Close remote connection. - Repeat step 1 (fails), go back to step 2.
Anything else?
When I try to connect to a remote server I get a connection error. I've look for this and found that removing .vscode-server could help, and indeed it does, if I remove that folder, I can connect to the server.
After I finish my work, I disconnect from the server using Close remote connection. Once I want to reconnect back, the error appears again.
I've found also in the issues that removing only the .cli.cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba.log might be enough. Not in my case. I need to remove everything but the extensions folder. Then I can connect again.
I don't know if I can be missing some information that might be useful, please let me know, and thanks in advance.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source files or tests are named in the issue. Start by reviewing the Remote-SSH Log and reproducing the connection to the AFS-backed host with an existing .vscode-server folder; done means Remote SSH connects without requiring that folder to be removed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- vscode
- Domain
- devtools, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100