Skip to content
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

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

Open
1 of 2 tasks
EricBLivingston opened this issue Oct 9, 2024 · 5 comments
Open
1 of 2 tasks

Comments

@EricBLivingston
Copy link

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?

  • WSL 2
  • WSL 1

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

Copy link

github-actions bot commented Oct 9, 2024

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
Copy link
Author

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.

@Hotziplotzi
Copy link

Hotziplotzi commented Feb 13, 2025

I have a similar issue now on Windows 11 Pro, Build 26100.3194.
WSL-Version: 2.4.10.0
It seem that recently a Windows update changed the setup.
Most posts I read on similar issues talk about a Windows service "LxssManager" but that exists no more. Now there is this service called "C:\Program Files\WSL\wslservice.exe"
And this one also turns itself to "disabled" every single time I reboot my PC.
The temporary workaround is to set it to "automatic" and the manually start it, but after next boot it is turned to disabled again.

This here describes the same:
https://superuser.com/questions/1725594/windows-lxssmanager-is-missing-from-services-msc

I have both Ubuntu from MS Store installed and Docker Desktop. Both rely on the WSL service running.

Any ideas on how to make the service automatically start?

@EricBLivingston
Copy link
Author

EricBLivingston commented Feb 13, 2025 via email

@Hotziplotzi
Copy link

Ok, with a lot more searching and trying I found this one:
#11628 (comment)
and it actually did solve my issue as well.

So the problem cause is Avast One, specifically the Avast One service "Avast Cleanup" ("C:\Program Files\Avast Software\Cleanup\TuneupSvc.exe").

Once I disable (set to just "manual" is not enough) this crap Avast service, the WSL service keeps autostarting and running.
The cleanup service also doesnt seem to be any crucial protection service but only related to "system tuning" which is less than important.

Just for reference I found the following related issues:
#7746
#11582
#11628

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants