Need help debugging shutdown issues

Nikolaus Rath Nikolaus at rath.org
Wed Nov 5 02:35:38 GMT 2014


Hello,

I'm using testing with systemd as pid 1, and my system does not shut
down (or reboot) properly.

That's a lot better than not booting properly, but I'd nevertheless like
to fix it :-).

I tried following the instructions at
http://freedesktop.org/wiki/Software/systemd/Debugging/#index2h1 and
found that

sync && reboot -f
sync && poweroff -f

work just fine. When rebooting or powering off with systemctl, however,
the system is still active after 10 minutes of waiting.


I then proceeded to add

systemd.log_level=debug systemd.log_target=kmsg log_buf_len=1M
enforcing=0

to the kernel command line and created the
/usr/lib/systemd/system-shutdown/debug.sh file. I noticed that the
system-shutdown directory did not exist - does that mean this method is
not applicable in Debian?

In any case, I did not get the /shutdown-log.txt file after trying to
shutdown, so I activated the debug shell instead.

On the debug shell, I ran

systemctl reboot &
sleep 120
dmesg > dmesg.txt
systemctl status > systemctl-status.txt
systemctl list-units > systemctl-units.txt
systemctl list-jobs > systemctl-jobs.txt

This gave me a huge amount of information (included below), but I don't
really know what to do with it. For example, is it a problem if
samba.service has status "stop running"? Or is the problem with
umount.target being in "start waiting"?

Could someone give me a hint what I should look for and/or where I
should look for it to debug this further?

Best,
-Nikolaus

-- 
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

             »Time flies like an arrow, fruit flies like a Banana.«

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dmesg.txt
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20141104/c071bdfb/attachment-0004.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: systemctl-status.txt
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20141104/c071bdfb/attachment-0005.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: systemctl-units.txt
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20141104/c071bdfb/attachment-0006.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: systemctl-jobs.txt
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20141104/c071bdfb/attachment-0007.txt>


More information about the Pkg-systemd-maintainers mailing list