microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.37k stars 816 forks source link

Error: 0x80370109 The operation timed out because a response was not received from the virtual machine or container. #12095

Open Alisoltan82 opened 2 weeks ago

Alisoltan82 commented 2 weeks ago

Windows Version

Windows 11 Home

WSL Version

Default Version: 2

Are you using WSL 1 or WSL 2?

Kernel Version

2

Distro Version

ubuntu 2204.3.49.0

Other Software

Docker Desktop 4.34.2

Repro Steps

just A windows update

Expected Behavior

docker run

Actual Behavior

Screenshot 2024-09-28 150934_2

Screenshot 2024-09-28 151440_2

Diagnostic Logs


ensuring main distro is deployed: deploying "docker-desktop": importing WSL distro "The operation timed out because a response was not received from the virtual machine or container. \r\nError code: Wsl/Service/RegisterDistro/CreateVm/HCS_E_CONNECTION_TIMEOUT\r\n" output="docker-desktop": exit code: 4294967295: running WSL command wsl.exe C:\WINDOWS\System32\wsl.exe --import docker-desktop <HOME>\AppData\Local\Docker\wsl\main C:\Program Files\Docker\Docker\resources\wsl\wsl-bootstrap.tar --version 2: The operation timed out because a response was not received from the virtual machine or container. 
Error code: Wsl/Service/RegisterDistro/CreateVm/HCS_E_CONNECTION_TIMEOUT
: exit status 0xffffffff
checking if isocache exists: CreateFile \\wsl$\docker-desktop-data\isocache\: The network name cannot be found.```

cann't reinstall ubuntu as well

wsl --shutdown doesn't solve that
shutdown windows features virt machines and subsystem --nothing
reinstalling docker nothing
windows repair update nothing
bios system VM enabeled
whatever I try it gives no response.

anybody familier with such problem kindly provide your feedback or possible solutions
github-actions[bot] commented 2 weeks ago

Logs are required for review from WSL team

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.

How to collect WSL logs Download and execute [collect-wsl-logs.ps1](https://github.com/Microsoft/WSL/blob/master/diagnostics/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 script will output the path of the log file once done. If this is a networking issue, please use [collect-networking-logs.ps1](https://github.com/Microsoft/WSL/blob/master/diagnostics/collect-networking-logs.ps1), following the instructions [here](https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#collect-wsl-logs-for-networking-issues) Once completed please upload the output files to this Github issue. [Click here for more info on logging](https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#8-collect-wsl-logs-recommended-method) If you choose to email these logs instead of attaching to the bug, please send them to wsl-gh-logs@microsoft.com with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

View similar issues

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!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Alisoltan82 commented 2 weeks ago

Error: 0x80370109 The operation timed out because a response was not received from the virtual machine or container.

Press any key to continue...```
m1adow commented 2 weeks ago

Same here 🫠

gilberto-BE commented 2 weeks ago

I am having the same issue, it started after the latest windows update.

efimovvlad commented 2 weeks ago

I have the same issue. I tried everything to fix the problem. In the end, the problem was solved after the Windows update of 09/27/2024 was rolled out. But after that, a new problem appeared in Windows: "start menu isn't working"

AlexLovser commented 2 weeks ago

The same issue after latest Windows update.

But what really worked for me is 1) wsl.exe --set-default-version 1 2) wsl.exe --install -d Ubuntu 3) wsl.exe --set-default-version 2

It still doesn't work on Docker, but at least the wsl responds and work.

Varun0o commented 2 weeks ago

I am having the same issue

Exisfar commented 2 weeks ago

Hello everyone. I've found the reason of this issue. It is because the last update (KB5043145) of Windows breaks WSL2. I delete the update and restart then I am able to connect to WSL2.

KB5043145 breaks WSL2

img

ShunyiYang commented 2 weeks ago

1727600344586 Same question

ShunyiYang commented 2 weeks ago

The same issue after latest Windows update.

But what really worked for me is

  1. wsl.exe --set-default-version 1
  2. wsl.exe --install -d Ubuntu
  3. wsl.exe --set-default-version 2

It still doesn't work on Docker, but at least the wsl responds and work.

That works to me! At least I could use wsl terminal in VScode. Thanks a lot!

Varun0o commented 2 weeks ago

Hello everyone. I've found the reason of this issue. It is because the last update (KB5043145) of Windows breaks WSL2. I delete the update and restart then I am able to connect to WSL2.

KB5043145 breaks WSL2

ef990bc53c0ee46fe645eb8773c4d72

Hey Exisfar, Thanks to your solution, The WSL2 issue I had is fixed. Appreciate your help!

daryllmoya commented 2 weeks ago

Hello, need some urgent help, I cannot uninstall that update. image

Alisoltan82 commented 2 weeks ago

Hello everyone. I've found the reason of this issue. It is because the last update (KB5043145) of Windows breaks WSL2. I delete the update and restart then I am able to connect to WSL2.

KB5043145 breaks WSL2

ef990bc53c0ee46fe645eb8773c4d72

work - great!

this is a brilliant solution to remove the exact update file , as per attched image 'KB5043145" and mentioned by @Exisfar

Screenshot 2024-09-29 141604_55

AlexLovser commented 2 weeks ago

Hello everyone. I've found the reason of this issue. It is because the last update (KB5043145) of Windows breaks WSL2. I delete the update and restart then I am able to connect to WSL2.

KB5043145 breaks WSL2

ef990bc53c0ee46fe645eb8773c4d72

work - great!

this is a brilliant solution to remove the exact update file , as per attched image 'KB5043145" and mentioned by @Exisfar

Screenshot 2024-09-29 141604_55

Thank you bro, probably its the only one solution here.

boskee commented 2 weeks ago

Thank you for this. Uninstalling the update fixed the issue.

PraveenRajPurak commented 2 weeks ago

Thanks a lot sir. The latest update (KB5043145) had done something to wsl. I uninstalled the update and now it works well. I tried to re-install docker, wsl --shutdown, restarting system, manually install distro(which won't even run). But none of these worked. Only uninstalling the latest windows update worked.

thamp59 commented 2 weeks ago

Uninstalling the update fixed the issue for me as well

OneBlue commented 2 weeks ago

Sharing the instructions I posted https://github.com/microsoft/WSL/issues/12087. If you hit this issue, please:

For this to work, the dump must be captured while WSL is in that "hung" state (once the error is displayed, you need to start wsl.exe again)