Skip to content

wsl: Failed to start the systemd user session for 'l3gi0n'. See journalctl for more details. #13564

@Ahri-man

Description

@Ahri-man

Windows Version

Microsoft Windows [Version 10.0.26100.6584]

WSL Version

2.6.1.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

Linux version 6.6.87.2-microsoft-standard-WSL2 (root@439a258ad544) (gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.37) #1 SMP PREEMPT_DYNAMIC Thu Jun 5 18:30:46 UTC 2025

Distro Version

Arch Linux

Other Software

``

Repro Steps

running "wsl" in windows terminal sometimes randomly gives the following error:

wsl: Failed to start the systemd user session for 'l3gi0n'. See journalctl for more details.

Expected Behavior

Everything works but I randomly get this error right after i type 'wsl' in windows' terminal.

Actual Behavior

I randomly get this error right after i type 'wsl' in windows' terminal:

wsl: Failed to start the systemd user session for 'l3gi0n'. See journalctl for more details.

Diagnostic Logs

[l3gi0n@Euler ~]$ journalctl _SYSTEMD_UNIT=user@$(id -u l3gi0n).service
-- Boot fba24d125ac549528199f473c3129ded --
Oct 05 15:21:37 Euler (sd-exec-strv)[221]: '/run/systemd/user-generators/wsl-user-generator' is marked world-writable, which is a security risk as it is executed with privileges. Please remove world writability permission bits. Proceeding anyway.
[l3gi0n@Euler ~]$ ls -l /run/systemd/user-generators/
total 0
lrwxrwxrwx 1 root root 5 Oct  5 15:22 wsl-user-generator -> /init
[l3gi0n@Euler ~]$ systemctl --user --failed
Failed to connect to user scope bus via local transport: No such file or directory
[l3gi0n@Euler ~]$ systemctl --user status
Failed to connect to user scope bus via local transport: No such file or directory
[l3gi0n@Euler ~]$ cat /etc/wsl.conf
[boot]
systemd=true

[user]
default=l3gi0n
[l3gi0n@Euler ~]$ ls -ld /run/user/$(id -u)
drwx------ 2 l3gi0n l3gi0n 40 Oct  5 15:22 /run/user/1000
[l3gi0n@Euler ~]$ systemctl status [email protected]
× [email protected] - User Manager for UID 1000
     Loaded: loaded (/usr/lib/systemd/system/[email protected]; static)
    Drop-In: /usr/lib/systemd/system/[email protected]
             └─10-login-barrier.conf
     Active: failed (Result: resources)
 Invocation: a8e1a3bf7bb04c508a425d64d410e21c
       Docs: man:[email protected](5)
   Mem peak: 8.3M
        CPU: 479ms

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions