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

Bash won't complete install properly #718

Closed
csar opened this issue Aug 3, 2016 · 50 comments
Closed

Bash won't complete install properly #718

csar opened this issue Aug 3, 2016 · 50 comments

Comments

@csar
Copy link

csar commented Aug 3, 2016

Please use the following bug reporting template to help produce actionable and reproducible issues:

Install bash hangs when "init" is executing using a full core but no visible activity

You can "successfully" end the installation, but then each attempt to run bash will just result in init spinning forever

image

@ghost
Copy link

ghost commented Aug 3, 2016

I'm having the exact same issue. I've gone through the correct steps to install Bash. I'm 100% sure about that. The install hangs at "Extracting filesystem" with the init process showing up in task manager. I've tried installing via "bash" in the start menu as well as with lxrun /install in both cmd and powershell.

@Xazax-hun
Copy link

I am also experiencing the exact same issue.

@atlgeek007
Copy link

I am also experiencing this issue. I left my command prompt at "Extracting filesystem..."" overnight and it did not complete.

@onomatopellan
Copy link

Did any of you made a clean install of Anniversary Update?
Are you guys running any antivirus/firewall that is not Windows Defender?
Did you ever change/move/symlink LocalAppData or AppData folders to another partitions?

@Xazax-hun
Copy link

I did a windows update (from a previously fully updated windows 10 version), not a clean install.
I do have Avast antivirus, but I also tried it with the antivirus software disabled, without success.
I did not do any change to LocalAppData or AppData, they are at the default location.

@mrsauravsahu
Copy link

I have run into the same problem. Previously I tried installing Bash on Ubuntu on Windows using the Bash command in Command Prompt. The installation got stuck at "Extracting filesystem, this will take a few minutes..."
then I had to uninstall it using

lxrun /uninstall

but only after a restart, as the bash process was still running and killing it from PowerShell gave Access Denied exception. I only have Windows Defender as my antivirus program.

@atlgeek007
Copy link

Relatively fresh install of Windows 10 Pro, windows update installed the Anniversary Update yesterday, which necessitated a series of reboots.

I have disabled all antivirus protection (Avast) and turned off malwarebytes also.

LocalAppData and AppData are not symlinked and in their default locations.

While it says "extracting filesystem" there is an "init" process owned by my user taking 10-20% CPU time.

@atlgeek007
Copy link

Oh, and I'm joined to a test domain, but I am logged in to an account with local administrator and domain administrator access to test this.

@ghost
Copy link

ghost commented Aug 3, 2016

I didn't do a clean install, just an update. I'm running Avast, but I've tried disabling it without any luck. As for messing with AppData and LocalAppData, I haven't done anything to them.

My init process is also running at about 10-20%, but nothing happens.

@csar
Copy link
Author

csar commented Aug 3, 2016

Avast here, I also tried to deactivate it, no change.
I never used a developer preview. I will try on another machine later.
One thing might have caused trouble : l had gitbash installed, so there was
already a bash. Exe

On Wed, Aug 3, 2016, 13:54 onomatopellan [email protected] wrote:

Did any of you made a clean install of Anniversary Update?
Are you guys running any antivirus/firewall that is not Windows Defender?
Did you ever change/move/symlink LocalAppData or AppData folders to
another partitions?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#718 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAA_u666emMFUCU1T9QaZ4_7-nWiKUhfks5qcHyMgaJpZM4JbNqQ
.

@onomatopellan
Copy link

A RamDisk or Virtual drive could affect the install, disable them if you have one.

There is a known problem with having more than one pagefile. #565

It could also be related to this new unsolved bug. #707

@ghost
Copy link

ghost commented Aug 3, 2016

I've only got one pagefile and I don't have any virtual drives or RAM disks set up, so that shouldn't be an issue on my end.

@onomatopellan
Copy link

It seems #707 is now solved. Did you try looking for the reg entry?HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel\ dword:obcaseinsensitive should be 1

@csar
Copy link
Author

csar commented Aug 3, 2016

I just updated a Win 10 Pro machine and everything went smoothly, I didn't even had to enable developer mode - it did it for me. Is there an issue with Home edition

@ghost
Copy link

ghost commented Aug 3, 2016

It was already set to 1, yeah. I should note that there is not an error message like in #707. The install just hangs indefinitely.

@onomatopellan
Copy link

If you WIn+R and go to %localappdata%/lxss what do you see? Can you enter on rootfs directory and see its contents?

@ghost
Copy link

ghost commented Aug 3, 2016

I can enter lxss/rootfs, yes. It contains multiple folders as well as the "init" file.

@onomatopellan
Copy link

If you didn't see any lxxs.tar.gz file on lxss folder then it means it extracted the files correctly, deleted the lxxs.tar.gz file and then it hangs.
Open an Admin CMD and type lxrun /setdefaultuser root
then type bash
Can you see any error?

@benhillis
Copy link
Member

benhillis commented Aug 3, 2016

@onomatopellan thanks for helping folks out. To clarify WSL does not require the obcaseinsensitive registry key. We enable case sensitivity temporarily on a per-thread basis for pico processes that are running Linux binaries.

@JacobStearns do you happen to have a third party firewall installed? We've seen the install hang for users using Kaspersky and Bitdefender firewalls because they are blocking the network traffic of our pico processes.

@ghost
Copy link

ghost commented Aug 3, 2016

@onomatopellan Just to confirm, there was no lxxs.tar.gz, so that should all be fine.

I'm running lxrun /setdefaultuser root, but it seems to hang as before with the init process running at ~13%.

@benhillis I do not. I'm running Avast free, but that doesn't contain a firewall. I've tried disabling Avast, but that doesn't seem to help at all.

@salvavn
Copy link

salvavn commented Aug 3, 2016

@JacobStearns, I have exactly the same issue and the same behaviour after executing thelxrun /setdefaultuser root command. Nothing happens.

And I have the same content than you in the rootfs directory. AND I have running (but disabled) the free version of Avast...

Pretty similar.

screenshot

screenshot2

@salvavn
Copy link

salvavn commented Aug 3, 2016

BTW, I have only one pagefile

screenshot3

Another question, do you have some kind of software like NoMachine Nx server installed?

@ghost
Copy link

ghost commented Aug 3, 2016

@salvavn Can confirm, this is the exact behavior I'm seeing.

@ghost
Copy link

ghost commented Aug 3, 2016

@salvavn I do not.

@salvavn
Copy link

salvavn commented Aug 3, 2016

It seems like lots of guys with the same issue have Avast working... I don't know if it's only a coincidence...

@onomatopellan
Copy link

Could you try uninstalling Avast, restarting Windows and then trying bash again?

@ghost
Copy link

ghost commented Aug 3, 2016

Can do. I'll be back once that's done.

@salvavn
Copy link

salvavn commented Aug 3, 2016

Success!

I have removed Avast. Then I have uninstalled bash with lxrun /uninstall /full.

After that, I have rebooted Windows. And then, I have installed the linux stack with: lxrun /install

And it works!

Now the prompt has asked me for the user name and password.

@salvavn
Copy link

salvavn commented Aug 3, 2016

I'm going to install Avast again in order to check if there is some kind of interaction after the bash installation.

@salvavn
Copy link

salvavn commented Aug 3, 2016

Hey guys, bad news.

I was executing in my bash prompt the sudo apt-get update while I was reinstalling AVAST. When the installation was completed the sources listing of Ubuntu stopped, and now, I can't execute bash another time, I get the same result of this issue.

screenshot4

So, in my opinion, the current AVAST version (the latest one) is incompatible with bash.

:(

@ghost
Copy link

ghost commented Aug 3, 2016

Uninstalling Avast fixed it on my end as well. It's unfortunate that Avast seems to completely break Bash.

@salvavn
Copy link

salvavn commented Aug 3, 2016

I have tried disabling Avast, but didn't work. The only way I'm able to work with bash is with a full deinstallation of Avast :(

@mihailim
Copy link

mihailim commented Aug 3, 2016

I can confirm the problem is Avast (unfortunately, I found this issue only after spending a couple of hours before figuring it out myself...)

The problem also occurs with Avast's free Business Antivirus version.

It's not enough to turn Avast's shields off; the product has to be uninstalled.

@onomatopellan
Copy link

It seems Firewalls and AV will have to be updated to support the new picoprocesses.

@csar
Copy link
Author

csar commented Aug 3, 2016

Anyone having recommendations for AVs that are compatible with Bash? Webroot seems to work just fine. In fact I am pretty annoyed by Avast because it broke things because of false positives, adding a message to each outgoing mail ... good opportunity to ditch Avast for good

I moved to Bitdefender on the machine that showed and it fixed it.

@denru01
Copy link

denru01 commented Aug 3, 2016

Disabling the AVs may not be enough. Uninstalling it is a good way, but how about "closing" the AVs temporarily?
I solved my problem by "closing" Kaspersky but "disabling" does not work.

@atlgeek007
Copy link

I had to uninstall Avast for it to work at all. As soon as I reinstalled Avast after installing bash, I couldn't actually run bash anymore.

I was in the market for a new AV anyway, may as well test out Defender.

@yalopov
Copy link

yalopov commented Aug 4, 2016

@salvavn It worked like a charm, uninstalling avast did the trick

Thanks

@benhillis
Copy link
Member

Glad to hear. To keep everybody in the loop I've been reaching out to third party firewall providers and will work with them on getting this fixed.

Thanks everyone for trying WSL!

@degoya
Copy link

degoya commented Aug 4, 2016

here is another issue who deals with 3rd party firewalls.
#475

@WRyan78
Copy link

WRyan78 commented Aug 5, 2016

Thanks for working on this.
Same issue here and I also have avast installed.

@mrsauravsahu
Copy link

mrsauravsahu commented Aug 5, 2016

After reinstalling Bash a couple of times...
I simply ran

lxrun /install

and waited till it hung at the extraction stage. After a couple of hours, I simply closed the command prompt. Task manager showed bash running. The lxss folder didn't have the tarball, which probably means everything was extracted correctly.

I realized I had multiple page files. So I set it to "Automatically manage paging file size for all drives", then rebooted. I also disabled Windows Firewall and turned real time protection off in Windows Defender. I do not have any other Antivirus installed, Then ran

lxrun /setdefaultuser root

It worked. I then created a new for me
However, I cannot find the 'Bash on Windows on Ubuntu' program in my Start Menu. I have to start a prompt or PS and run bash.exe to run it.

@onomatopellan
Copy link

Glad it worked for you.
If you can't find the tile look at this #696

@BKNR
Copy link

BKNR commented Aug 21, 2016

To me it seems that the current newest version of Avast Free Antivirus (12.3.2280 / build 12.3.2154.0) does not have this issue. Installing WSL hanged on the 'Extracting filesystem' part, but then I updated my Avast av and after that, installing WSL got past that to a successful installation.

@ghost
Copy link

ghost commented Aug 21, 2016

It's working on my end, too. Bash and every program I've tested have worked with Avast so far. If there's any issues still present, I haven't found them.

@pirtleshell
Copy link

Hi all, I just wanted to give my two cents on the Avast business. Bash.exe had been working perfectly fine for me and has with minimal problems since it was first released. A little while ago, I tried to move a big directory into another directory and it got hung up. It remained hung up after trying to Ctrl-Z it into the background or Ctrl-C it out of existence. So I closed it out. Opening it again, it remained hung up. Restarted; still hung up.

Ultimately what appears to have fixed it is permanently turning off Avast's File System Shield and then restarting. After the reboot, bash became unhung! Then I could just turn on the File System Shield again.

Avast Settings > Components > File System Shield Off > Stop Permanently

TL;DR
Before completely uninstalling Avast, try permanently turning off File System Shield and then restarting.

@n3rd4i
Copy link

n3rd4i commented May 23, 2017

Avast supports exclusion path, adding the lxss path:

  • C:\Users<username>\AppData\Local\lxss*

Maybe this can stop Avast messing up files for WSL ?

@jcollum-cambia
Copy link

jcollum-cambia commented Jun 27, 2017

Having a similar issue here. No Avast involved though. Tried to install bash and it hung on Extracting filesystem.... Waited about 15 mins (no progress indicator! lame) and then decided to kill it. Later ran lxrun /uninstall from an elevated PS. That appears to be hung as well. There are about 7 folders in AppData\Local\lxss. 10 mins later there were still the same number of folders, so that uninstall doesn't appear to be uninstalling.

I miss my mac.

edit: and now lxrun /install /y simply doesn't do anything at all. 👎

@benhillis
Copy link
Member

This should be resolved in Creator's Update. If others are experiencing this same issue in Creators Update or later, please let me know!

@raoits
Copy link

raoits commented Nov 22, 2017

having the same problem here. im not running Avast but have something called f-secure (it's called kpn veilig idk why). tried to run bash anyway. it worked before i used any commands. i used ls and the system freaked out and then outputted the right thing for some reason. the file location seems bugged to but but works anyway. it seems like it now only has weird visual bugs. i hope this information can help find where the installation stops.

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