Closed Bjego closed 3 years ago
Try setting your user setting "http.proxy" to your "http://user:password@mycorporateProxy.com:8080".
Hi @chrmarti , yes my settings look like this:
{
...
"http.proxySupport": "on",
"http.proxy": "http://user:pass@mycorporateProxy.org:8080",
...
}
I even tried to sync the settings - also no luck. Any chance to get a more detailed log during connecting?
What type of authentication does your proxy require?
Hi @chrmarti , I think it's basic auth or ntlm.
In the meanwhile I found a workaround with a prebuild container, where I install the vscode server based on the current commit id:
FROM mcr.microsoft.com/vscode/devcontainers/typescript-node
ARG commit=507ce72a4466fbb27b715c3722558bb15afa9f48
ADD https://update.code.visualstudio.com/commit:${commit}/server-linux-x64/stable /root/.vscode-server/bin/${commit}/dl.tar.gz
RUN tar -xvzf /root/.vscode-server/bin/${commit}/dl.tar.gz --strip-components 1 -C /root/.vscode-server/bin/${commit}
RUN sudo chmod -R 777 /root/.vscode-server/bin
If this is a valid approach, how about adding this to the docs. Something like :
Prebuild containers with a vscode-server, in case you do have issues downloading the latest server on demand. Get your current commit id -> VSCode -> Help -> About -> Copy Values Build your container like this (see code above)
That's a great workaround. I'm hesitant to add this to the documentation since it's such an edge case.
Closing this issue, thanks.
@Bjego we are using your workaround to address #5085 which resovles the certificate error but results in the following, is this something you saw as well? If not then @chrmarti is this approach still a viable option or no longer supported?
[2021-08-10T13:22:12.414Z] Start: Run in container: /root/.vscode-server/bin/2aeda6b18e13c4f4f9edf6667158a6b8d408874b/server.sh --log debug --force-disable-user-env --port 0 --extensions-download-dir /root/.vscode-server/extensionsCache --start-server
[2021-08-10T13:22:12.918Z] Error: stream ended with:124 but wanted:1128865906
Hey guys, I'm trying to attach my Visual Studio Code to containers running in kubernetes on prem. Attaching fails while downloading the VSCode Server. My Pod has a proxy configured and also trusts the inhouse ssl cert.
When attaching the container the logs from VS Code are saying: