-
Notifications
You must be signed in to change notification settings - Fork 855
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 does not start right away #7298
Comments
/logs |
Hello! Could you please provide more logs to help us better diagnose your issue? You can find instructions on how to attach logs here, please make sure to post the link to the Feedback Hub item in this chat so we can see it. Thank you! |
I'm also having this issue. This is now the second machine on which this issue occurs this week. I was setting up a new Windows 10 2004 machine and installed all recent updates. I notice that the commands "wsl --status" and "wsl --update" on a machine which DOES work are unknown commands (19043.1110, 21H1). Pending windows updates:
After installing these three pending Windows updates, this working machine also didn't work anymore. So it's definitly one of these three Windows updates which causes the issue:
Solution! |
@GrumpyMeow hmm, actually I have been experiencing this issue long time ago, around early 2004 release (19041.267). However, with this latest update, the problem is even more pronounced. Previously it would only fail in the script, but never failed on manual The problem doesn't appear right away in my case. Has to do prolonged scripting WSL2 on a Windows app for it to appear. Once appeared, I can consistently reproduce it until next WSL2 shutdown. |
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! |
Windows Build Number
Microsoft Windows [Version 10.0.19043.1110]
WSL Version
Kernel Version
5.4.72
Distro Version
Ubuntu 20.04
Other Software
No response
Repro Steps
wsl.exe -- (command)
from a Windows program or script.wsl.exe
call works. If you do this in a rapid succession, let's say four times a second, then probably out of 10wsl.exe
calls, 5 succeeded, while the other 5 failed as if nothing happened.Expected Behavior
wsl.exe
should start the requested program inside the WSL2 Linux distro right away.Actual Behavior
Sometimes WSL2 does not want to start immediately. Instead it just bail out. This problem gets worse the more often I invoke the
wsl.exe
from a Windows program or script. As I was doing something here with a program, the problem is very easy to reproduce. As can be seen in this terminal,wsl.exe
just does nothing after several attempts.Note that this problem is not limited to 1904x builds, but all insider builds as well all the way to Windows 11 beta builds like 22000.
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: