WSL2 distro dies when the PC is sleeping
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 33.7k
- Forks
- 1.8k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 116
Description
### Version
Microsoft Windows [Version 10.0.22621.382]
### WSL Version
- [X] WSL 2
- [ ] WSL 1
### Kernel Version
5.15.57.1
### Distro Version
Ubuntu-20.04
### Other Software
_No response_
### Repro Steps
The bug is floating. Regularly, but not always, I found all WSL2 apps in the Ubuntu distro have been killed while the PC was asleep. Docker Desktop usually survives. Opened shell windows in the Ubuntu distro exit with an error status.
### Expected Behavior
All apps are working when waking from sleep.
### Actual Behavior
Sometimes apps are killed.
### Diagnostic Logs
How to see logs right when the issue happened, without turning logs on permanently for days?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The report identifies WSL 2 on Ubuntu-20.04, kernel 5.15.57.1, and Windows 10.0.22621.382; no source file or test is named. First reproduce a sleep/wake cycle and determine how to capture diagnostic logs immediately afterward. Done means identifying why applications are killed and verifying that they remain available after waking.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ubuntu
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100