-
Notifications
You must be signed in to change notification settings - Fork 854
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 Disables Automatically After Reboot or Logoff #11582
Comments
Logs are required for review from WSL teamIf this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. How to collect WSL logsDownload and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The scipt will output the path of the log file once done. Once completed please upload the output files to this Github issue. Click here for more info on logging 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:
|
The logs show that wslservice is disabled. Try to run (elevated command prompt): Diagnostic information
|
WSL Service started at first, but got disabled again shortly after reboot. |
Thank you @Haerbin23456. Do you have some kind of AntiVirus / security solution installed ? For instance we know that AVG can disable wslservice unless you create an exclusion rule. |
I installed Avast One, but I have added the WSL service executable (C:\Program Files\WSL\wslservice.exe) to Avast's exceptions already. The issue persists. |
For the sake of experimentation, can you try uninstalling Avast One to see if that resolves the issue ? |
Yes, that resolves the issue. |
Ok thank you. In that case it's pretty clear that the issue is caused by Avast One. Closing since the root cause of the issue is Avast. |
Windows Version
Microsoft Windows [版本 10.0.22631.3447]
WSL Version
2.1.5.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.146.1-microsoft-standard-WSL2
Distro Version
Ubuntu 22.04
Other Software
Avast One, version 24.4.6112 (build 24.4.9067.835)
Repro Steps
wsl.exe --status
, and the result be like:Then I found out the WSL Service is disabled.
2. Configure WSL service to Automatic start and ensure it is running. Now command
wsl.exe --status
succeed.3. Restart the computer or log off and then log back in.
4. Check the status of the WSL Service. Observe that the WSL Service is disabled again. Try to run command
wsl.exe --status
, failed just like before.Expected Behavior
The WSL service should remain enabled and set to automatic start after a system reboot or logoff/logon cycle, maintaining its state across system sessions.
Actual Behavior
After rebooting the system or logging off and on, the WSL service is found to be disabled. This issue occurs intermittently and has been observed to happen within approximately 20 seconds after logging in, as indicated by system logs. This behavior persists despite the service being manually set to automatic start and confirmed to be running prior to reboot or logoff.
I suspect there might be an interaction with Avast One antivirus software affecting the WSL service. However, I have already added the WSL service executable (C:\Program Files\WSL\wslservice.exe) to Avast's exceptions list, but the issue persists.
Diagnostic Logs
WslLogs-2024-05-11_16-40-56.zip
The text was updated successfully, but these errors were encountered: