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

Unable to set-version to 2 after setting it to 1 (0x80070050) #6928

Closed
2 tasks done
assist726 opened this issue May 10, 2021 · 9 comments
Closed
2 tasks done

Unable to set-version to 2 after setting it to 1 (0x80070050) #6928

assist726 opened this issue May 10, 2021 · 9 comments

Comments

@assist726
Copy link

Windows Build Number

Microsoft Windows [Version 10.0.21376.1]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.10.16

Distro Version

Ubuntu 18.04

Other Software

No response

Repro Steps

I encountered the following error when starting up WSL2 :

WslRegisterDistribution failed with error: 0x80070050

Following online guides I attempted to reset my WSL back to version 1 and then to 2 again as this apparently fixed the issue.

Having now set my WSL to version 1, I now encounter this issue when attempting to reset to 2:

wsl --set-version Ubuntu-18.04 2

Conversion in progress, this may take a few minutes...
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
The supplied install location is already in use.

I would like to use --set-version instead of reinstalling as it seems my data is still store in my ext4 file, and in the Apps list my Ubuntu size is at 20GB. Would be a huge hassle to restore the environment.

Expected Behavior

Be able to set version to 2

Actual Behavior

wsl --set-version Ubuntu-18.04 2

Conversion in progress, this may take a few minutes...
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
The supplied install location is already in use.

Diagnostic Logs

No response

@benhillis
Copy link
Member

/logs

@ghost
Copy link

ghost commented May 10, 2021

Hello! Could you please provide more logs to help us better diagnose your issue? You can find instructions on how to attach logs here, please make sure to post the link to the Feedback Hub item in this chat so we can see it.

Thank you!

@assist726
Copy link
Author

I get the following error when trying to capture logs, and oddly my feedback hub is missing, when I try to add it via Apps-> Optional features it's nowhere to be found in that list either

C:\Users\zhang\Desktop>wpr -start wsl.wprp -filemode

    Error code: 0xc00ce584
    DTD is prohibited.

    Line Number: 7
    Column Number: 11

@OneBlue
Copy link
Collaborator

OneBlue commented May 14, 2021

@assist726: It looks like the wsl.wprp file you downloaded is corrupted, can you validate that its content matches this ?

@assist726
Copy link
Author

@OneBlue Apologies, did redownload and has seemed to work this time.

https://github.com/assist726/wsl/blob/main/wsl.etl

@OneBlue
Copy link
Collaborator

OneBlue commented May 19, 2021

@assist726 : Based on the logs it looks like the VHD already exists.

Can you validate if there's already an ext4.vhd in C:\Users\{username}\AppData\Local\Packages\{app family name}\LocalState

If you don't know the app family name, you can get it with powershell:

Get-Appxpackage | where {$_.Name.contains("Ubuntu")}

@bpulliam bpulliam changed the title Unable to set-version to 2 after setting it to 1 Unable to set-version to 2 after setting it to 1 (0x80070050) May 20, 2021
@assist726
Copy link
Author

@OneBlue Yes there is already a ext4 in the location

@OneBlue
Copy link
Collaborator

OneBlue commented May 28, 2021

That's why the conversion is failing. I'd recommend making sure that you've backed up all the data you need from that vhd and then either moving it to a different location or deleting it and then try the conversion again.

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
Projects
None yet
Development

No branches or pull requests

3 participants