-
Notifications
You must be signed in to change notification settings - Fork 302
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
Get ECONNRESET during launch #6626
Comments
Does connecting to your remote box via SSH work when there's no dev container (through Remote-SSH and/or an external terminal not in VS Code)? Just want to try to see if the proxy issue could be from Remote-SSH, SSH in general, or Remote-Containers. |
Remote via SSH works perfectly. Absolutely game changing feature, that one. I just got the container thing to work. Only briefly, though. I tried a bunch of different network things to take outbound proxies and firewalls and whatever out of the equation. No change. Then I installed vscode on the server and forwarded it over vnc. Still no dice. I finally noticed that there is a I tried connecting from my workstation and it ALSO worked now. Yay. Before I declared success, I deleted the This is the log from when I just tried again: |
I ran vscode on the server again to bootstrap it. It worked. I could also connect correctly from my desktop. To make sure it wasn't just working because I somehow shared a connection into the container between my local vscode and the vscode running on the server, I rebooted it. I can still connect from my desktop. So it's only the bootstrapping process that fails for some reason. halp :) |
I installed the "Remote - SSH" extension in vscode on the server and did a loopback connection and then tried "reopen in container". That way, both are doing UI -> SSH -> docker. It worked. My desktop machine IS behind a transparent proxy. It proxies https, too, so any https client needs the proxy's CA cert, otherwise it'll fail to validate the tls cert. Could that be the culprit somehow? Does it attempt to fetch anything on the client side and that's why we get ECONNRESET on the tls connection? |
I think that's a different issue. The traceback I get doesn't say anything about handshake. A lot of the time when I try to add a new extension, I get an error and I'm directed to download it manually and install from the Could this be the same? That wouldn't happen until after the handshake. The |
I just tried installing a new extension, and I get this:
which looks like part of what I got in the log when trying to build and connect to the container here:
which makes perfect sense if the 429 isn't handled, and we just try to unpack the truncated (empty?) response. A little further down:
...which also makes sense if we're getting a truncated response. |
By default, Remote - SSH will attempt to download on the remote host, but if you enable I believe Remote-Containers will always download the server on the remote host. |
Hm. Then I'm at a loss :) I've managed to work out that the URL it's trying to fetch is https://update.code.visualstudio.com/commit:dfd34e8260c270da74b5c2d86d61aee4b6d56977/server-linux-x64/stable I can do that from the remote host, but not from my desktop. |
Remote-Containers always downloads the server tar from the local machine (where the VS Code window runs). We could add downloading remotely to make it work in this setup. |
@chrmarti That would be AMAZING. Thank you! |
Hi. I'm trying to use the dev container feature. I'm on a Mac and I'm using "Remote - SSH" to connect to a Linux development server. It runs Oracle Linux 8. I want the containers to run on that Linux box.
My devcontainer.json is unremarkable (chose C++ + Debian 11):
Here is the log: https://gist.github.com/sorenisanerd/779d37ba6350acdf4d4bf6fc88d5ef0c
I'm honestly not completely sure, but I believe there's a transparent proxy of some sort sitting in between my dev box and
update.code.visualstudio.com
, but I've tried both wget and curl, and they're both perfectly happy connecting to it. Unless I can reproduce or at least understand the problem, I can't really take it to my network team to get it fixed.I'm perfectly happy with a temporary workaround like, say, "download this file, put it in this directory, and it'll use that instead of trying to download it again", but I'm trying to make this work for a big team of engineers, so I need this addressed.
The text was updated successfully, but these errors were encountered: