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/0x8000ffff #8711

Closed
1 of 2 tasks
Easonqsp opened this issue Aug 10, 2022 · 10 comments
Closed
1 of 2 tasks

Error code: Wsl/Service/CreateInstance/0x8000ffff #8711

Easonqsp opened this issue Aug 10, 2022 · 10 comments

Comments

@Easonqsp
Copy link

Version

Microsoft Windows [Version 10.0.25174.1010]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.15.57.1

Distro Version

Ubuntu-22.04

Other Software

No response

Repro Steps

PS ****> wsl
灾难性故障
Error code: Wsl/Service/CreateInstance/0x8000ffff

Expected Behavior

I was starting the WSL

Actual Behavior

It throw "Error code: Wsl/Service/CreateInstance/0x8000ffff"

Diagnostic Logs

No response

@OneBlue
Copy link
Collaborator

OneBlue commented Aug 16, 2022

/logs

@ghost
Copy link

ghost commented Aug 16, 2022

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!

@ghost ghost closed this as completed Aug 23, 2022
@ghost
Copy link

ghost commented Aug 23, 2022

This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-open it.

Thank you!

@duncanmak
Copy link

WslLogs-2022-09-08_00-52-33.zip

I have been experiencing this issue on my Surface Pro X running Windows 11.

@zeejay09
Copy link

zeejay09 commented Dec 2, 2022

I encountered this issue when my computer suddenly shutdowns due to power interruption, is there any way to recover or fix it? Or a reinstall is a must?

WslLogs-2022-12-02_15-14-06.zip

@OneBlue
Copy link
Collaborator

OneBlue commented Dec 5, 2022

@zeejay09: Looking at the logs, it looks like your distribution vhdx needs fsck.

3116	False	Microsoft.Windows.Lxss.Manager	GuestLog	0	12-01-2022 23:14:21.375	30380	"text: 	""[    2.541583] EXT4-fs error (device sdc): ext4_validate_inode_bitmap:105: comm init: Corrupt inode bitmap - block_group = 66, inode_bitmap = 5315 ""
vmId: 	{6eee6f5c-f6cc-48ac-9028-94b3653cc640}"		"	"				10372	5		00000000-0000-0000-0000-000000000000		

To solve this you could use another distribution and mount the distribution disk via wsl .exe--mount

(You can find the path to the distribution vhdx under Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss)

Once mounted, you can use lsblk to find the block device path, and then use fsck /dev/sdX to repair the disk (replace sdX by the block device name)

@emmyapi
Copy link

emmyapi commented Dec 17, 2022

WslLogs-2022-12-18_00-38-39.zip

My error message is just:
PS C:\Users\[redacted]> wsl --install -d Ubuntu-20.04
Installing: Windows Subsystem for Linux
Catastrophic failure
PS C:\Users\[redacted]>

For me, WSL 2.0 is installed I think. But I can't install any distributions

@OneBlue
Copy link
Collaborator

OneBlue commented Dec 20, 2022

WslLogs-2022-12-18_00-38-39.zip

My error message is just: PS C:\Users[redacted]> wsl --install -d Ubuntu-20.04 Installing: Windows Subsystem for Linux Catastrophic failure PS C:\Users[redacted]>

For me, WSL 2.0 is installed I think. But I can't install any distributions

This probably the same issue as #9258

@leocoolmitra
Copy link

WslLogs-2022-12-18_00-38-39.zip

My error message is just:
PS C:\Users\[redacted]> wsl --install -d Ubuntu-20.04
Installing: Windows Subsystem for Linux
Catastrophic failure
PS C:\Users\[redacted]>

For me, WSL 2.0 is installed I think. But I can't install any distributions

Hello I am facing the same issue. Just want to know how did you resolve the issue

@emmyapi
Copy link

emmyapi commented Jan 24, 2023

WslLogs-2022-12-18_00-38-39.zip
My error message is just:
PS C:\Users[redacted]> wsl --install -d Ubuntu-20.04
Installing: Windows Subsystem for Linux
Catastrophic failure
PS C:\Users[redacted]>
For me, WSL 2.0 is installed I think. But I can't install any distributions

Hello I am facing the same issue. Just want to know how did you resolve the issue

I realized it wasn't good enough to "open as administrator". I tried from the admin account, and it worked the first time

This issue was closed.
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

6 participants