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

Unable to start WSL2 #9171

Closed
1 of 2 tasks
7-zete-7 opened this issue Nov 18, 2022 · 6 comments
Closed
1 of 2 tasks

Unable to start WSL2 #9171

7-zete-7 opened this issue Nov 18, 2022 · 6 comments

Comments

@7-zete-7
Copy link

Version

Microsoft Windows [Version 10.0.22000.1281]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

Linux version 5.15.74.2-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP Wed Nov 2 19:50:29 UTC 2022

Distro Version

WLinux

Other Software

Docker Desktop (Windows), version 4.14.1

Repro Steps

Just run distro or start it by wsl.exe -d WLinux command.

Expected Behavior

Prompt on started distro.

Actual Behavior

Errors

<3>WSL (211) ERROR: CreateProcessEntryCommon:559: chdir(/home/zete7) failed 5
<3>WSL (211) ERROR: CreateProcessEntryCommon:570: execvpe /usr/bin/zsh failed 5
<3>WSL (211) ERROR: CreateProcessEntryCommon:579: Create process not expected to return

and process ending with code 1

Diagnostic Logs

WslLogs-2022-11-18_12-41-04.zip

@7-zete-7
Copy link
Author

By command

wsl.exe -d WLinux -u root -e sh

I can access to distro. But next command on distro

cat /proc/version

I give this message

sh: 1: cat: Input/output error

@Biswa96
Copy link

Biswa96 commented Nov 18, 2022

The issue seems to be WLinux specific and not related to WSL itself. The home directory and default shell are not set properly at the time of installation/creation of the distribution.

@7-zete-7
Copy link
Author

Probably there was some kind of file system error. None of the files could be read.

The problem was solved by exporting the distro (via the wsl.exe --export command) and importing it into a new distro.

@PorcoRosso85
Copy link

I'm encounting same issue.

wsl version

wsl2

distro version

Ubuntu 22.04

error message

when run distro

<3>WSL (9) ERROR: CreateProcessEntryCommon:570: execvpe /bin/bash failed 2
<3>WSL (9) ERROR: CreateProcessEntryCommon:579: Create process not expected to return

@aasitvora99
Copy link

This happened with me too when i tried to reinstall my ubuntu distro. Any suggestions on how to fix this?

@Biswa96
Copy link

Biswa96 commented Dec 22, 2022

How did you reinstall it?

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