WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

NixOS-WSL breaks every time I restart my PC #867

@brady444

Description

@brady444

Bug description

Same issue as in #847, but now happens every time I restart my PC.

After a while, wsl gives this error: "wsl: Failed to start the systemd user session for 'brady'. See journalctl for more details."

I am using this workaround currently to re-activate my NixOS configuration which fixes it temporarily:

wsl --user root --exec bash
export PATH="/nix/var/nix/profiles/system-284-link/sw/bin:${PATH}"
/nix/var/nix/profiles/system-284-link/activate

# Wait a bit, then Ctrl-C

su -l brady
rebuild # This is my custom shell function that runs `nixos-rebuild`

Let me know if you want any logs/any system info. Last time, I didn't find anything in journalctl. No idea what's going on here. Maybe Windows shuts down wsl improperly?

To Reproduce

Steps to reproduce the behavior:

  1. Restart PC
  2. Try to launch wsl

Logs

N/A

WSL version

WSL version: 2.6.1.0
Kernel version: 6.6.87.2-1
WSLg version: 1.0.66
MSRDC version: 1.2.6353
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.26200.7171

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions