microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.69k stars 299 forks source link

Failed to fetch control manifest: connect ETIMEDOUT #9950

Open taoqf opened 6 months ago

taoqf commented 6 months ago

Steps to Reproduce:

  1. open in container
  2. waiting for timeout.
  3. remote opened.

Does this issue occur when you try this locally?: Yes/No Does this issue occur when you try this locally and all extensions are disabled?: Yes/No

taoqf commented 6 months ago

It is an issue about network. We chineses could not access github smoothly. Is there a way to avoid this?

chrmarti commented 6 months ago

Part of this is security related (we can put harmful Dev Container Features on a disallow list). It would be best to allow the connection. If you can't do that a workaround would be to immediately reject the connection at your network's firewall instead of letting it time out which takes a lot of time.

taoqf commented 6 months ago

Cancer? then Is there an configuration to set timeout?

taoqf commented 6 months ago

Not only github, there are to many connection we are been blocking.

chrmarti commented 6 months ago

I'm not a networking expert, but the error message you posted above ETIMEDOUT suggests that some firewall is silently dropping your connection attempts. It would be much faster if that firewall actively rejected the connection attempt, so it immediately fails and doesn't wait until the timeout occurs.

We can look into lowering the timeout on our side, but that would still have to be a value long enough to let slow connections succeed.

taoqf commented 6 months ago

That would be nice then.

chrmarti commented 6 months ago

Reopening to track lowering the timeout here. Thanks.

liftchampion commented 2 months ago

Looking forward to customizable timeout too. Have same error:

[7515 ms] userEnvProbe is taking longer than 2 seconds. Process not found.
[7978 ms] Stop (3516 ms): Run: docker buildx version
[7980 ms] github.com/docker/buildx 0.12.1 0.12.1-0ubuntu2.1
[7980 ms] 
[7981 ms] Start: Run: docker -v
[8016 ms] Stop (35 ms): Run: docker -v
[8017 ms] Start: Resolving Remote
[8027 ms] Start: Run: git rev-parse --show-cdup
[8035 ms] Stop (8 ms): Run: git rev-parse --show-cdup
[144217 ms] Failed to fetch control manifest: 
[144223 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/home/titov_g/monorepo --filter label=devcontainer.config_file=/home/titov_g/monorepo/.devcontainer/devcontainer.json

But as you can see i haven't got an error type.

I'm not sure does this problem cause hang, but I don't see other slow tasks.

richex-cn commented 2 months ago

8808 Adding 127.0.0.1 containers.dev to /etc/hosts? Worked for me. See this.