-
Notifications
You must be signed in to change notification settings - Fork 824
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
Bash not starting #849
Comments
Are you using a third party firewall? Some are known to block network traffic and cause this issue. |
No third party firewall. |
UPDATE: I tried uninstalling bash using lxrun /uninstall /full |
Same windows build, same issue here. Installation originally hung at "extracting filesystem" for a few hours...killed it, uninstalled, attempted to reinstall, same issue. No luck on my end so far. |
Same windows build here. It installed fine originally and continued working fine across reboots. But after I rebooted yesterday it's now hanging. I don't remember seeing anything to do with apt-get update and I've completely disabled avast and rebooted multiple times. While it's hung I have two init processes, one hanging off the lxssmanager svchost and the other a child of the first init. The latter sits at 25-30% cpu for as long as I've been patient to leave it (15 mins). I've followed the instructions at #410 (comment) and sent an e-mail as instructed - I know it wasn't explicitly requested for this issue, but I figured it wouldn't hurt. The trace starts before bash is started and was stopped after it was hung for around a minute (iirc). Be warned: the zip is ~100MB because lxcore_kernel.etl is about 4GB! I subsequently attempted a full reinstall and it hung during extraction. |
I can also confirm this. I just checked it again and there are indeed two init processes. Also same behaviour with cpu usage (the first does not use any, the latter around 25%). |
@aidanhs Thank you, I received your traces and will take a look this morning. |
Additional notes:
|
Hey there. I have the same build and also got stuck without any errors. Is there any workaround? |
My bash has suddenly started working again ... I don't know what triggered it ... I restarted my pc a couple of times today and later for some reason opened powershell and typed bash and somehow it was working ... I uninstalled and reinstalled and its still working properly. |
It has stopped working again after a restart |
Hi, I finally found some info (this issue, #849) on this problem. With Google I've found nothing. I have the identical problem. bash.exe just hangs despite multiple install/deinstall, etc. Including an uninstall "-Full" using PowerShell of the LXSS subsystem. Also, a newly created user using bash.exe hangs after "extracting filesystem", etc. just as previously described. I traced the binary of bash.exe, using Process Explorer (sysinternals). It hangs forever on WaitForMultipleObjects(). I compiled the "outbash" project (found on github, it's a reimplementation of bash.exe) and when running it, it had the same behavior. It hung forever on WaitForMultipleObjects(). It seems to be sending a command line to some localhost port (some service?) but the service is never responding. I also get the AptPackageIndexUpdate window popping up, it does the apt-get update, however the window hangs on the screen until I hit the close button. This is all after using LXSS quite successfully from the release of the Anniversary Update. It just randomly stopped working as described. I suspect the KB3194496 cumulative update. However, unfortunately, W10 has no way to roll back system updates which I know of. For the time being I'll just continue with the MSYS2 project and use Linux on VirtualBox with a local Windows X11 server. Thanks, Alex |
Hi, I had a look at the debug of "cbwin" again. It may be it's simply calling C:\Windows\System32\bash.exe and waiting for that. But something's clearly waiting for something ... "HANG"! |
I found my solution, in another thread involving "multiple pagefiles" which is now marked "closed with workaround." Sorry I can't recall which number it is. It was the solution to the exact problem of bash.exe hanging, AptPackageIndexUpdate window appearing and freezing, etc., at least for me. I had changed to a C-drive pagefile of 800-1024, and in addition a system-managed size for drive D:, E:, and F:, which are all 1.8TB drives (C: is 512GB SSD). I had then tried all uninstalls, reinstalls, etc., thinking nothing of changing the pagefiles. I had suspected the usual: latest windows update, AVG antivirus hook DLL, etc. Reading through the other issue, they suggested having only one pagefile as a workaround. I simply reconfigured the pagefiles to one only on C: (system managed) and "None" on the other three. Reboot, then bash.exe immediately shows me the Linux prompt. Great day, thanks! Alex |
HI started using Bash on ubuntu on windows. It was working well since two months, suddenly it stopped working. I couldn't able to figure it out what exactly happened. could you please help me to resolve this issue |
@chanduch06 - Can you please provide a little bit more information? What behavior are you experiencing? |
Closing this out since @coldasparagus has resolved his issue. |
I decided to just start a shell prompt and type bash in it. The error message was about the "legacy mode enabled". To change it:
|
a bit more details about @coldasparagus 's explanation
And there you go |
Changing the page settings from System-managed to 800-10240 fixed it for me as well. However, I'd like to consider this as a work-around, and not a real fix please. |
A fix for this issue was included in creators update. |
Unfortunately, the issue still occurred on my machine after installing the Creators Update. The workaround fixed it for me (for now). |
I just tried the virtual memory fix by @coldasparagus and @imkimchi. I only have one drive and it's a 256gb SSD. The fix worked for me as well. |
I just used the virtual memory fix by @coldasparagus and @imkimchi - works like a charm thx 👍 |
Hi, I'm on the last update, I tried @imkimchi fix but each time, after using bash a while, bash just handle and not responding. |
On 10.0.16299 and the page settings fix worked for me. Thanks for this info. ⭐️⭐️⭐️⭐️⭐️ |
This worked for me as well; 10.0.16299 Win10 pro. I have a fast M2 SSD drive and 32GB of system RAM so this is surprising. The automatically managed page file reported itself as being 5120MB. Potentially related: other programs seemed really slow to launch (under essentially idle system load) and I noticed |
Had similar issue on |
Thank yo @imkimchi @coldasparagus !!! |
@benhillis I've also started seeing this issue intermittently. I'm on Windows 10 Pro 1809 (build 17763.316) |
Already a single system-managed page file but same problem. |
The solution as suggested in #849 (comment) did work for me. But after running for about a month, Edit: curiously, after re-enabling System managed page files, and restarting my computer, WSL started working again. |
I have the same problem in 1809, so I do not think Creators Update really fix it. #849 (comment) works for me. |
A better solution is to stop and start the LxssManager service. Be patient, it may timeout sometimes. Update: Sometimes the process just won't die. |
I have had similar issues with this as well. The solution for me was to disable fast startup. |
I have tried the same recommendations from #849 (comment) and from #849 (comment) and I still cannot get WSL
|
Hello!
|
This fix worked for me...why does this happen? Some memory fragmentation issue? Would love an explanation... |
When I follow #849 (comment), it gets fixed. Then after some days, WSL stops launching again, so I do the reverse of #849 (comment), and then WSL starts working again (for some days). And thus, On and on the wheel goes. |
The workaround is to do a FULL reboot of Windows10, hold SHIFT and click reboot. Normal reboot/shutdown action in the start menu will not shutdown win10 fullly, for the "fast boot" mechanism saves memory from the last session. The other comment mentioned changing system memroy page size which makes win10 do a full reboot too, works but unnecessary. By holding SHIFT key and click the Shutdown/Reboot in start menu, win10 will go into maintain mode, choose Shutdown from the menu. Then start normally again. |
Tried that and I still can not start the Ubuntu bash Tried the Page size workaround and the Shift reboot - no luck |
Yesterday installed WLS, today it stopped working, tried combo of pagefile reconfigure + shift-reboot, started working 🤞 |
After I updated my Win10 to 18362.1082. Now I use Updated. Now I'm using Manjaro, the Windows lives in virtual machine. |
Ensure your default WSL distribution is properly configured. See what your default is with |
@mobiusxs Had the fix. This is still an issue on modern installs with Docker because Docker does bad things and changes your config so the wsl command stops working until you reset the default tht windows requires to use the shell you want. Docker shouldn't be breaking installs like this, but all it takes is to update docker and WSL will break in my tests. |
This worked for me too |
Why is this issue closed? |
@benhillis why closing the issue? this is not fixed |
Same issue on Build 21370 Release 21024-1611. #849 (comment) worked for me. I definitely agree with everyone above, this issue shouldn't be closed... |
This is ongoing... filed formal feedback... not expecting much since msft is total radio silence on this issue unexpectedly... very disappointing! The rest of msft's new turn has resulted in greater transparency but we don't ever get any from WSL team. |
I just had this happen to me - I DID have a Windows update queued up. Plenty of RAM, WSL worked fine before, status all looked good. Rebooting fixed it. That should not happen. Sorry I didn't collect any logs :( if it happens again I will. |
This problem is still makes out until now. |
Found a solution without restarting from StackOverflow:
|
Been banging my head on this for hours... |
Bash is not opening after closing the scheduled apt package index update task.
I tried restarting but its still not working. Whenever I run bash the command prompt simply becomes unresponsive.
Build : 14393.51
This is what happened
1> restarted computer for some reason. apt package index update started in a command prompt window. Seemed unresponsive, so I closed it.
2> tried running bash but nothing happens. It simply shows the cursor. Ctrl+C or any other combos don't work.
3> Tried restarting. still doesn't work.
[ possible related issue #422 ]
The text was updated successfully, but these errors were encountered: