Skip to content

Systemd cannot enter unknown state and Genie cannot list any failed units #297

@CompSciDude1

Description

@CompSciDude1

Windows version (build number):

Version 20H2 (OS Build 19042.1889)

Linux distribution:

Ubuntu 22.04 LTS (Jammy Jellyfish)

I cannot get to the Microsoft Store to install it, so I ran winget show –name “Ubuntu 22.04 LTS”, retrieved the Download Url, and pasted that in my browser to download the Ubuntu2204-220620.AppxBundle.

Kernel version:

5.10.16.3-microsoft-standard-WSL2

Genie version:

genie 2.4

Describe the bug

Genie fails to initialize. Genie fails to list failed units due to Transport endpoint is not connected.

Confirm that you are running inside the bottle:

Outside.

To Reproduce

Steps to reproduce the behavior:

  • Download the latest Ubuntu 22.04 sideload.
  • Install it
  • Launch it
  • Follow the prompts to set up Ubuntu 22.04
  • Run sudo apt update
  • Run sudo apt upgrade net-tools nfs-common mount cifs-utils dos2unix
  • Run sudo apt install build-essential binutils-doc cpp-doc gcc-doc glibc-doc libstdc++-9-doc make-doc automake autoconf-doc m4-doc aspell aspell-doc git gitk git-doc git-gui gitmagic git-extras git-lfs gdb gdb-doc ddd ddd-doc valgrind ssh ssh-tools libjpeg-dev libjpeg62 libgl1-mesa-dev libglu1-mesa-dev mesa-utils glmark2 kcachegrind cppcheck source-highlight qtbase5-dev qtbase5-doc qtbase5-doc-dev qtbase5-doc-html qt5-doc qt5-doc-html qtcreator qgit cmake-doc cmake cmake-qt-gui
  • Run sudo apt install ghostscript ghostscript-x ghostscript-doc gsfonts gv gnuplot gnuplot-doc gnuplot-qt graphviz graphviz-doc doxygen doxygen-latex doxygen-gui doxygen-doc dvipng python2 python3 python3-pip python3-testresources python3-ndg-httpsclient
  • Run sudo apt install xorg xorg-docs xloadimage xfonts-100dpi xfonts-75dpi xfonts-terminus xfonts-traditional xfonts-cyrillic xfonts-traditional desktop-base ubuntu-desktop gnome gnome-shell-extension-ubuntu-dock daemonize network-manager-openconnect network-manager-openconnect-gnome meld yelp
  • Configure the wsl-transdebian repository
  • Run sudo apt update
  • Run sudo apt install systemd-genie
  • Restart WSL2
  • Run genie –verbose –initialize

Systemd tries to enter state unknown. Genie fails to initlaize. Genie fails to list failed units. Please see Additional context for console output.

Expected behavior

Genie should list the failed units.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

tommy@tsmith-ubuntu2204:~$ genie --verbose --initialize
genie: starting bottle
genie: generating new hostname
genie: external hostname is tsmith-ubuntu2204
genie: setting new hostname to tsmith-ubuntu2204-wsl
genie: updating hosts file
genie: unmounting binfmt_misc filesystem before proceeding
genie: AppArmor not available in kernel; attempting to continue without AppArmor namespace
genie: starting systemd with command line:
daemonize /usr/bin/unshare -fp --propagation shared --mount-proc -- systemd
Waiting for systemd....!
genie: systemd did not enter running state (unknown) after 1 seconds
genie: this may be due to a problem with your systemd configuration
genie: information on problematic units is available at https://github.com/arkane-systems/genie/wiki/Systemd-units-known-to-be-problematic-under-WSL
genie: a list of failed units follows:

Failed to list units: Transport endpoint is not connected
tommy@tsmith-ubuntu2204:~$

I confirm that I have read the ENTIRE supplied readme file and checked for relevant information on the repository wiki before raising this issue, and that if the solution to this issue is found in either location, it will be closed without further comment:

  • Yes.

Metadata

Metadata

Assignees

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