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

Error code: Wsl/Service/CreateInstance/0xd0000034 #9930

Closed
1 of 2 tasks
rayaivy opened this issue Apr 7, 2023 · 10 comments
Closed
1 of 2 tasks

Error code: Wsl/Service/CreateInstance/0xd0000034 #9930

rayaivy opened this issue Apr 7, 2023 · 10 comments

Comments

@rayaivy
Copy link

rayaivy commented Apr 7, 2023

Version

Microsoft Windows [Version 10.0.19045.2728]

WSL Version

  • WSL2
  • WSL1
    v 1.1.6.0

Kernel Version

5.15.90.1

Distro Version

Ubuntu

Other Software

No response

Repro Steps

wsl -d Ubuntu

Or

Start the Ubuntu Terminal application

Expected Behavior

Ubuntu terminal open and presents running terminal

Actual Behavior

Error: 0xd0000034
Error code: Wsl/Service/CreateInstance/0xd0000034
Error: 0xd0000034
Error code: Wsl/Service/CreateInstance/0xd0000034
Error: 0xd0000034
Error code: Wsl/Service/CreateInstance/0xd0000034
Press any key to continue...

Diagnostic Logs

No response

@mariorecinos
Copy link

mariorecinos commented Apr 7, 2023

Check if you have any firewall or other type of safeguard software in your pc a similar issue was solved with that. Also any reason in particular you are using wsl1? Wsl2 is latest supported version.

#9378

@rayaivy
Copy link
Author

rayaivy commented Apr 7, 2023

Check if you have any firewall or other type of safeguard software in your pc a similar issue was solved with that. Also any reason in particular you are using wsl1? Wsl2 is latest supported version.

#9378

Turned off windows defender to no avail. No particular reason I'm using WSL1 other than when I installed Terminal and Canonical Group's Ubuntu back in January, that's what was installed. Things worked fine the last time I used it in February

@mariorecinos
Copy link

mariorecinos commented Apr 7, 2023

Reset the WSL configuration by running the command wsl --unregister to remove the distribution that is causing the problem, and then running the command wsl --install to reinstall the distribution.

Maybe it may have been corrupted or interrupted when you were doing the install. Since it was working before. Another thing Iike to do is to make sure I am installing wsl 2 and the specific distribution of Linux I want to use. I hope these commands help.

https://learn.microsoft.com/en-us/windows/wsl/install

@rayaivy
Copy link
Author

rayaivy commented Apr 8, 2023

Reset the WSL configuration by running the command wsl --unregister to remove the distribution that is causing the problem, and then running the command wsl --install to reinstall the distribution.

Maybe it may have been corrupted or interrupted when you were doing the install. Since it was working before. Another thing Iike to do is to make sure I am installing wsl 2 and the specific distribution of Linux I want to use. I hope these commands help.

https://learn.microsoft.com/en-us/windows/wsl/install

Hmm. I successfully unregistered Ubuntu but...

Running
wsl --install Ubuntu
results in

Ubuntu is already installed.
Launching Ubuntu...
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80071772
Error: 0x80071772 The specified file is encrypted and the user does not have the ability to decrypt it.

Press any key to continue...

EDIT----
I did a reboot hoping that would fix things. Tried to install ubuntu again, it said it was already installed, launching Ubuntu... and it just stalled out there.

Tried running through the unregister-install sequence again::

PS C:\Users\rayaivy> wsl --unregister Ubuntu
Unregistering.
There is no distribution with the supplied name.
Error code: Wsl/Service/WSL_E_DISTRO_NOT_FOUND
PS C:\Users\RayaI> wsl --update
Checking for updates.
The most recent version of Windows Subsystem for Linux is already installed.
PS C:\Users\rayaivy> wsl --version
WSL version: 1.1.6.0
Kernel version: 5.15.90.1
WSLg version: 1.0.50
MSRDC version: 1.2.3770
Direct3D version: 1.608.2-61064218
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.19045.2728
PS C:\Users\rayaivy> wsl.exe --install Ubuntu
Ubuntu is already installed.
Launching Ubuntu...
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80071772
Error: 0x80071772 The specified file is encrypted and the user does not have the ability to decrypt it.

Press any key to continue...
PS C:\Users\rayaivy> wsl -l -v
Windows Subsystem for Linux has no installed distributions.

Use 'wsl.exe --list --online' to list available distributions
and 'wsl.exe --install <Distro>' to install.

Distributions can also be installed by visiting the Microsoft Store:
https://aka.ms/wslstore
Error code: Wsl/WSL_E_DEFAULT_DISTRO_NOT_FOUND
PS C:\Users\rayaivy>

@mariorecinos
Copy link

mariorecinos commented Apr 8, 2023

It looks like you have encountered several errors while trying to unregister, update, and install Ubuntu using WSL. Here are some suggestions to try:

The first error you encountered while trying to unregister Ubuntu suggests that there is no distribution with the supplied name. Double-check the name of the distribution you are trying to unregister by running wsl --list --verbose and make sure you are using the correct name.

The second error you encountered while trying to install Ubuntu suggests that the specified file is encrypted and the user does not have the ability to decrypt it. Check if the directory or file where Ubuntu is installed is encrypted, and if so, try decrypting it first before attempting to install or launch Ubuntu.

Try running wsl --shutdown to fully shut down WSL and all distributions, and then try running wsl --install Ubuntu again.

If none of the above solutions work, try resetting WSL by running wsl --unregister followed by wsl --install. Note that this will delete all WSL distributions and data, so make sure to back up any important data before doing this.

If you continue to encounter errors, you can try reinstalling or updating WSL by following the instructions on the Microsoft documentation: https://docs.microsoft.com/en-us/windows/wsl/install-win10

The good thing is you are getting new error messages.

@benhillis
Copy link
Member

/logs

@microsoft-github-policy-service
Copy link
Contributor

Hello! Could you please provide more logs to help us better diagnose your issue?

To collect WSL logs, download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The scipt will output the path of the log file once done.

Once completed please upload the output files to this Github issue.

Click here for more info on logging

Thank you!

@rayaivy
Copy link
Author

rayaivy commented Apr 13, 2023

Sorry for abandoning the thread. I was away from the system over the weekend, and it looks like it had a couple reboots. There was no issue unregistering and reinstalling the Ubuntu distro.

@mariorecinos
Copy link

Sorry for abandoning the thread. I was away from the system over the weekend, and it looks like it had a couple reboots. There was no issue unregistering and reinstalling the Ubuntu distro.

Glad to hear the issue was resolved!

Copy link
Contributor

This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

Thank you!

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

3 participants