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

Corrupt wsl.exe after power outage or coming out of hibernation #10763

Closed
2 tasks
daveneeley opened this issue Nov 16, 2023 · 4 comments
Closed
2 tasks

Corrupt wsl.exe after power outage or coming out of hibernation #10763

daveneeley opened this issue Nov 16, 2023 · 4 comments

Comments

@daveneeley
Copy link

daveneeley commented Nov 16, 2023

Windows Version

Microsoft Windows [Version 10.0.22621.2715]

WSL Version

2.0.9.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

No response

Distro Version

No response

Other Software

No response

Repro Steps

After an apparent power failure, I turned on my PC and found all apps functional except for WSL. It seems that wsl.exe itself has been corrupted. I have Ubuntu 22.04, Ubuntu 20.04, and Fedora Remix, but given that running wsl.exe --help crashes the issue does not seem to be VM specific.

Expected Behavior

Launch WSL distribution successfully.

Actual Behavior

wsl --help
The file or directory is corrupted and unreadable.
Error code: Wsl/CallMsi/0x80070570

(Additionally, when started from windows terminal)
[process exited with code 4294967295 (0xffffffff)]
You can now close this terminal with Ctrl+D, or press Enter to restart.

Diagnostic Logs

PS C:\Users\me> Get-AppxPackage |? { $_.Name -like "WindowsSubsystemforLinux" }

RunspaceId : d1d44f6e-6763-4907-b1ce-f0dbe3411817
Name : MicrosoftCorporationII.WindowsSubsystemForLinux
Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
PublisherId : 8wekyb3d8bbwe
Architecture : X64
ResourceId :
Version : 2.0.9.0
PackageFamilyName : MicrosoftCorporationII.WindowsSubsystemForLinux_8wekyb3d8bbwe
PackageFullName : MicrosoftCorporationII.WindowsSubsystemForLinux_2.0.9.0_x64__8wekyb3d8bbwe
InstallLocation : C:\Program Files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForLinux_2.0.9.0_x64__8wekyb3d8bbwe
IsFramework : False
PackageUserInformation : {}
IsResourcePackage : False
IsBundle : False
IsDevelopmentMode : False
NonRemovable : False
Dependencies : {}
IsPartiallyStaged : False
SignatureKind : Store
Status : Ok

Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

You can give me feedback by thumbs upping or thumbs downing this comment.

@daveneeley daveneeley changed the title How do I repair corrupt wsl.exe after power outage or coming out of hibernation Corrupt wsl.exe after power outage or coming out of hibernation Nov 16, 2023
@daveneeley
Copy link
Author

daveneeley commented Nov 16, 2023

The crash dump was over the size limit - let me know where to attach it.

edit: submitted it through feedback hub.

@daveneeley
Copy link
Author

I installed WSL 2.0.8.0 from github releases and that resolved the issue. I then installed 2.0.9.0 over it and that is working as well.

@yxlf
Copy link

yxlf commented Nov 30, 2023

I installed WSL 2.0.8.0 from github releases and that resolved the issue. I then installed 2.0.9.0 over it and that is working as well.
I also encountered the same problem, used this method, and it was really helpful.

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

2 participants