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

WSL error 0x8007023e #9784

Closed
mikolertesx opened this issue Mar 14, 2023 · 20 comments
Closed

WSL error 0x8007023e #9784

mikolertesx opened this issue Mar 14, 2023 · 20 comments
Assignees

Comments

@mikolertesx
Copy link

mikolertesx commented Mar 14, 2023

CMD version

Microsoft Windows [Version 10.0.22621.1413]

Steps required to reproduce

wsl ---install

Copy of the terminal input

Ubuntu is already installed.
Launching Ubuntu...
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x8007023e
Error: 0x8007023e {Application Error}
The exception s (0x
Press any key to continue...

Expected behavior

Installing Ubuntu, and creating an account in the Terminal.

Strace output

Can't run Strace, as Ubuntu is not working.

Logs

WslLogs-2023-03-15_17-41-39.zip

@mikolertesx
Copy link
Author

image
I forgot to upload the image for it.
So here it is.

@OneBlue
Copy link
Collaborator

OneBlue commented Mar 14, 2023

Thanks for reporting this @mikolertesx. It looks like the logs are empty though, can you try to:

  • Run the log collection again (and make sure to capture the error while the log collection is running)
  • Follow the 11) Reporting a WSL process crash section and share any WSL crash dump that was recorded

@OneBlue OneBlue self-assigned this Mar 14, 2023
@mikolertesx
Copy link
Author

@OneBlue There we go!
followed the steps, this time :d!

@OneBlue
Copy link
Collaborator

OneBlue commented Mar 15, 2023

Thanks @mikolertesx. Did you find any crash dumps while you were doing this ?

@mikolertesx
Copy link
Author

Thanks @mikolertesx. Did you find any crash dumps while you were doing this ?

If you mean the last section of the Git document, no, there are no Crash dumps, even after the regedit changes, and making wsl crash again!.

btw, what's happening is that it crashes whenever I try to install the distribution, so maybe that's before the crashes are even ready to be dumped 😭

@mikolertesx
Copy link
Author

Sending another message to keep this from getting closed 🗡️

@OneBlue
Copy link
Collaborator

OneBlue commented Mar 20, 2023

Thank you @mikolertesx. To root cause this we'd need to take a TDD trace of the service, so let's try that.

I just wrote instructions on how to do that, can you please follow the '12) Collect wslservice time travel debugging traces'
section and share the result trace while reproducing the issue ?

@mikolertesx
Copy link
Author

image
Well, this is going to be a tough nut to crack, isn't it?

@mikolertesx
Copy link
Author

I'm getting a different error, ever since I went back to wsl 1, and upgraded to wsl 2, the error being "Error code: Wsl/Service/CreateVm/ConfigureNetworking/0x8007023e".
image

@mikolertesx
Copy link
Author

Comment to avoid this from being deleted.

@OneBlue
Copy link
Collaborator

OneBlue commented Mar 27, 2023

Thanks @mikolertesx. Looking at the error message you got, it looks like the issue is probably somewhere in the host networking service.

Can you collect traces again when you get this error so we can have a deeper look ?

@mikolertesx
Copy link
Author

@OneBlue I can't use WinDBG, it doesn't stop recording so all recordings become corrupted.

@OneBlue
Copy link
Collaborator

OneBlue commented Mar 28, 2023

Sorry for the misunderstanding, by traces, I meant /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!

@mikolertesx
Copy link
Author

WslLogs-2023-03-30_17-32-08.zip
I:
1.- Ran the file.
2.- Reproduced the issue by trying to upgrade to WSL version 2.
3.- Pressed enter.
4.- Sent this file to you through Github.
Here is the file, my helpful friend! :D.
reproduced the issue, then click enter for it to finish

@OneBlue
Copy link
Collaborator

OneBlue commented May 12, 2023

Thanks for reporting this @mikolertesx.

Looking at the logs, this is an issue in HNS that should be fixed by now. Do you still see the error ?

@mikolertesx
Copy link
Author

@OneBlue Well, no, I couldn't fix the thing in time.
I had work to do, so I ended up reinstalling Windows 11, and I had to:

  • Pay for another Windows Key (Custom Built PC).
  • Lost access to VMWare Pro that had a 1-Machine key policy.
  • Let go of my Microsoft Office 2021 Copy, which I paid and lost the serial key to.

All in all, I'm just glad no one else will have to go through the same issue.
I'm glad to hear this won't happen to the next guy xd.

@OneBlue
Copy link
Collaborator

OneBlue commented May 12, 2023

Oh sorry to hear that.

Closing since the repro is gone.

@OneBlue OneBlue closed this as completed May 12, 2023
@mikolertesx
Copy link
Author

Seems reasonable.
I need to look for someone to complain with xd.

@nvenhuizen14
Copy link

For anyone dealing with this issue still ---------

I had the same issue and went through all steps listed here and here https://github.com/microsoft/WSL/issues/5508 with no changes. Right before i was going to reinstall windows i rememberd i hadn't installed Restoro on this computer yet. It works by scanning and replacing courrupted/deleted files in windows. So quick install, run and restart with Restoro and everthing is back to normal for me. Although i did use the paid version the free version should be able to do the same thing for anyone interested. I'm not affiliated with Restoro in anyway just think it could help some of the people dealing with this issue. It was 3 days of beating my head agaisnt the wall before this so i understand everyones pain! Good Luck! :)

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