Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Remote-SSH Bug]: ERROR XHR FAILED #10120

Closed
2 of 3 tasks
Razbolt opened this issue Jul 31, 2024 · 1 comment
Closed
2 of 3 tasks

[Remote-SSH Bug]: ERROR XHR FAILED #10120

Razbolt opened this issue Jul 31, 2024 · 1 comment
Assignees
Labels
ssh Issue in vscode-remote SSH

Comments

@Razbolt
Copy link

Razbolt commented Jul 31, 2024

Is there an existing issue for this bug?

  • I have searched the existing issues

Required Troubleshooting Steps

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

Connect Locally

It doesn’t connect successfully (same error message)

->

I am encountring an error which should have been resolved year ago I guess. The same error I have seen in here #200512 .
The problem is I have updated everything and downgraded too but still the Error:XDR did not changed at all.

I attached the error below, perhaps someone is there still having the same issue as me.

Expected Behavior

No response

Steps To Reproduce

No response

Remote-SSH Log

Remote-SSH Log

[12:15:34.992] Log Level: 2
[12:15:34.997] SSH Resolver called for "ssh-remote+localhost", attempt 1
[12:15:34.997] "remote.SSH.useLocalServer": true
[12:15:34.997] "remote.SSH.useExecServer": false
[12:15:34.997] "remote.SSH.path": undefined
[12:15:34.997] "remote.SSH.configFile": undefined
[12:15:34.997] "remote.SSH.useFlock": true
[12:15:34.997] "remote.SSH.lockfilesInTmp": false
[12:15:34.997] "remote.SSH.localServerDownload": auto
[12:15:34.997] "remote.SSH.remoteServerListenOnSocket": false
[12:15:34.997] "remote.SSH.showLoginTerminal": false
[12:15:34.997] "remote.SSH.defaultExtensions": []
[12:15:34.997] "remote.SSH.loglevel": 2
[12:15:34.998] "remote.SSH.enableDynamicForwarding": true
[12:15:34.998] "remote.SSH.enableRemoteCommand": false
[12:15:34.998] "remote.SSH.serverPickPortsFromRange": {}
[12:15:34.998] "remote.SSH.serverInstallPath": {}
[12:15:34.999] VS Code version: 1.83.0
[12:15:34.999] Remote-SSH version: remote-ssh@0.106.5
[12:15:34.999] darwin arm64
[12:15:34.999] SSH Resolver called for host: localhost
[12:15:34.999] Setting up SSH remote "localhost"
[12:15:35.001] Acquiring local install lock: /var/folders/bs/h_4q_w4s3vnby7m9t994_4bc0000gn/T/vscode-remote-ssh-0150773a-install.lock
[12:15:35.001] Looking for existing server data file at /Users/erdemarslan/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-0150773a-e7e037083ff4455cf320e344325dacb480062c3c-0.106.5-tr/data.json
[12:15:35.002] Using commit id "e7e037083ff4455cf320e344325dacb480062c3c" and quality "stable" for server
[12:15:35.004] Install and start server if needed
[12:15:35.006] PATH: /opt/homebrew/opt/llvm/bin:/Users/erdemarslan/miniconda3/bin:/Users/erdemarslan/miniconda3/condabin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
[12:15:35.006] Checking ssh with "ssh -V"
[12:15:35.010] > OpenSSH_9.6p1, LibreSSL 3.3.6

[12:15:35.012] askpass server listening on /var/folders/bs/h_4q_w4s3vnby7m9t994_4bc0000gn/T/vscode-ssh-askpass-af8b1999fcda1dbda941c95d9de1d54e939d0d36.sock
[12:15:35.012] Spawning local server with {"serverId":1,"ipcHandlePath":"/var/folders/bs/h_4q_w4s3vnby7m9t994_4bc0000gn/T/vscode-ssh-askpass-9998642cbf65137259c451bf3718227cd2403580.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","53182","-o","ConnectTimeout=15","localhost"],"serverDataFolderName":".vscode-server","dataFilePath":"/Users/erdemarslan/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-0150773a-e7e037083ff4455cf320e344325dacb480062c3c-0.106.5-tr/data.json"}
[12:15:35.012] Local server env: {"SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.7W10MWlER6/Listeners","SHELL":"/bin/zsh","DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/erdemarslan/.vscode/extensions/ms-vscode-remote.remote-ssh-0.106.5/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/private/var/folders/bs/h_4q_w4s3vnby7m9t994_4bc0000gn/T/AppTranslocation/AB498794-7B07-42C2-8B1D-3E363B71934F/d/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"--ms-enable-electron-run-as-node","VSCODE_SSH_ASKPASS_MAIN":"/Users/erdemarslan/.vscode/extensions/ms-vscode-remote.remote-ssh-0.106.5/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/bs/h_4q_w4s3vnby7m9t994_4bc0000gn/T/vscode-ssh-askpass-af8b1999fcda1dbda941c95d9de1d54e939d0d36.sock"}
[12:15:35.013] Spawned 25115
[12:15:35.075] > local-server-1> Running ssh connection command: "-v -T -D 53182 -o ConnectTimeout=15 localhost"
[12:15:35.076] > local-server-1> Spawned ssh, pid=25123
[12:15:35.079] stderr> OpenSSH_9.6p1, LibreSSL 3.3.6
[12:15:35.305] stderr> debug1: Server host key: ssh-ed25519 SHA256:XwcOQKewtuz1DF6v3uAr3tQNN3TAdCIAXoEU22XW3SE
[12:15:35.785] stderr> Authenticated to localhost ([::1]:2000) using "publickey".
[12:15:37.299] > ready: b5ee42c36c1c
[12:15:37.319] > Linux 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023
[12:15:37.319] Platform: linux
[12:15:37.356] > /bin/bash
[12:15:37.356] Shell: bash
[12:15:37.357] Creating bash subshell inside "bash"
[12:15:37.382] > bash version:  4.2.46(2)-release
[12:15:37.533] > b5ee42c36c1c: running
[12:15:37.551] > Acquiring lock on /users/adfx762/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/vscode-remote-lock.adfx762.e7e037083ff4455cf320e344325dacb480062c3c
> Installing to /users/adfx762/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c...
> b5ee42c36c1c%%1%%
[12:15:37.577] > Downloading with wget
[12:15:44.685] > wget download failed
> 
> printenv:
[12:15:44.688] >     XDG_SESSION_ID=3542232
>     HOSTNAME=login1.pri.hyperion.alces.network
>     PYENV_ROOT=/users/adfx762/.pyenv
>     SHELL=/bin/bash
>     HISTSIZE=1000
>     SSH_CLIENT=10.200.51.10 57452 22
>     USER=adfx762
>     LD_LIBRARY_PATH=/opt/gridware/depots/b26e1471/el7/pkg/libs/nvidia-cuda/11.2.0/lib64:
>     PYENV_VIRTUALENV_INIT=1
>     VSCODE_AGENT_FOLDER=/users/adfx762/.vscode-server
>     PATH=/users/adfx762/.pyenv/plugins/pyenv-virtualenv/shims:/users/adfx762/.pyenv/shims:/users/adfx762/.pyenv/bin:/opt/gridware/depots/b26e1471/el7/pkg/libs/nvidia-cuda/11.2.0/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/ibutils/bin:/users/adfx762/.local/bin:/users/adfx762/bin
>     MAIL=/var/spool/mail/adfx762
>     PWD=/users/adfx762/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c
>     LANG=en_GB.UTF-8
>     flight_ENV_root=/opt/flight/opt/env
>     flight_ACTIVE=true
>     SKIP_USERS=root alces
>     HISTCONTROL=ignoredups
>     HOME=/users/adfx762
>     SHLVL=2
>     flight_ENV_shell=bash
>     PYENV_SHELL=bash
>     LOGNAME=adfx762
>     SSH_CONNECTION=10.200.51.10 57452 172.17.1.101 22
>     XDG_DATA_DIRS=/users/adfx762/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
>     LESSOPEN=||/usr/bin/lesspipe.sh %s
>     flight_DEFINES_orig_PS1=
>     LOWEST_UID=500
>     XDG_RUNTIME_DIR=/run/user/30854
>     flight_ROOT=/opt/flight
>     BASH_FUNC_flight_env_exit()=() {  if [ "${flight_ENV_active}" ]; then
>      flenv deactivate;
>      fi
>     }
>     BASH_FUNC_flenv()=() {  local op tmpf rc flight_ENV_eval;
>      if [ -x $flight_ENV_root/bin/flenv ]; then
>      export FLIGHT_PROGRAM_NAME=${FLIGHT_PROGRAM_NAME:-flenv};
>      op="$1";
>      case $op in 
>      activate | deactivate | switch)
>      tmpf=$(mktemp -t flenv.XXXXXXXX);
>      flight_ENV_eval=true flexec ruby $flight_ENV_root/bin/flenv "$@" > $tmpf;
>      rc=$?;
>      if [ $rc -gt 0 ]; then
>      cat $tmpf;
>      unset FLIGHT_PROGRAM_NAME;
>      return $rc;
>      else
>      source $tmpf;
>      fi;
>      rm -f $tmpf
>      ;;
>      *)
>      flexec ruby $flight_ENV_root/bin/flenv "$@"
>      ;;
>      esac;
>      fi;
>      unset FLIGHT_PROGRAM_NAME
>     }
>     BASH_FUNC_flight()=() {  local cmd;
>      if [ "$1" ]; then
>      cmd=$("${flight_ROOT}"/bin/flight --resolve $1);
>      if [ "$(type -t flight_$cmd)" == "function" ]; then
>      flight_${cmd} "${@:2}";
>      return;
>      fi;
>      fi;
>      flexec flight "$@"
>     }
>     BASH_FUNC_flstop()=() {  local op;
>      op="$1";
>      case $op in 
>      help | hel | he | h | --help | -h)
>      flexec flight stop "$@"
>      ;;
>      '')
>      source "${flight_ROOT}"/libexec/flight-starter/stop.sh --shell "$@"
>      ;;
>      *)
>      echo "Usage: flight stop [--help]"
>      ;;
>      esac
>     }
>     BASH_FUNC_flintegrate()=() {  flexec flintegrate "$@"
>     }
>     BASH_FUNC_flactivate()=() {  flexec flactivate
>     }
>     BASH_FUNC_flight_env()=() {  export FLIGHT_PROGRAM_NAME="flight env";
>      flenv "$@"
>     }
>     BASH_FUNC_flight_stop()=() {  flstop "$@"
>     }
>     BASH_FUNC_flexec()=() {  if [ -z "$1" ]; then
>      echo "flexec: usage: flexec <command> [<arg>...]";
>      return 1;
>      else
>      if [ -x "${flight_ROOT}/bin/$1" ]; then
>      if [ "${-#*i}" != "$-" ]; then
>      flight_MODE=interactive;
>      else
>      flight_MODE=batch;
>      fi;
>      local exit_code;
>      flight_MODE=${flight_MODE} "${flight_ROOT}/bin/$1" "${@:2}";
>      exit_code=$?;
>      unset flight_MODE;
>      return $exit_code;
>      else
>      echo "flexec: not found: $1" 1>&2;
>      return 1;
>      fi;
>      fi
>     }
>     BASH_FUNC_fl()=() {  flight "$@"
>     }
>     _=/usr/bin/printenv
>     OLDPWD=/users/adfx762
> Trigger local server download
[12:15:44.802] > b5ee42c36c1c:trigger_server_download
> artifact==server-linux-x64==
> destFolder==/users/adfx762/.vscode-server/bin/==
> destFolder2==/e7e037083ff4455cf320e344325dacb480062c3c/vscode-server.tar.gz==
> b5ee42c36c1c:trigger_server_download_end
> Waiting for client to transfer server archive...
> Waiting for /users/adfx762/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/vscode-server.tar.gz.done and vscode-server.tar.gz to exist
>  
[12:15:44.804] Got request to download on client for {"artifact":"server-linux-x64","destPath":"/users/adfx762/.vscode-server/bin//e7e037083ff4455cf320e344325dacb480062c3c/vscode-server.tar.gz"}
[12:15:44.805] Downloading VS Code server locally...
[12:15:45.062] Terminating local server
[12:15:45.065] Resolver error: Error: XHR failed
    at y.onerror (vscode-file://vscode-app/private/var/folders/bs/h_4q_w4s3vnby7m9t994_4bc0000gn/T/AppTranslocation/AB498794-7B07-42C2-8B1D-3E363B71934F/d/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:95:1261)
[12:15:45.072] ------


Anything else?

No response

@Razbolt Razbolt added the ssh Issue in vscode-remote SSH label Jul 31, 2024
@roblourens
Copy link
Member

Looks like you're on VS Code 1.83.0, this is pretty old and wouldn't have whatever fix was applied.

@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Sep 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

2 participants