-
Notifications
You must be signed in to change notification settings - Fork 832
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 cannot startup with error code: Wsl/WSL_E_USER_NOT_FOUND #12028
Comments
Logs are required for review from WSL teamIf this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. How to collect WSL logsDownload and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
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 View similar issuesPlease 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:
|
logs uploaded via feedback hub. |
@localvar: Based on the output it looks like your distribution might be corrupted. The pwuuid error suggests that /etc/passwd is not there or unreadable, and the execvpe error points to ELIBBAD. Unfortunately this might mean that you need to re-register your distribution from scrach. You can try to recover your files via wsl --mount --vhd before re-registering, but when you're ready to restart the easiest would be to run: |
Thanks @OneBlue , I will try what you suggested. btw, do you think this related to exFAT? because I put the .vhdx file in an exFAT partition of the host machine and this is the 2nd time it suddenly cannot start in several months (but I have no idea about the error code of the 1st time now). I also run wsl on another computer for years, where I put the .vhdx file in an NTFS partition, and never met such an issue. |
Unless the disk got corrupted during the move, I'd say most likely not, but it doesn't hurt to try. |
Windows Version
Microsoft Windows [版本 10.0.22631.4037]
WSL Version
2.2.4.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.153.1-2
Distro Version
Ubuntu 24.04
Other Software
No response
Repro Steps
using
wsl.exe -d Ubuntu --cd ~ -u zlx
to start wsl, it works fine yesterday, but wsl cannot start today and report below error message:I think I have done nothing. I also tried
wsl.exe --shutdown
and then start wsl withwsl.exe -d Ubuntu
and it report:Expected Behavior
wsl starts successfully.
Actual Behavior
wsl cannot start up.
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: