wsl 2.4.4.: An assertion failure has occurred. Error code: Wsl/Service/0x8007029c [SOLVED - but...]
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
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:
- WSL2 fails to start (#10536), similarity score: 0.77
- Error code: Wsl/Service/CreateInstance/0x80040326 when starting WSL Distro (#9867), similarity score: 0.77
- Error code: Wsl/Service/CreateInstance/CreateVm/HCS/0x80070032 (#10809), similarity score: 0.75
- Unable to launch wsl2 (#11474), similarity score: 0.75
- Unable to launch wsl2 (#11473), similarity score: 0.75
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
I have the same issue. And, just trying to install another distro (debian), it shows the following error:
The log file: WslLogs-2024-11-20_09-59-45.zip
logs file WslLogs-2024-11-19_17-12-08.zip
Diagnostic information
.wslconfig found
Detected appx version: 2.4.4.0
Detected user visible error: Wsl/Service/0x8007029c
the same problemWslLogs-2024-11-21_11-59-48.zip
I had the same issue, but it was resolved by downgrading to version 2.3.26.
I had the same issue, but it was resolved by downgrading to version 2.3.26.
how to downgrade to 2.3.26?
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.
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.
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.
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.
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:
- wsl 2.4.4.: An assertion failure has occurred. Error code: Wsl/Service/0x8007029c (#12294), similarity score: 0.97
Closed similar issues:
- WSL2 fails to start (#10536), similarity score: 0.77
- Error code: Wsl/Service/CreateInstance/0x80040326 when starting WSL Distro (#9867), similarity score: 0.76
- Error code: Wsl/Service/CreateInstance/0x80040326 when starting WSL Distro (again) (#10232), similarity score: 0.76
- Error code: Wsl/Service/CreateInstance/CreateVm/HCS/0x80070032 (#10809), similarity score: 0.75
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
I leave the logs once I have seen the problem with my answer: https://github.com/microsoft/WSL/issues/12294#issuecomment-2495421233
Diagnostic information
.wslconfig found
Detected appx version: 2.4.4.0
@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 see:
[code] set var=└─ [/code]
Thanks! I have confirmed my fix resolves this issue.
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.