Open DomRakowski opened 1 month ago
If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.
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!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
This is interesting. Can you details what you mean by network breaks
? Once you get in this state, can you share the output of something like: curl -v microsoft.com
to see what the symptoms look like ?
By "network breaks" I mean, I can't get to the target machine. I can only ping WSL IP address and the IP address of the NIC of my host machine.
I tried this behavior with an Ubuntu 24.04 VM and it works fine, it goes through each SSH sessions.
So it's definitely an issue with WSL.
@DomRakowski where is your postgres
container running, same machine or remotely? Using WSL Ubuntu Noble and a Docker container running on a remote RHEL machine all 200 connections are successfully executed:
WSL info:
WSL version: 2.2.4.0
Kernel version: 5.15.153.1-2
WSLg version: 1.0.61
MSRDC version: 1.2.5326
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26091.1-240325-1447.ge-release
Windows version: 10.0.19045.4651
@DomRakowski: Once you get into this broken state, can you share the output of: ssh -v <target> echo ok
?
@zcobol After upgrading from Ubuntu 22.04 to Ubuntu 24.04, when launching the script, it hangs after 100 SSH connections, but somehow WSL manages to recover and proceeds for another 100 SSH connections before hanging for a while. This behavior is looped afterwards :
Can you confirm me this behavior is happening also on your side ?
My postgres container is running on a separate machine.
@OneBlue After upgrading Ubuntu to 24.04, the behavior is not as heavy as before but still present. During the hanging part, it seems I can still ssh into the host, will do some further tests.
Interesting point to note, the behavior that I mentioned (100ssh connections, hanging, 100ssh connections, hanging, ... ) is also present on an another machine, but the hanging part is not as long as my machine.
This machine is a NUC with the following hardware configuration :
The machine that I work on is a laptop with this hardware configuration :
I'm pretty sure this is somehow related in the end to hardware utilization, but it shouldn't straight up break the network.
Windows Version
Microsoft Windows [version 10.0.19045.4529]
WSL Version
2.2.4.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.153.1-2
Distro Version
Ubuntu 22.04
Other Software
No response
Repro Steps
When launching this script, it stops at the 100th iteration and the WLS networks breaks afterwards :
After the 100th step, can't ssh into 10.0.204.230 and ping can't reach target after few minutes.
Expected Behavior
Expected to run this scripts to the end and WSL networks should stay fine
Actual Behavior
WSL network crashes, can't ssh into target and after 5 minutes, can't ping target. Instead I can ping the IP address of the Windows local machine
Diagnostic Logs
No response