-
Notifications
You must be signed in to change notification settings - Fork 822
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
Wsl die after laptop sleep and can't be reopened #9301
Comments
/dumps |
Hello! Could you please provide logs and process dumps to help us better diagnose your issue? To collect WSL logs and dumps, download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
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! |
@OneBlue hoping there is something useful... this dump is taken with the problem present... Since to repro this I have to make the pc sleep... will the dump command work in that case? |
I'm experiencing the same issue. I'm not sure if it happens every time the computer wakes from sleep or just most times, but this is definitely a problem. WSL seems completely stuck. When the problem manifests, the As a remedy to avoid reboot, killing the |
@kallja do you have by chance docker desktop installed? What image are you using? Wasn't aware of the taskkill procedure... That is useful for additional debug log. Nice! (btw wsl --shutdown also stuck) |
@OneBlue I finally found time to make a dump with the problem repro |
@kallja can confirm that by using the taskkill workaround wsl function is recovered. The bug can be repro by simply putting the pc to sleep back again... |
Having the exact same issue, except that |
just open task manager details tab... find wslservice and kill... reopen the related wsl instance. Also can you provide info of running kernel, win build and other? |
Sorry just read your full description and realized I don't have the exact same issue. Other differences:
VersionWindows: [10.0.19044 N/A Build 19044] Kernel5.15.79.1-microsoft-standard-WSL2 |
think you should open another issue |
Perhaps not as they were just closed as being duplicates of this one even though they have somewhat different symptoms, and in my case, a different version of WSL |
I've learned that if I perform a |
this wasn't the case before and wsl correctly worked after a sleep |
Sorry for the delay in answering.
I do have Docker Desktop installed. When the computer wakes from sleep, WSL is dead whether there were running Docker containers or not. That doesn't seem to be a contributing factor.
No. Nowadays this happens pretty much always when my computer wakes from sleep. |
Can confirm this is still present in latest dev build. |
I confirm that too. After hibernation S0/sleep/hybrid, whichever, gui killed, wsl still there but not responsive.
With debian and weston on for web dev, jetbrains gui running inside wsl. |
I have this problem as well and am wondering if it is to do with systemmd being turned on because I had problems with date time sync which gave me problems with hugo generating pages (as it thought they were in the future) |
Been having something kindof similar. Essentially the container is still running and I can still run commands and interact with it inside the container. However, any external commands (like docker desktop, any from vscode, etc) basically just die and never work. The ONLY way to fix is to completely shutdown WSL and restart it. This is definitely not ideal. It seems there is some intefacing bug with the running wsl instance that needs to be resolved. |
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! |
hate this bug.
workaround:
|
Version
Windows: [10.0.25252.1010]
WSL Version
Kernel Version
5.15.79.1
Distro Version
Ubuntu from store (with apt sources set to devel and package updated)
Other Software
No response
Repro Steps
Expected Behavior
Windows doesn't close Windows Terminal window and WSL should not be killed after sleep.
WSL should be recoverable in any case even if Windows kill the WSL process.
Actual Behavior
WSL can't be recovered after Windows kills it after sleep and a reboot is required.
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: