-
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
WSL network crash under constant load #10817
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:
|
happening here too, but it's only the networking that breaks, you can still run commands using |
Exactly, after networking broke, everything else looks working, but to get the network back, need to shutdown WSL and re-launch. |
How are you accessing the WSL container from the Windows Host? Is it through the Docker bridge? Docker has a new release you may try. |
I don't think it's related to WSL is using default networking settings, I didn't change anything. Have you tried to reproduce the error using repo and steps I've made? That's shouldn't take more than few minutes to show the problem. |
My network fails when i open explorer. |
wsl2 constantly crashes for me too when under heavy load. But I am not even sure that it can be called heavy?! I have an SDK that supports multiple platforms, so I run a script that creates build directory for all those (about 10) different platforms and run cmake in the background to configure all of them. Something like so:
Never got a single successfull run, ever! It crashes all the time and closes all open wsl windows. And sometimes I cannot restart it, I have to do this first:
It is extrimely annoying and disappointing!
|
Any update on this? This is making WSL useless for any real usage. |
@OneBlue , it looks like the wslrelay is timing out trying to talk to the container. (lots of WSAETIMEDOUT errors on the relay sockets) + we can see an HvSocketConnectionDisconnected event that precedes it. Are there any known hvsocket issues? |
I have encountered a similar problem, and I feel that this problem is related to Ipv6(because |
Right, accessing the container from the host is supported only through 127.0.0.1 in Mirrored Mode (there Linux option we use to enabling routing loopback traffic only exists for IPv4, not IPv6, unfortunately). Does crashing under load only happen when in NAT Mode? or in Mirrored Mode? |
Mirrored mode is not supported when I try to enable it, it switch back to using NAT - where can I find requirments for this mode or check why it's not supported? |
Hi there. Mirrored Mode is supported on Windows 11 22H2 or later. |
As I wrote, I'm on Windows 10 and can't use that mode. Can't this be fixed, as it was working fine before some versions of WSL and started to break in recent (now almost a year) versions. |
I have an application that tunnels via HTTPS to create an SSH like experience in a shell. It is sort of like a VPN in the end, as it uses Tailscale to make the connection. At any rate, the issue was, if I ran the application in WSL2 (Ubuntu 24.04), my Windows Networking would freeze after about 3-5 minutes and basically cause my machine to be useless with no Internet connection. I also couldn't reset the WIFI adapter. It was locked. I'd have to reboot every time to get the system working again. Mirrored mode fixed it! Thanks for the tip! Scott |
So under Windows 10 - there's no way to fix it, becuase mirrored mode is not supported - this render WSL usuless in the end :( |
Windows Version
Microsoft Windows [Version 10.0.19045.3693]
WSL Version
2.0.11.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.133.1-1
Distro Version
Ubuntu-20.04
Other Software
Docker version 23.0.2, build 569dd73 (run inside WSL)
Repro Steps
I've created sample repo with repro steps and needed software - https://github.com/sec/wsl-network-crash-test
In short
Doing
wsl --shutdown
and launching WSL/Docker again fix the issue, but that's not the solution to take.I'm having this issue for many versions back, I've tried to downgrade to almost all possible ones 2.x and the problem is inside all of them. IIRC under 1.x this was working fine (I have big project that I work on that's running containers inside Docker which are accessed from Windows host).
Logs attached, started with everything working, then run the repro steps, it crashed the network, logs collected - hope there's something inside that will help fix this.
Expected Behavior
Network connection from Windows to WSL should work.
Actual Behavior
WSL network cannot be accessed from Windows host.
Diagnostic Logs
WslLogs-2023-11-23_10-48-17.zip
WslNetworkingLogs-2023-11-23_11-17-11.zip
The text was updated successfully, but these errors were encountered: