[systemd-devel] Troubleshooting systemd shutdown problems - systemctl hangs in debug shell
Vito Caputo
vcaputo at pengaru.com
Wed Jan 25 15:57:18 UTC 2023
On Wed, Jan 25, 2023 at 07:24:39PM +1000, Jeremy Herbert wrote:
> Hi,
>
> I am currently troubleshooting a problem where a raspberry pi zero w will
> not reboot after running the `reboot` command (it does reboot with `reboot
> -f` however) - it just "hangs". After enabling the serial console, my best
> guess was that a job is stuck in systemd, so I tried enabling the early
> boot shell. However, after I run `reboot` in a normal shell and change to
> the early boot shell, running the command `systemctl` (for example,
> `systemctl list-jobs`) just hangs forever. I can ctrl+c out of it and run
> other commands (`ps`, `ls`, etc) but I can't seem to query systemd through
> systemctl. Is there some way I can view the current state of systemd
> without this command?
>
> Some further details:
> Linux kernel 5.15.89+ running on raspberry pi zero w (via Raspberry Pi OS)
> systemd version: systemd 247 (247.3-7+rpi1+deb11u1)
> +PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP
> +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2
> -IDN +PCRE2 default-hierarchy=unified
>
v247 is old, try updating systemd before going too crazy here - there's
been plenty of bugs fixed since then.
Regards,
Vito Caputo
More information about the systemd-devel
mailing list