Skip to content
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

Network crashes - Connectivity to ubuntu guest fails after file upload / network stress #8598

Closed
1 of 2 tasks
joachimnielandt opened this issue Jul 12, 2022 · 5 comments
Closed
1 of 2 tasks

Comments

@joachimnielandt
Copy link

joachimnielandt commented Jul 12, 2022

Version

Microsoft Windows [Version 10.0.22000.778]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.10.102.1

Distro Version

Ubuntu-22.04

Other Software

Client: Docker Engine - Community
Version: 20.10.17

Repro Steps

Network connectivity seems to drop after stressing the network. I experienced this by

  • running a tomcat docker container and uploading a large (200MB) .war file - invariably this fails
  • running iperf3 server in ubuntu and iperf3 client in windows - after a while this fails

After failure, I cannot ping my docker services or connect to my iperf3 server. After wsl --shutdown, network is restored (until it fails again). Services remain running in WSL though: I can access them from within Ubuntu, just not from Windows.

Expected Behavior

Network connectivity remains, even when stressed.

Actual Behavior

Network fails.

Diagnostic Logs

Not sure how to proceed - is it possible to generate a network-stack debug log for WSL?

@OneBlue
Copy link
Collaborator

OneBlue commented Jul 12, 2022

/logs

@ghost
Copy link

ghost commented Jul 12, 2022

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:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

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!

@joachimnielandt
Copy link
Author

joachimnielandt commented Jul 13, 2022

Pleasure, thanks for pointing out how to create a log file, wasn't aware of this option before. I have added the log output as requested.

WslLogs-2022-07-13_10-20-00.zip
.

@ghost ghost removed the needs-author-feedback label Jul 13, 2022
@joachimnielandt
Copy link
Author

joachimnielandt commented Jul 13, 2022

I created a second one, this time a bit more concise I hope. I did the following:

  • shutdown wsl
  • started docker inside
  • initiated the tomcat upload of the .war file
  • saw the network crash occur
  • initiated a wsl shutdown.

WslLogs-2022-07-13_11-54-02.zip

This might be relevant, but not clear to me at this point. There's plan9 and docker activity (involving port 8080, which is exposing tomcat). Couple seconds later, the host network service is stopped?

Event Name                                                          	 Time MSec	Process Name          	Rest  
Microsoft.Windows.Plan9.Server/Request_Tclunk                       	48.591,702	Process(16200) (16200)	ThreadID="5.628" ProcessorNumber="6" tag="0" fid="5" 
Microsoft.Windows.Plan9.Server/Reply_Rclunk                         	48.591,765	Process(16200) (16200)	ThreadID="5.628" ProcessorNumber="6" tag="0" 
Microsoft.Windows.Subsystem.Lxss/PortRelayUsage                     	48.592,116	Process(5372) (5372)  	ThreadID="9.656" ProcessorNumber="2" count="2" family="2" port="8.080" executableName="docker-proxy" PartA_PrivTags="33.554.432" 
Microsoft-Windows-Host-Network-Service/TimerCallback                	52.716,400	Process(3116) (3116)  	ThreadID="21.376" ProcessorNumber="12" 
Microsoft-Windows-Host-Network-Service/GoalStateDriverCallBack/Start	52.716,404	Process(3116) (3116)  	ThreadID="21.376" ProcessorNumber="12" PartA_PrivTags="0" wilActivity="{ "threadId":21376 }" startTime="54.112.843" networkId="00000000-0000-0000-0000-000000000000" ActivityID="9ddcd6b8-9620-000c-dd80-e59d2096d801" 
Microsoft-Windows-Host-Network-Service/Enterfunction                	52.716,407	Process(3116) (3116)  	ThreadID="21.376" ProcessorNumber="12" Function="HNS::Service::Interface::ICallbackPool::RunCallbacks" Line="71" 
Microsoft-Windows-Host-Network-Service/Exitfunction                 	52.716,410	Process(3116) (3116)  	ThreadID="21.376" ProcessorNumber="12" Function="HNS::Service::Core::EntityManager<class std::shared_ptr<class HNS::Service::Network::BaseNetwork> >::Enumerate" Line="234" success="0" 
Microsoft-Windows-Host-Network-Service/Enterfunction                	52.716,422	Process(3116) (3116)  	ThreadID="21.376" ProcessorNumber="12" Function="HNS::Service::Interface::ICallbackPool::RunCallbacks" Line="71" 
Microsoft-Windows-Host-Network-Service/Exitfunction                 	52.716,422	Process(3116) (3116)  	ThreadID="21.376" ProcessorNumber="12" Function="HNS::Service::Interface::ICallbackPool::RunCallbacks" Line="96" success="0" 
Microsoft-Windows-Host-Network-Service/Exitfunction                 	52.716,423	Process(3116) (3116)  	ThreadID="21.376" ProcessorNumber="12" Function="HNS::Service::Interface::ICallbackPool::RunCallbacks" Line="96" success="0" 
Microsoft-Windows-Host-Network-Service/GoalStateDriverCallBack/Stop 	52.716,426	Process(3116) (3116)  	ThreadID="21.376" ProcessorNumber="12" DURATION_MSEC="0,021" PartA_PrivTags="0" wilActivity="{ "hresult":0, "threadId":21376 }" ActivityID="9ddcd6b8-9620-000c-dd80-e59d2096d801" 

Copy link
Contributor

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants