-
Notifications
You must be signed in to change notification settings - Fork 822
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
No internet connection under WSL2, but works fine under WSL1 #10349
Comments
I am also having the same issue. |
Do you know if this occurred as a result of a specific windows update? /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! |
@pmartincic which files from the logs generated should I upload to the issue, it generated a lot of files, and I'm concerned about personal info being leaked. Thanks for your help and time :) |
Well, we would like all the logs? It'll contain arguments passed to wsl.exe, for example. More specifically the etl? If you desire, you may parse most of that file using WPA or tracefmt. If you choose not to share, that is your choice? But that also means we can't do much. You can also email it to our PM: [email protected] if you prefer that route. |
@pmartincic I've updated the issue with the logs needed, thanks for your time and patience ✌ |
Hello, similar thing happened to me recently. Internet connection in WSL2 stopped working when the laptop is connected to my mobile hotspot. When connected to a router, everything works ok. WSL1 works for both mobile hotspot and router. |
@thes01 did you find a way to fix it? |
This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-open it. Thank you! |
Why close the issue? I'm still waiting for @pmartincic reply |
That's an error on our part, reopening |
Thank you, appreciate your patience and time ✌️ |
I've been suffering with this as well. I've read the issue with interest, tried out a few things, but to no avail. |
Here is the solution. |
Windows Version
Microsoft Windows [Version 10.0.19045.3208]
WSL Version
1.2.5.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.90.1
Distro Version
Ubuntu
Other Software
No response
Repro Steps
Installed multiple versions of Ubuntu (18, 20, 22) from different sources (Windows store, wsl cli, downloaded directly from windows wsl docs page)
Expected Behavior
Working internet connection under both versions of the distro installations, but it only works while using WSL1 but no way to make it work again under WSL2
Actual Behavior
I was only using WSL2 for all my Linux usage, and suddenly out of nowhere, WSL2 stopped connecting to the internet. I used every possible solution out there to make it work again:
nameserver
in/etc/resolvr.config
setting: it didn't workwsl.config
file: it didn't workI've defaulted for the moment to WSL1, until I can fix this. Otherwise I guess I'll do a fresh Windows installation.
Diagnostic Logs
I ran the
collect-wsl-logs.ps1
script and when asked to reproduce the issue I ranping bing.com
on the WSL machine that doesn't connect to the internet. I uploaded the log files as is without touching them.https://github.com/0xBeshoy/wsl/blob/main/WslLogs-2023-08-09_15-58-30.zip
The text was updated successfully, but these errors were encountered: