microsoft / microsoft/WSL

WSL2 distro dies when the PC is sleeping

Open
#8,763 73 comments 34 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.