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

WSL2 fails to start #10536

Closed
1 of 2 tasks
Aerocatia opened this issue Sep 25, 2023 · 6 comments
Closed
1 of 2 tasks

WSL2 fails to start #10536

Aerocatia opened this issue Sep 25, 2023 · 6 comments

Comments

@Aerocatia
Copy link

Windows Version

Microsoft Windows [Version 10.0.22621.2283]

WSL Version

2.0.0.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

No response

Distro Version

Arch Linux

Other Software

No response

Repro Steps

I'm not sure what happened here. I upgraded to 2.0.0 and it seemed to work fine, however now WSL2 fails to start.

Catastrophic failure
Error code: Wsl/Service/E_UNEXPECTED

[process exited with code 4294967295 (0xffffffff)]
You can now close this terminal with Ctrl+D, or press Enter to restart.

Expected Behavior

WSL Starts

Actual Behavior

Does not start.

Diagnostic Logs

No response

@Aerocatia
Copy link
Author

Aerocatia commented Sep 25, 2023

Logs: WslLogs-2023-09-26_00-05-01.zip

@benhillis
Copy link
Member

@Aerocatia - looks like you have systemd enabled and executing /sbin/init is failing with errno 8 (ENOEXEC). I would suggest enabling safe mode and disabling systemd so you can see what's going on in your distro.

%userprofile%\.wslconfig

[wsl2]
safeMode=true

@Aerocatia
Copy link
Author

After that it I get a different error.

sl: SAFE MODE ENABLED - many features will be disabled
<3>WSL (5) ERROR: CreateProcessEntryCommon:505: execvpe /bin/bash failed 5
<3>WSL (5) ERROR: CreateProcessEntryCommon:508: Create process not expected to return

[process exited with code 1 (0x00000001)]
You can now close this terminal with Ctrl+D, or press Enter to restart.

The system distro starts correctly if I run wsl --system, so somehow the distro instance broke.

@OneBlue
Copy link
Collaborator

OneBlue commented Sep 26, 2023

Thank you @Aerocatia. Based on the logs it looks like your distribution is either corrupted, or not matching your CPU. Are running on arm ?

Does installing a distribution via wsl --install (wsl --install -d debian) work ?

@Aerocatia
Copy link
Author

I am not using arm, it has always been x86_64.
I got it running again by importing an older copy of the exact same distro install from another computer. It still works after updating it, so I can only assume it was corrupted somehow.

I'll close this as the fault was with the installed Linux filesystem, although I'm not sure how that happened.

@Morrigan-Ship
Copy link

same problem
but when disabling safemod this error again

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

4 participants