microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.34k stars 814 forks source link

Error code: Wsl/0x80070422 Immediately after 1024-10 latest Windows Update #12146

Open EricBLivingston opened 20 hours ago

EricBLivingston commented 20 hours ago

Windows Version

Microsoft Windows [Version 10.0.22631.4317]

WSL Version

WSL version: 2.3.24.0

Are you using WSL 1 or WSL 2?

Kernel Version

Kernel version: 5.15.153.1-2

Distro Version

Can't start it

Other Software

No response

Repro Steps

Any wsl command besides --version generates this error. I can't unregister, install, or do anything else with it.

I've tried sc config LxssManager start=auto and ensuring it's running I've also ensured vmcompute is set to auto and is running

The only hint I have is that I noticed that after a reboot or two LxssManager has been reset to Manual and was off again. It seems something in the update is resetting that - perhaps it's part of the issue.

Expected Behavior

wsl should run. I had been running it for months and changed nothing except applied the latest update.

Actual Behavior

(base) PS C:\WINDOWS\system32> wsl The service cannot be started, either because it is disabled or because it has no enabled devices associated with it. Error code: Wsl/0x80070422

Diagnostic Logs

WslLogs-2024-10-09_06-46-06.zip

github-actions[bot] commented 20 hours ago

The logs show that wslservice is disabled. Try to run (elevated command prompt): sc.exe config wslservice start= demand and see if that solves the issue

Diagnostic information ``` Detected appx version: 2.3.24.0 Detected user visible error: Wsl/0x80070422 ```
EricBLivingston commented 20 hours ago

That command did work, and I was able to run wsl afterwards. However, when I rebooted, the WSL Service had returned to Disabled again. Something appears to be re-disabling the service each reboot.