-
Notifications
You must be signed in to change notification settings - Fork 858
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
Error 0x80070005 on startup #651
Comments
Possibly related to this: Will test newer build |
@soda0289 The issue you linked could definitely cause this issue. I'll be interested to hear if you hit this on build 14376 or newer. |
Just got the same problem on build 14388. |
@Gabrielcarvfer Are you doing anything with symlinks in your %localappdata%\lxss directory? |
Nope, was rebuilding Chromium, trying to find a workaround to other issue. Executed it, with strace, killed the process, because it got stuck. Then I gave up for today, and was moving files to my external drive, but it seems that the file handles had some kind of problem, because Windows couldn't copy them ( error 0x80070780) and bash stopped working. After rebooting, bash returned, but Windows still can't copy some files. |
I also updated to 14388 but have not been able to reproduce the error. I have tried to find steps to recreate the problem but have been unsuccessful. The only fix is to restart as trying to log in and out does not fix the problem. I'm guessing it's some service, maybe EFS, that is causing the issue. I have collected lxcore trace etl files from the previous occurrence of this bug. Not sure if they be would help but can send/upload them if you wish. |
I do get the error
upon launching |
I started getting this error after updating yesterday to cumulative update 14393.693. I tried uninstalling the feature and then reinstalling the feature but that didn't fix the problem. |
@NoFlames - Can you please collect the traces and share it out so that we can see what and where things are going wrong? |
I had this error today after closing off my bash windows. Collected traces here. I tried deleting the lxss temp folder but it didn't seem to disappear before I ran these traces. Many thanks! |
I experienced this problem today and it happened without any update. It happened after a restart of the computer. Attached are the collected logs. Removing the lsxx\temp folder did correct the problem for launching the bash shell. However there are missing files that I drop into the lsxx\home directory. They don't appear in the bash shell but are accessible from the Windows side. I noticed this when the git project within bash shell was reporting files missing. The missing files were ones that had been modified and saved before the restart of the computer. |
Adding @benhillis to see if he can take a look at the traces. |
@NoFlames - took a look at your trace and it looks like something (possibly our driver) is holding onto a handle of the files in your temp directory so they cannot be deleted. Lots of changes to WSL have been made since the Anniversary Update build you are running and it's possible this has been resolved since then. |
@benhillis, I am experiencing this in Creators Update so it is definitely not fixed. I fresh installed the WSL by using lxrun and installed a couple of packages before trying to build bazel. After I Ctrl-C to kill bazel for several times, bazel became slower and slower, eventually hung (I waited 1.5 hours and it didn't even finish compiling a single file), then I Ctrl-C again and quit all bash windows. Then I can no longer enter bash anymore, showing error 0x80070005. If we already know something is holding a handle to files, how do we release the handle, without rebooting the machine? |
@likan999 unfortunately since our driver is not unloadable the only way is to reboot the machine. We need to track down where the handles are being leaked in our driver. |
@benhillis It's been two months since the last reply. I understand nobody reported this after Feb so you might think things get fixed. But I can confirm here that the problem still exists. Is there any going effort to fix this? |
@likan999 - I don't understand your question, I responded 15 minutes ago that we're looking into the handle leak. |
@benhillis Thanks for confirming you are looking into the issue. From your previous reply, 'We need to track down ...', it wasn't clear there were people actually looking into it. I found the problem can be consistently reproducible on my machine. I fresh installed the WSL, installed prerequisite packages of bazel, downloaded the release version of bazel, then checked out the git source of bazel (switch to the release 0.4.5 version, see git tag) and repeatedly building it a few times(/path/to/bazel clean; ./compile.sh compile /path/to/bazel). It became slower and slower, eventually hangs. It is easy to tell it hangs, because bazel prints currently compiling sources and elapsed time. If you see a file has been compiling for several hundreds of seconds, it is almost certainly it hangs. Then (important to reproduce) you need to Ctrl-C a few times to quit bazel, and then quit all windows of WSL. Then you try to open WSL again, it will show "Error: 0x80070005. Press any key to continue..." @benhillis when do you think the problem can be fixed? Since Creator Update has been released a few days back, does it mean I need to wait for another half year or a year to get things fixed? |
@likan999 - Narrowing down reproducible steps to get the system into this state is going to be the best way to track down this bug. It looks like you have a repro above, if you wouldn't mind could you expand on the repro with the exact commands you're running? I'm not familiar with bazel so some more detail on the steps would be great for us (even if they're obvious for you). Regarding servicing we'll have to see how involved the fix is. As I mentioned above it's probably a simple handle leak, in that case it should be straightforward to convince the folks in charge of servicing to backport the fix to Creators Update. |
@benhillis Reproduce steps are (I am not sure which steps cause the problem so I don't know how to reduce it to a smaller set of steps): First, fully reinstall WSL Within WSL:
By saying it hangs, I don't mean the entire bash freezes. In fact, bazel is still running, giving outputs, but compilation doesn't make any progress. It keeps saying:
when M goes to several hundreds, it almost certainly hangs.
Once you reboot, the problem is gone, and you can start from step 4 to reproduce it. @benhillis Let me know whether or not you can reproduce it on your machine. Thanks. |
@likan999 - Thank you very much for the repro steps. I was able to reproduce the issue locally and will try to debug where the handle leak is coming from. |
Please has this problem been resolved? |
I was able to reproduce this issue by installing php7.0, Apache2 and oci8 extension for php. When I enabled oci8 extension in php.ini, started apache and visited one of mine projects, which uses oci, in browser, closed bash and tried to open it again, it resulted in error 0x80070005 Windows version 1703 (OS Build 15063.413) |
I got the same error, in my case
I think is related with a mapping of the folders, but If I do the same in a Ubuntu client running Ubuntu I don't get that issue, maybe is related with someone new implemented. |
Also had this issue after running Oracle instant client. Just like others above, restarting into safe mode (hold |
I still get the Error: 0x80070005 when I ssh into Windows 10 and run bash. Surface Pro 3 I did restart into safe mode and nuke the lxss\temp directory as mentioned above, no difference. |
I just got the 0x80070005 when I run bash in cmd. |
ssh into win10 pro; type bash, and get the error. |
Turning off device guard, credentials guard and HyperV worked for me |
Just upgraded Windows to 10.0.17134.1, WSL is gone,
Manually cleaned up
How are you integration tests looking? :) |
@snobu There is an issue with running both the Store version and lxrun version. You need to remove the lxrun version and re-install the Store version. Aside from this, there has been an issue for some users in registering the distro with that error code. As I said though, the first step is to nuke your lxrun version. It's depreciated anyways so why continue to use it? |
That's what i'm trying to do, nuke it. But i can't nuke it since |
Oh I see. Try restarting the lxss service (if it's started) and see if that helps. I don't believe it's related to leaks as was the issue here. Possibly related: #3020 |
Unfortunately stopping that service didn't help and i can't turn off Device/Cred Guard. It's strange how this made me realize WSL is the only purpose of this Windows box :) |
Stopping lxss isn't the intent. It needs to run in order for WSL to work. It will produce the error code otherwise. I suggest following up on that issue and submit logs there. |
The LxssManager service is running. I'm not sure which logs should i be looking for.. |
Are those ETL logs safe to share publicly? |
Scratch that, ETL logs should be sent to them as posted in the directions. |
I've sent them over to InsiderSupport@msft. |
Ok I updated my comment after further reading the instructions. Best let @benhillis know you sent them. |
Same issue here.. %LOCALAPPDATA%\lxss\temp doesn't exist, so can't delete it. |
I got the same error after a windows update. I don't think it makes any difference, but I'm using Arch. |
Am getting the same error:
Machine details:
I tried a bunch of suggestions given here but no use. |
I got the same error when running If I do the same as a normal user, it tells me that no distros are installed. But Ubuntu and suseLEAP are listed in the start menu and the installation via the store worked fine. When starting ubuntu, an error message appears, and I figured out that the system tries to get access to a path to which it should not have access. I posted that here. Does someone know whether the issues are related? |
Same issue for me. Most recent Ubuntu on 64-bit Windows 10 Enterprise. Version 10.0.16299 Build 16299. |
I also had the same error: |
Recursively deleting This may or may not have anything to do with it, but this Windoze: Version: 1703, Build: 15063.1356 |
I got this error running bash with Win10 Enterprise version 1803, build 17134.407.
The solution was to run Bash as Administrator. When I did that the one-time upgrade worked, and then I can launch bash normally. |
A brief description
After closing all open bash windows. I cannot restart bash. I get this: Error: 0x80070005
Looking into the event viewer I see this logged:
EFS service failed to provision a user for EDP. Error code: 0x80070005.
I have updated Ubuntu from Trust to Xenial and noticed this bug afterwards. Might be related to leaving tmux open. Will investigate more.
Windows build number
Windows 10 Version 1607 (OS Build 14372.0)
Commands required to reproduce the error
bash.exe
Required packages and commands to install
Ubuntu Xenial
Possibly tmux
The text was updated successfully, but these errors were encountered: