-
Notifications
You must be signed in to change notification settings - Fork 859
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 Service" service changes to disabled within 60 seconds of a reboot #11628
Comments
The log file doesn't contain any WSL traces. Please make sure that you reproduced the issue while the log collection was running. View similar issuesPlease view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it! Open similar issues:
Closed similar issues:
Diagnostic information
|
I'm 99% sure I caught the problem with this log. IDK what a wsl trace is; however, I'm wondering if there would be one given that, on power-up, WSL Service is not running until there is a demand. If I quickly open a terminal, WSL Service will start running and there is no problem. The problem occurs if there is no demand within about a minute, at which time WSL Service changes to Disabled. So WSL never runs and cannot be made to run without changing the service back to manual or auto. If I'm missing something, please let me know. Thx |
Thank you for reporting this @SidJnsn66. This is most likely caused by a third party program (there's no logic to ever disable wslservice), so this is most likely an antivirus / security solution. Could you share the list of all running process & services right after boot ? That should help scope down where this is coming from. |
That makes sense. Thanks for hanging with me to get closer to a solution. Here is the output of tasklist right after reboot and before WSL Service switches to Disabled. |
@SidJnsn66: I see a few processes that could potentially explain this service configuration change:
Could you try disabling those and see if that solves the issue ? |
Seems the problem is solved before I got your last message. I decided to clean up the registry using CCleaner in case traces of Avast were left and problematic. Apparently something in that did the trick. WSL service was Automatic - Delayed Start when I next rebooted, and never returned to Disabled. WSL runs as expected. |
Good to know, thank you ! |
@OneBlue I had the exact issue and it seems this Thanks for the hints above so I could figure it out. |
If I can provide more help for those who are still using Avast anti-virus and their Afterward, you can always enable the |
Windows Version
Microsoft Windows [Version 10.0.19045.4412]
WSL Version
2.2.4.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.153.1-2
Distro Version
Ubuntu-22.04
Other Software
None
Repro Steps
The WSL Service is set to Manual. Reboot the system. Open the Services window and see that it is still set to manual. Refresh the window repeatedly. Within 60 seconds, it will changed to Disabled.
Expected Behavior
The service should remain as manual, and should run when an Ubuntu terminal window is opened.
Actual Behavior
It changes to disabled, and nothing WSL works until it is manually changed back to manual or auto.
Note the following:
Sc.exe config WSLService start= demand makes no difference, nor does changing the start value in the registry directly
LxssManager is auto and running
Avast Antivirus has been completely removed.
Added an exception to Win Defender, and finally turned off Defender A/V. No change.
Docker has been completely removed.
Disabling the Security Health Service makes no difference.
Disabling my VPN service made no difference.
Only started happening within the last couple of weeks
Removing all distros and reinstalling wsl made no difference
Diagnostic Logs
WslLogs-2024-05-27_21-35-17.zip
The text was updated successfully, but these errors were encountered: