-
Notifications
You must be signed in to change notification settings - Fork 797
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 don't start, don't open and don't answer #5836
Comments
Did you install a WSL distro from the Store? Can you run it from the icon on the Start Menu? I know this isn't a solution for WT but I am trying to determine if it is properly installed. In PowerShell, what does the following report?
Do you have any third-party security or endpoint management utilities installed on this device? |
I followed this setup https://github.com/lewagon/setup/blob/master/WINDOWS.md |
Since Windows [10.0.20201.1000] wsl doesn't work (neither Docker for Windows) basicaly.. when we enter wsl : nothing happen.. it won't respond. I try this (also.. lot of reboot) dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart wsl --set-default-version 2 wsl.exe --update wsl --shutdown wsl -l -v PS C:\WINDOWS\system32> wsl -l -v
no problem so far... but if I try just to enter wsl... it will stalled I try wsl -d Ubuntu ... same thing. |
Same issue. It worked until the last update arrived |
Same issue. When I try to stop it with
Only way to fix this is a complete reboot. |
I had same issue. Turning off Hyper-V in Windows Features resolved the issue for me, but then I have trouble with Docker Desktop. |
when you hit the issue, can you check the disk usage? I do found that if there is very few free disk space available(eg. 1G), the lxss has slow response or no response. |
@licanhua I don't have a issue with free disk space (over 350gigs), no trouble with ram 32gigs. The problem appear only with the build [10.0.20201.1000] (no problem before that update) |
My C:\ drive has 20GB free and the M:\ drive where I have my Ubuntu distro installed has 80GB free. I have 16GB RAM. And the issue only started recently, 1 or 2 weeks ago. |
How about the %temp% folder? did you see a .vhdx which is created when you start Ubuntu and the size is always 0? For example: |
That should be plenty of space. @licanhua I suspect this is not the same issue you have been looking at. |
If it is, disabling swap and trying to launch would confirm: .wslconfig |
I already ran the @survivant commands and my Hyper-V it's already off. My C: have a lot space yet too
|
There are two suspicious:
|
When I run |
@isaporto A reboot may required to apply .wslconfig if your machine is already in weird state. Could you please help to provide logs by Feedback Hub and share the feedback link after you submitted it? I tried and I never be able to reproduce the problem locally. |
After I created the .wslconfig file I reboot the computer. Still not working! |
Yes same problems, and I found few posts that others persons have the same
issues.
|
@isaporto, Thanks for the log, but there is no log is attached. Have you |
Yes! I wasn't able to see the record, only the images. Maybe I can try once more @licanhua |
I'll try after work
|
Disabling and then re-enabling HyperV feature followed by a restart worked for me to revive My WSL2 |
I try to record the screen, but I don't have a stop recording. I added a screenshot. I rebooted again.. still not working |
oh ! I got a Green screen of death again.. after that I did a hard reboot (press poweroff for few seconds) Windows rebooted and I got a welcome screen and enter few settings like (my default browser, finger...) rebooted again.. and now wsl + docker works. but I previously I added .wslconfig and rebooted, but wsl didn't work at that time |
I decided to reinstall the ubuntu once more and it's stuck in the |
@isaporto It's hard to identify what's the problem. I guess:
|
In my case i have only the first symptom, everything keeps frozen and each time that i want to poweroff my Surface it hangs in a BSoD. How do we suppose to fix Lxss? Reinstalling? Moreover, how do i diagnose Lxss? Sorry if my questions are too basic. |
Just had this issue again, |
I had the same issue. I opened up task manager and found a process that i forgot its name but it had the wsl symbol and i ended that process. After that i opened my ubuntu and it was working again. |
for some odd reasen HyperV was disabled suddenly in the windows features. After enabling HyperV (again), WSL2 worked great again |
did you find a solution for this? |
I don't understand why, but I managed to fix this by running the following in Powershell in administrative mode. netsh int ip reset all
netsh winsock reset I don't even have to restart; WSL starts working the second I run these commands. |
If anyone is still having this issue, for me the issue was with my .bashrc file. Fixed it by entering as root: |
Had a similar issue where one day I could open my Ubuntu terminal and the next day it stopped working. Would not be able to access my files and opening Ubuntu gives me a blank terminal with nothing on it (no words etc). I tried uninstalling and reinstalling Ubuntu and it did not work. Tried restarting my computer, nothing happened. What worked was this:
Afterwards it worked again, hope this manages to help someone! |
Had this happen today after installed Tuesday's updates (Windows 10). Found it because Rancher Desktop wouldn't start. Ended up having to disable/enable Hyper-V and then re-install Rancher. |
this worked for me |
confirmed in my end that this can fix the issue |
For me the solution was to disable the automatic manage paging for all drives. |
Thank you for your hint!
netsh int ip reset all
netsh winsock reset
wsl —update to version 2.0.14. Finally, executing wsl worked |
This happens to me consistently every time after I close a WSL terminal for the first time and open a new one. The LxssManager service is stuck on "Stopping". All combinations of the stop-service : Service 'lxssmanager (LxssManager)' cannot be stopped due to the following error: Cannot stop
LxssManager service on computer '.'.
At line:1 char:1
+ stop-service lxssmanager
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (System.ServiceProcess.ServiceController:ServiceController) [Stop-Service],
ServiceCommandException
+ FullyQualifiedErrorId : CouldNotStopService,Microsoft.PowerShell.Commands.StopServiceCommand Running
Tried all the solutions above that have a least one thumbs up. None work. The only thing that works, and at least it works reliably for me, is a restart. A system restart every time I want to open another WSL terminal is unacceptable. |
Worked for me, thank you! |
I'm getting this as well, but I have everything enabled. WSL2 just doesn't work. |
WSL hangs forever for me, anyone facing the same issue? used to be fine yesterday |
The only thing that ever worked with me was getting my machine completely reimaged. And then using a different machine entirely! |
This worked for me, enabled Windows Hypervisor Platform and restarted, all good afterwards, back on track! |
I have Windows 11 and this solution worked for me. |
this worked for me |
I recently had this issue and I just uninstalled Docker Desktop on Windows and wsl stopped to hang forever |
Hey folks - so it looks like there was a recent regression given the uptick in comments. Here's the fix that worked for me. None of the fixes in this thread worked. |
This worked for me W10 22H2 19045.4412. Also rebooted. I noticed that the vmmem also went to 100% cpu usage on my 16 core machine on all cores. Was nice. Things to do with the LxssManager did not work. |
finally fixed it. nothing in the comments above helped me. I navigated to the .wslconfig files placed in |
My wsl2 broke after installed nvidia workbench and cannot access files there. |
For me the solution was to enable Control Flow Guard (CFG). I needed to disable this in Windows Security settings to run some games, never couldn't guess that this will make Docker and WSL stop working |
You save my life. |
Environment
Windows build number: 20197.1000
WSL 2
Steps to reproduce
Open the Windows terminal
Expected behavior
Should open the Ubuntu terminal but didn't appear even the tab in the Windows terminal.
Actual behavior
The problem is that sometimes, when I open the Windows Terminal the WSL don't appear. Acctually appear once but don't show/load anything, then, when I open again the terminal, it's gone. If I try to run wsl or wsl -l -v or wsl --shutdown, nothing happens, just keep like it's loading the answer forever. If I try to open the Linux folder just keep loading forever. Sometimes I restart the computer and just works but sometimes don't. I tried reinstall all Linux but the error appear again.
The text was updated successfully, but these errors were encountered: