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 2.4.4.: An assertion failure has occurred. Error code: Wsl/Service/0x8007029c [SOLVED - but...] #12294

Open
1 of 2 tasks
josemtella opened this issue Nov 19, 2024 · 17 comments
Assignees

Comments

@josemtella
Copy link

Windows Version

Microsoft Windows [Version 10.0.26100.2448]

WSL Version

2.4.4.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.167.4-1

Distro Version

Any distro

Other Software

No response

Repro Steps

start any distro

Expected Behavior

start distro

Actual Behavior

The error An assertion failure has occurred. Error code: Wsl/Service/0x8007029c appears and the distribution does not start.

Diagnostic Logs

No response

Copy link

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How 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 script will output the path of the log file once done.

If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here

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

Click here for more info on logging
If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

View similar issues

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!

Closed similar issues:

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

@espresso3389
Copy link

I have the same issue. And, just trying to install another distro (debian), it shows the following error:

Image

@Marukome0743
Copy link

The log file:
WslLogs-2024-11-20_09-59-45.zip

@josemtella
Copy link
Author

logs file
WslLogs-2024-11-19_17-12-08.zip

Copy link

Diagnostic information
.wslconfig found
Detected appx version: 2.4.4.0
Detected user visible error: Wsl/Service/0x8007029c

@thomasyangbo
Copy link

the same problemWslLogs-2024-11-21_11-59-48.zip

@ssi-kt
Copy link

ssi-kt commented Nov 21, 2024

I had the same issue, but it was resolved by downgrading to version 2.3.26.

@thomasyangbo
Copy link

I had the same issue, but it was resolved by downgrading to version 2.3.26.

how to downgrade to 2.3.26?

@ssi-kt
Copy link

ssi-kt commented Nov 21, 2024

I had the same issue, but it was resolved by downgrading to version 2.3.26.

how to downgrade to 2.3.26?

https://github.com/microsoft/WSL/releases/tag/2.3.26
only need to run either wsl.2.3.26.0.x64.msi or wsl.2.3.26.0.arm64.msi.
Which one to run depends on your environment.

@espresso3389
Copy link

how to downgrade to 2.3.26?

To downgrade WSL version is very easy regardless of how you install WSL 2.4.4:

wsl --uninstall
wsl --install Ubuntu-24.04

Ubuntu-24.04 on the command line is just a example, use any distro you want to install.

@OneBlue
Copy link
Collaborator

OneBlue commented Nov 22, 2024

Thank you @josemtella. Looking at the logs, the issue seems to be coming from a string encoding errors.

Could you share what's your Windows username, and what environment variables you have set on the machine ? I wonder if there are special characters that are causing this error.

@josemtella
Copy link
Author

Tank @OneBlue, Indeed, the characters in the "prompt" environment variable are causing the error.
I have:

prompt=$_$E[92m┌─$E[93m[CMD]$E[92m─($E[94mcpanld4@%computername%$E[92m)$_└─$E[93m[$E[97m$p$E[93m]$E[94m$$$S$E[0m

If I remove it or set the value prompt=[$p], the Linux distributions boot without problems.
Just putting the previous prompt back, it fails again

I would like to keep the prompt, please consider this a bug.

@josemtella josemtella changed the title wsl 2.4.4.: An assertion failure has occurred. Error code: Wsl/Service/0x8007029c wsl 2.4.4.: An assertion failure has occurred. Error code: Wsl/Service/0x8007029c [SOLVED - but...] Nov 23, 2024
Copy link

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How 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 script will output the path of the log file once done.

If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here

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

Click here for more info on logging
If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

View similar issues

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!

Open similar issues:

Closed similar issues:

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

@josemtella
Copy link
Author

I leave the logs once I have seen the problem with my answer: #12294 (comment)

WslLogs-2024-11-23_11-13-40.zip

Copy link

Diagnostic information
.wslconfig found
Detected appx version: 2.4.4.0

@benhillis
Copy link
Member

@josemtella - I think I have a fix, could you give me some instructions on how validate this? You're setting some environment variable on the Windows side right?

@josemtella
Copy link
Author

@benhillis see:

Image

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

7 participants