WSL icon indicating copy to clipboard operation
WSL copied to clipboard

wsl 2.4.4.: An assertion failure has occurred. Error code: Wsl/Service/0x8007029c [SOLVED - but...]

Open josemtella opened this issue 2 years ago • 21 comments

Windows Version

Microsoft Windows [Version 10.0.26100.2448]

WSL Version

2.4.4.0

Are you using WSL 1 or WSL 2?

  • [x] 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

josemtella avatar Nov 19 '24 15:11 josemtella

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.

github-actions[bot] avatar Nov 19 '24 15:11 github-actions[bot]

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

Image

espresso3389 avatar Nov 19 '24 17:11 espresso3389

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

Marukome0743 avatar Nov 20 '24 01:11 Marukome0743

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

github-actions[bot] avatar Nov 20 '24 07:11 github-actions[bot]

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

thomasyangbo avatar Nov 21 '24 04:11 thomasyangbo

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

ssi-kt avatar Nov 21 '24 05:11 ssi-kt

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

how to downgrade to 2.3.26?

thomasyangbo avatar Nov 21 '24 05:11 thomasyangbo

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.

ssi-kt avatar Nov 21 '24 05:11 ssi-kt

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.

espresso3389 avatar Nov 21 '24 06:11 espresso3389

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.

OneBlue avatar Nov 22 '24 23:11 OneBlue

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 avatar Nov 23 '24 09:11 josemtella

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.

github-actions[bot] avatar Nov 23 '24 10:11 github-actions[bot]

I leave the logs once I have seen the problem with my answer: https://github.com/microsoft/WSL/issues/12294#issuecomment-2495421233

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

josemtella avatar Nov 23 '24 10:11 josemtella

Diagnostic information
.wslconfig found
Detected appx version: 2.4.4.0

github-actions[bot] avatar Nov 23 '24 10:11 github-actions[bot]

@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?

benhillis avatar Nov 25 '24 21:11 benhillis

@benhillis see:

Image

josemtella avatar Nov 26 '24 09:11 josemtella

[code] set var=└─ [/code]

josemtella avatar Nov 26 '24 15:11 josemtella

Thanks! I have confirmed my fix resolves this issue.

benhillis avatar Nov 26 '24 20:11 benhillis

Could anyone please tell me how I can fix this problem? I use Ubuntu Preview and want to Upgrade WSL to WSL Preview. Please guide me on this matter.

rajinstar avatar Dec 03 '24 10:12 rajinstar