-
Notifications
You must be signed in to change notification settings - Fork 797
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
WSL freezing on startup with networkingMode=mirrored after installing 2.1.0.0 even after downgrade #11005
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Open similar issues:
Closed similar issues:
|
vim .wslconfig |
Please collect traces : https://github.com/microsoft/WSL/blob/master/diagnostics/collect-networking-logs.ps1 |
@keith-horton I did my best, the script runs wsl.exe several times which freezes each time so I had to forcefully terminate the WSL service after a while each time it happened to allow the script to continue. So I don't know if these logs are useful but I uploaded them for you to Azure Blob Storage so I can delete them later. |
Thanks! There are 2 different issues happening.
Could you follow the instructions here https://github.com/Microsoft/WSL/blob/master/CONTRIBUTING.md#11-reporting-a-wsl-process-crash to capture the memory dmp of WSL crashing? Thanks! |
@keith-horton It doesn't crash, it becomes unresponsive. I collected this dump shortly after it seems to halt, I hope it helps. |
Hi there. in the previous traces submitted we could clearly see at some stage our service no longer responding to calls - and eventually crash and completely restart. |
I killed the process tree using Process Explorer to get the script moving along, isn't that what you were seeing? |
I just tried v2.1.1 and while it didn't solve the issue I noticed that mirrored mode worked once at first after a fresh boot but if I shut down WSL using |
Thanks for sticking with this David. Can you run the script https://github.com/microsoft/WSL/blob/master/diagnostics/collect-networking-logs.ps1, then stop it once you have a repro? Just so it's clear: when you say it's frozen, does that mean:
(this time please don't kill any processes) if running "wsl" commands hangs or fails, can you get a process dmp from Task Manager? Right-click on wslservice.exe and click "Create memory dump file". Thanks! |
@keith-horton I'm not sure what you mean by stop it, that script doesn't work without killing the processes because it can't even collect the before data. I'm talking about this line here:
I left it running for 10 minutes and the log file the WSL Linux shell goes away? or it stays but doesn't respond to keyboard input? does "wsl --version" or "wsl --status" complete, or fail with an error?
But Here is a full dump file of |
Thanks... this makes sense now. Yeah, the script is stuck trying to make a call through wsl.exe, but since the service is hung, that is also blocked. We're trying to see what is going on within Linux as to why our init instance doesn't seem to run. Can you take a manual trace? It uses the wpr profile from the same WSL/diagnostics. wpr -start wsl_networking.wprp -filemode wpr -stop .\wsl_trace.etl Thanks David. We cannot repro this, and have not heard this from others. Can you also share what distro you have installed, and any other software you have installed in the Linux partition? |
Interesting, I didn't even consider my distribution being a problem since Your question made me try some stuff, I installed a new blank Ubuntu distro and that one seems to work fine. Then when I was listing my software that's installed I realized I have a network mount in So it seems that my WSL freezes because systemd locks up because I don't have a network device when running in mirrored more, are there some other steps I can take to debug this now that we have gotten this far? Here's a trace when it froze And here's a trace when it started but I have no |
I also ran the https://blob.steamcore.se/github/WslNetworkingLogs-2024-01-31_20-42-19.zip |
Sorry for the spamming but I just double checked and the fresh Ubuntu install doesn't have working networking either, it has both an |
I just stumbled across issue #11263 so I tried removing the internal Hyper-V switch that I had configured but wasn't even using and suddenly mirrored seems to be working again. |
@DavidZidar , thanks for the follow-up - glad it's working now! |
@keith-horton It's complicated stuff I can imagine, thanks for investigating anyway! Unless you would like me to keep this issue open I'll close it in favor of the other one. |
Sure, feel free to close this one. |
Windows Version
Microsoft Windows [Version 10.0.22631.3007]
WSL Version
2.0.9.0 - 2.1.0.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.137.3-1
Distro Version
Debian 12
Other Software
No response
Repro Steps
Set the following in
.wslconfig
Then update to version 2.1.0.0 using
wsl --update --pre-release
Expected Behavior
WSL should work.
Actual Behavior
WSL freezes seemingly forever during startup of a distribution, I can't even list distributions using
wsl --list
when it's frozen.I have uninstalled the updates and see the same problem with
2.0.9.0
and2.0.14.0
even though it worked fine before installing2.1.0.0
.Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: