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
WSL2 network unpredictably working or not #8620
Comments
When you're able to reproduce it: /logs |
Hello! Could you please provide more logs to help us better diagnose your issue? To collect WSL logs, download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The scipt will output the path of the log file once done. Once completed please upload the output files to this Github issue. Click here for more info on logging Thank you! |
This is a log where WSL2 has no connection: This is a log where connection is ok: |
I've also experienced this issue today/yesterday. Issue persists PC and service ( It's more of a sporadic networking issue instead of being fully up or down. Here are the logs with a failure. I consistently hit issues when installing/upgrading doom emacs due to the number of dependencies it clones. I've also had issues during GraphQL queries to GitHub and a number of other things so it doesn't seem to be something specific with More info on the
I cannot replicate this issue on any other non-WSL device on my network nor on the Windows host running this WSL instance. Ubuntu 22.04 - Linux 4.19.128-microsoft-standard #1 SMP Tue Jun 23 12:58:10 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux The iteration time is somewhat long (between 5-15 minutes), but I'm happy to try and collect more information as needed. Thank you, |
Just want to add that we are seeing this exact behaviour as exhibited above across multiple WSL2 environments |
Is there any VPN service in play? Anything automated that is happening with some other software running on the machine that might use a VPN connection in the background? |
No, I'm only using Windows Defender. |
@mhechthz So the issue has been going on for some time - Ouch. I know those are frustrating. As I mentioned in #9088, I'll try to noodle on this some, but as caveated there, I don't have a high success rate with helping out with networking issues. In general, I think I'm fairly good with troubleshooting WSL, as I have some 30,000 rep on Stack Exchange sites in WSL questions - Just not-so-much on the networking side. I'm going to throw my hail-Mary first -- Have you tried updating to a recent WSL release (Preview)? Other than that, some random questions to see if we can figure it out (and just let me know if and when you'd like for me to stop 😉):
That's got to be a clue (or a high-level of coincidence). Related:
How are you restarting WSL2? A |
By that, I'm assuming that you mean multiple PCs? And based on that, I'm assuming a corporate/university environment? Just looking for any common-denominators here. Any additional information you can provide (Windows versions, WSL versions, kernels, |
Just wanna throw another data point here - I've only recently upgraded from WSL1 to WSL2 last night on this home desktop computer. WSL1 never had any network reliability issues but now on WSL2 I'm constantly running into this kind of errors when installing doom-emacs:
No software configuration changes were made during the WSL1-WSL2 upgrade. It reminds me of a similar problem I encountered on Google Cloud - this one time a Linux VM were running into TCP connection timeouts seemingly at random, and as it turned out (described by a colleague) the Cloud NAT table "was full". Does this problem of WSL2 have anything to do with Windows firewall's NAT limitation? |
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request. Thank you! |
Version
Microsoft Windows [Version 10.0.22000.795]
WSL Version
Kernel Version
5.10.102.1
Distro Version
Ubuntu 20.04
Other Software
No response
Repro Steps
Well, the behaviour is not reproducible.
The WSL2 network connecivity is sometimes available and sometimes not. Sometimes means, that it works on one day and doesn't work the other day. If it doesn't work I can restart the WSL2 but nothing changes. I also restarted the computer without any change, but not very often ( one or two times). I check this every time directly after booting the computer, I a usually no other software runs.
I recorded this for a while: WSL2.pdf - I never changed something at the configuration of the computer. The behaviour was the same with Windows 10. The computer network is always available.
The parallel running WSL1 as well as the WSL1 I used before updating to WSL2 never had any problems with connectivity.
Expected Behavior
Starting computer - starting WSL2 (Ubuntu) - network available without any further action.
Actual Behavior
Starting computer - starting WSL2 (Ubuntu) - network unreproducibly not available without any chance to figure out why.
Diagnostic Logs
Don't know which logs to provide.
The text was updated successfully, but these errors were encountered: