-
Notifications
You must be signed in to change notification settings - Fork 823
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
Initial install fails with 0x8007001f #707
Comments
Just out of curiosity, does it work if you run bash at a regular (non-administrator) prompt? I've never tried it at an administrator prompt. |
Same error as non-Admin. |
Something strange is happening. Would you be able to collect a trace during install so I can take a look at what's happening? 0x8007001f translates into "A device attached to the system is not functioning" and I'm not sure where that could be coming from. Thanks!
https://github.com/Microsoft/BashOnWindows/files/288621/start_lxcore_trace.txt |
YGM. Or if you don't want to wait for the mail, the files are available |
Thanks. Took a quick look at the trace and saw that our driver is failing to set up the root mount point. By chance have you done anything interesting with your %localappdata% folder? |
Not knowingly, no. What is it trying to do that's failing? |
Trying to open a handle to the %localappdata%\lxss\rootfs directory and failing with file not found. I'll have a chat with the owner of this code path and see if we can figure out what's happening here. If you navigate to %localappdata%\lxss in Windows Explorer can you see this folder? (copy and paste the path into explorer because the lxss directory is marked as hidden and system) |
Hmm, that's strange. This looks superficially OK to me:
|
@DrPizza That matches what is shown on my machine locally. Do you have a virus scanner or some other piece of windows software that would include a filter driver? It's very odd that our driver cannot find the rootfs folder but your user can. |
Weird I thought I replied by e-mail but it's not showing. The only AV I'm using is Windows Defender. A process monitor trace seems to show handles successfully being opened to that folder. |
I get the same error, but only if I disable caseinsensitivity in windows by setting This Problem was also mentioned here: https://github.com/Microsoft/BashOnWindows/issues/101 If I set ObCaseInsensitive to |
Hmmm. This system was upgraded from one that used SUA (rest in peace), and hence had case insensitivity disabled. Let me flip the flag and reboot, see if it makes any difference. |
OK, flipping that flag did indeed fix this error code, and bash now installs. I've had that flag enabled for literally years, and I've even had WSL run successfully on this system in the past in earlier builds. Why it should cause a problem now is very strange. |
I have a similar problem, except mine always crashes when trying to create the user and therefore I can't run
|
I can confirm @btecu errors Administrator console:
Fresh clean install of 1607, practically no application installs |
I get this error after I installed the Anniversary Update (I had bash previously installed and working fine.)
Edit: I'll note that I changed my AppData directories to my second HD using hard symlinks, as @benhillis inquired before. |
@jerker-back Interesting, my computer is also part of an Active Directory so that might be the problem. |
|
Moving your AppData directory and using symlinks could definitely cause issues. I can't think of anything that Active Directory would do to make install not work. |
How glorious. My previously working WSL has now stopped working with, guess what, error And so I look in the registry and... something has flipped obcaseinsensitive to 0. What changed it? Who knows! On the one hand, I wish I could figure out why the object manager keeps being reverted to the case sensitive mode. I think the default was switched around XP time, and since I don't need any other behaviour it's probably better to stick with the default. On the other hand, I figure that at least for the short term people are gonna want to mix and match Cygwin and WSL, and having Cygwin be case-sensitive probably helps this. It seems really kind of weird that a Linux-like subsystem, of all things, should throw a fit when the Object Manager is doing case sensitive lookups! |
@btecu yes everything in the installation was successful in my case. My default casesensitive registry key was/is: Initially I got the 0x8007001f error unless I changed obcaseinsensitive to 1. This setting will however revert back to 0 sooner or later automagically. I had to change it back a couple of times. :D Now the subsystem suddenly works for me even with obcaseinsensitive = 0 Did they update it somehow? I can't see any updates though. So I can basically confirm @DrPizza's experiences as well |
Aaaaand it's flipped to 0 again. |
@DrPizza That sounds frustrating, I'm not sure what component might be resetting that reg key flag. When you first reported this issue I tried to reproduce this locally with the obcaseinsensitive flag set to 0 and wasn't able to. I suspect there's something different with your machine environment than mine. Out of curiosity if you do an "echo %localappdata%" and compare the case of the path with the actual on-disk path elements do all of the character cases match? |
Looks the same to me. I'm currently running procmon to see if I can figure out at least what's flipping the value. |
The reg-key wouldn't happen to be reset when a new build is installed? |
Not sure, but this system is on the stable ring, so should only be updated with the monthly cumulative fixes. |
Oh well, would you look at that. Changing the policy and running gpupdate confirms it; this is what's messing with the key. Probably a relic of the SUA/Interix days, where I wanted to ensure that case sensitivity was allowed. I'm guessing that the value will stop getting changed now. Now, I still feel that it should be working regardless of the value, especially as @benhillis says that it was working for him regardless (presuming he rebooted between each trial? The value only gets read at system start). It seems a little peculiar that enabling case-sensitive subsystems should break a case-sensitive subsystem. |
@DrPizza Yes my group policy also disabled the setting, explained here |
Some programs bypass the Windows API, via the NT API or device drivers, and fail to set Please, try to fix your code to work when the I disabled the protection on the svchost.exe process to attach a debugger and track the problem to an
It fails with the generic status code |
same error:
install the reg, bash met the same error. I do this becuase I want cygwin's fstab posix = 1
|
build 14931 fix it. |
I'm running 14393.351 and still cannot start bash because of this error. |
@nailk |
hmm... ditto |
I had the same Error: 0x8007001f This might be, because I change the registry entry for case-sensitivity to 0. When changing it back to 1, the prompt starts now (after reboot and reinstallation). Looks like it couldn't install the lxss folder. |
The legacy install mechanism (lxrun.exe) is deprecated. |
Performing the initial install of the bare Ubuntu system fails.
I'm on 14393.5
I turned on the Linux subsystem (the PC was already in developer mode), rebooted, and ran bash at an Administrator command prompt.
The text was updated successfully, but these errors were encountered: