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

Systemd services failing on WSL2 #310

Open
zoltan-magyar opened this issue Jan 30, 2023 · 2 comments
Open

Systemd services failing on WSL2 #310

zoltan-magyar opened this issue Jan 30, 2023 · 2 comments

Comments

@zoltan-magyar
Copy link

Describe the issue
After a fresh installation on WSL version 1.0.3.0, the following services fail, other services seem to be fine:

  • systemd-sysctl.service
  • systemd-sysusers.service
  • systemd-tmpfiles-setup-dev.service
  • systemd-tmpfiles-setup.service

All of them with the following error: (code=exited, status=243/CREDENTIALS)

To Reproduce
Fresh installation of ArchWSL, as per documentation:

  • set up root password
  • create default user
  • initialize keyring

wsl.conf contents (default):

[boot]
systemd=true

[automount]
enabled = true
options = "metadata"
mountFsTab = true

Expected behavior
The systemd related services should start without problem.

Enviroment:

  • Windows build number: 10.0.22621.1194
  • WSL version 1/2: WSL2 (version: 1.0.3.0)
  • ArchWSL version: 22.10.16.0
  • ArchWSL Installer type: appx
  • Launcher version: 22020900
@zoltan-magyar
Copy link
Author

This problem is related to WSL itself:

/microsoft/WSL/issues/8879

@MorphBonehunter
Copy link

Hey @zoltan-magyar,
you are right, that's a problem with wsl.
But the issue you mentioned isn't related to that.
The cause of the problem is described in
microsoft/WSL#8996 (comment) and was fixed in wsl 1.1.0 (pre release).
In the meantime version 1.1.3 is latest and should be available to download soon (if you update from ms store).

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

2 participants