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

Enable setting HTTP proxies for VSC server with Remote - SSH #5727

Closed
EricHripko opened this issue Oct 15, 2021 · 2 comments
Closed

Enable setting HTTP proxies for VSC server with Remote - SSH #5727

EricHripko opened this issue Oct 15, 2021 · 2 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) proxy Issues regarding network proxies ssh Issue in vscode-remote SSH

Comments

@EricHripko
Copy link

Overview

It seems like remote VS Code instances with Remote - SSH extensions are using the proxy configuration of the client environment. That doesn't always work as developer workstation may use a different set of proxies (or no proxies) unlike the target server being remoted to. Possibly related issue #957.

Environment

  • Version of VS Code: 1.61.0
  • What type of remote connection you were using: SSH
  • Your operating system: Windows
  • The remote operating system you are connecting to: Linux
  • List of extensions that you have installed: attempting to install C/C++ extension

Steps to reproduce

  • Have a local environment that doesn't require proxies or uses a different set of proxies from the target server
  • Connect to the target server via Remote - SSH
  • Attempt to install C/C++ extension extension
  • After a while, the extension will be installed and will try to install its dependencies
  • Dependencies will eventually fail to install:
Downloading package 'C/C++ language components (Linux / x86_64)'  Failed. Retrying... Failed. Retrying... Failed. Retrying...Waiting 8 seconds... Failed. Retrying...Waiting 15 seconds... Failed. Retrying...Waiting 15 seconds... Failed. Retrying...Waiting 15 seconds... Failed. Retrying...Waiting 15 seconds... Failed. Retrying...Waiting 15 seconds... Failed. Retrying...Waiting 15 seconds... Failed to download https://go.microsoft.com/fwlink/?linkid=2175018
Failed at stage: downloadPackages
Error: Failed to establish a socket connection to proxies: ["PROXY someredactedproxyhost"]
  • Observe the failure due to VSCode server attempting to use client proxies (someredactedproxyhost is what my laptop is using and isn't applicable to the target server)

While the reproduction case use C/C++ extension, this also applies to any other extension that downloads additional dependencies.

@github-actions github-actions bot added the ssh Issue in vscode-remote SSH label Oct 15, 2021
@chrmarti chrmarti added the proxy Issues regarding network proxies label Oct 19, 2021
@chrmarti
Copy link
Contributor

Duplicate of #986, continuing there.

@chrmarti chrmarti added the *duplicate Issue identified as a duplicate of another issue(s) label Oct 19, 2021
@EricHripko
Copy link
Author

Sorry, didn't realise it was a duplicate! Thank you for quick triaging 👍

@github-actions github-actions bot locked and limited conversation to collaborators Dec 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) proxy Issues regarding network proxies ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

2 participants