-
Notifications
You must be signed in to change notification settings - Fork 301
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
Connection to Dev Container intermittently lost #10569
Labels
containers
Issue in vscode-remote containers
info-needed
Issue requires more information from poster
Comments
Please append the full Dev Containers log from when this happens. ( |
Contents of log file attached.devcontainerlog.txt |
It looks like the server stopped accepting connections. Please check its log file when this happens again:
|
This problem happens to me all the time. The test explorer and run and debug stop working. I have to reopen the VS Code. My DevContainerlog is:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
containers
Issue in vscode-remote containers
info-needed
Issue requires more information from poster
Does this issue occur when all extensions are disabled?: Yes/No
Steps to Reproduce:
======== start =======
[161127 ms] Start: Reconnection attempt 1
[161128 ms] CLIHost does not need reconnection.
[161129 ms] Start: Run: docker inspect --type container 315831e858149a72f63101097d833d73c66ab3eb8d8f02fec8601e20dedf2a29
[161201 ms] Port forwarding connection from 39044 > 38885 > 38885 in the container.
[161203 ms] Start: Run in container: /home/dusel/.vscode-server/bin/138f619c86f1199955d53b4166bef66ef252935c/node -e
[161474 ms] Port forwarding 39044 > 38885 > 38885 stderr: Error: connect ECONNREFUSED 127.0.0.1:38885
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1611:16)
[161475 ms] Port forwarding 39044 > 38885 > 38885 stderr: Remote close with error
[161487 ms] Port forwarding 39044 > 38885 > 38885 terminated with code 1 and signal null.
[161488 ms] Port forwarding 39044 > 38885 > 38885: Local close
[161497 ms] Port forwarding connection from 39068 > 38885 > 38885 in the container.
[161498 ms] Start: Run in container: /home/dusel/.vscode-server/bin/138f619c86f1199955d53b4166bef66ef252935c/node -e
[161809 ms] Port forwarding 39068 > 38885 > 38885 stderr: Error: connect ECONNREFUSED 127.0.0.1:38885
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1611:16)
[161810 ms] Port forwarding 39068 > 38885 > 38885 stderr: Remote close with error
[161824 ms] Port forwarding 39068 > 38885 > 38885 terminated with code 1 and signal null.
[161825 ms] Port forwarding 39068 > 38885 > 38885: Local close
===== end =====
I've tried the following fixes. None of them have consistently resolved the issue
docker ps
followed bydocker kill <name>
. This prompts a window reload within VS Code. The "reconnecting" message disappears but comes back eventually.docker container rm -f <name>
. Restart VS Code and, from the command palette, run "Rebuild without Caching and Open in Container.". The container rebuild proceeds normally, but the "reconnecting" message comes back eventually.The text was updated successfully, but these errors were encountered: