-
Notifications
You must be signed in to change notification settings - Fork 295
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
Cannnot reconnect to WSL after Windows resumes #3158
Comments
This happens a lot to me. |
@chrisdias Can you run |
This no longer happens for me all the time, only occasionally, but I can't identify exactly when.
|
This has been happening to me too, starting sometime in 2020. When Windows resumes, I get the "Cannot reconnect. Please reload window" message. I used to be able to just click the "reload window" button, and everything would be fine after that. But starting about a month ago, after the window reloads, a message pops up giving a 5 second countdown before it tries to reconnect again. If I let it try to reconnect in that way, it always fails and gives the "Cannot reconnect. Please reload window" message again. The only way to break the cycle is to manually click the "reload window" button before the 5 second countdown expires. At that point it connects properly. This has become incredibly annoying. |
I have this issue a lot after a windows reinstall that wasn't happening my first time using it. Before I had tweaked WSL with a few modifications to how the network was connected to host and a different systemd script I think which may have helped, but those were hacks at the time and now there I think was more official WSL support for those things that I didn't use random git users scripts to make those work. Anyway, I don't only get this popup when it wont reconnect. Sometimes it just shows me a notification in the bottom right that it couldn't open my file in the remote. Using the bottom left button on the toolbar that says (WSL: Ubuntu) fails to reconnect as well. It seems as though this attempt to reconnect is failing to do the same flow as the initial connect for some reason. |
I have the same problem, however I think this started when I changed my IP range of my home network. This might trigger this issue. |
This is indeed very annoying. Pressing the "Reload Window" button usually works, but
I am on my employer's laptop with Microsoft Windows 10 Enterprise LTSC. Edit: I am not using WSL, but connect to a Linux desktop via ssh. |
Thanks @aurisnoctis. SSH and WSL are quite different regarding the way reconnection works. Therefore I'm closing this issue as fixed. |
OK, is the "Reconnect. Please reload the window"-Issue also fixed for users connecting to a Linux machine via ssh? All issues about that seem to be closed but it's not solved (for me at least). Thank you for pointing me somewhere re my description above - either documentation or related issues are welcome. 🙏 |
@aurisnoctis If there's no open issue about reconnect in SSH, please file a new issue that describes your setup and your steps. |
I think this is new behavior? If I have an instance of VS Code open on a Ubuntu instance and the computer goes to sleep, when i log back in again I get a reconnect prompt:
To repro
The text was updated successfully, but these errors were encountered: