-
Notifications
You must be signed in to change notification settings - Fork 850
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
[wsl2] Import failed with: The operation timed out because a response was not received from the virtual machine or container. #4726
Comments
wsl --shutdown also fails after encountering this issue with |
According to docker/for-win#5256 (comment), this also happens on 19033 |
However, out user does not see "server execution failed" on following wsl commands. Might be an unrelated problem |
@simonferquel - could you take a trace please? |
It is difficult to trace as it is difficult to reproduce consistently. |
@benhillis after automatically uncompressing / unencrypting the folder we had much less occurrences of this bug. However, we still see it happening on Windows Home 19041. Problem is, we have no way to connect to those machines in RDP to play with the machine once the problem is triggered :/. |
Enabling the traces during your tests would be a good idea and should not impact functionality. |
We just updated our jenkinsfiles to do just that. Brace for a lot of log parsing :D |
(also don't hesitate to ping me if you think other traces could be interesting - for hns maybe ? |
lxcorelogs.zip
After that error, we do a second try. This time it is failing when terminating the lingering docker-desktop distro:
Hope the logs can help! |
Thanks @simonferquel, do you happen to have any memory dumps for the lxssmanager service? They would be either WER or Watson crashes, you should be able to find them in eventvwr. Thanks! |
Unfortunately these are ephemeral Azure agents, without RDP on it (and the particular instance on which this happen got scrapped out already). Would you have a powershell script at hand to automate collecting this ? |
@simonferquel, no I'm not aware of any automated way to collect these dumps. |
Ok, let me ping @StefanScherer so that we find a way to enable at least a remote powershell to those machines and we'll monitor those kind of errors, and try to get dumps if we see this happen in the coming days |
traces and wer file.zip Build is 19041 |
@simonferquel - Thanks, I was able to confirm this is an issue we have fixed and are working on backporting to 19041. |
Awesome! That is actually the most frequent issue in our CI nowadays, glad to hear a fix is coming :) |
What is the current state of the issue? I have a similar issue and I'm currently on 19041 ... |
Another report, with slightly different wsl.exe output (zip contains wsl.exe output + etl traces): |
This happens to me reliably every time I try to start Ubuntu that I got from the Microsoft Store. I followed the steps here: https://docs.microsoft.com/en-us/windows/wsl/install-win10 And the very first time I started the Ubuntu container, it prompted me for the root password, then displayed:
Now every time I try to start the container, it hangs for a while then prints that message. This is easily reproducible for me since it happens every time. I'm running Windows 10 19042.630. Is there any debugging information that I can collect or any steps that I can take to get WSL2 working? edit: I installed VirtualBox before I installed WSL2 since I did not know that they might conflict. Perhaps that is the issue? edit2: I uninstalled VirtualBox but I still get the same error message. |
Thanks for this clue, I tried this command and the problem solved. |
Since this issue is still open I would like to add that today, I experienced WSL problem failing to import and thereafter hanging. I've run the import on the same system and a couple others without fail until now.
More details:
I've since disabled and enable WSL on the system, which seemingly fixed the WSL problem (WSL doesn't hang anymore and the Import completed on the second attempt). However. I still cannot delete the target folder created for the failed import. |
This started happening to me after an upgrade to Windows 11.
|
I face the same issue as well after upgrading to windows 11. |
What worked for me is - |
i was working for git connection to wsl that i found this error too...ouuuuch...... |
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! |
Please fill out the below information:
Your Windows build number: 19018
What you're doing and what's happening:
Sometimes (very rarely, but it happens) registering a distro with
wsl --import <...> --version=2
fails withThe operation timed out because a response was not received from the virtual machine or container.
.After that, wsl seem totally unusable (
wsl -l -v
hangs).I can confirm that the machine on which I last saw the error has no file encryption/compression enabled.
What's wrong / what should be happening instead:
wsl --import should work reliably, and errors should not put wsl in an unstable state.
For WSL launch issues, please [collect detailed logs]:
The issue happened on a CI machine and it happens randomly and rarely, so I am unable to get detailed logs for that.
The text was updated successfully, but these errors were encountered: