Bug#940840: systemctl --no-ask-password restart apt-daily-upgrade.timer hangs indefinetely
Michael Biebl
biebl at debian.org
Fri Sep 20 19:11:48 BST 2019
Am 20.09.19 um 18:41 schrieb Marc Haber:
> Package: systemd
> Version: 242-7
> Severity: important
>
> Hi,
>
> thie system in question is a Banana Pi which I cannot update properly.
> apt's postinst isues systemctl restart apt-daily-upgrade.timer which
> hangs indefinetely. I can reproduce this by giving the systemctl restart
> command from a shell, as root (of course). Adding --no-ask-password, as
> suggested in many googleable resources about similiar issues, doesnt
> help. Neither does systemctl daemon-reexec nor reboooting.
>
> "Indefinetely" means more than two hours.
>
> Process structure:
>
> ├─sshd,514
> │ └─sshd,579
> │ ├─bash,580
> │ │ └─sudo,7620 systemctl --no-ask-password restart apt-daily-upgrade.timer
> │ │ └─systemctl,7621 --no-ask-password restart apt-daily-upgrade.timer
> │ └─bash,1621
> │ └─pstree,7623 -apl
>
>
> Debug log:
>
> -- Logs begin at Thu 2019-08-08 16:47:26 CEST. --
> Sep 20 16:49:44 banana sudo[7635]: pam_unix(sudo:session): session opened for user root by mh(uid=0)
> Sep 20 16:49:45 banana systemd[1]: Setting log level to debug.
> Sep 20 16:49:45 banana systemd[1]: Sent message type=method_return sender=org.freedesktop.systemd1 destination=n/a path=n/a interface=n/a member=n/a cookie=1 reply_cookie=1 signature=n/a error-name=n/a error-message=n/a
> Sep 20 16:49:45 banana sudo[7635]: pam_unix(sudo:session): session closed for user root
> Sep 20 16:49:45 banana systemd[1]: Bus private-bus-connection: changing state RUNNING → CLOSING
> Sep 20 16:49:45 banana systemd[1]: Bus private-bus-connection: changing state CLOSING → CLOSED
> Sep 20 16:49:45 banana systemd[1]: Got disconnect on private connection.
> Sep 20 16:49:52 banana systemd[1]: systemd-udevd.service: Got notification message from PID 203 (WATCHDOG=1)
> Sep 20 16:49:53 banana sudo[7642]: mh : TTY=pts/1 ; PWD=/home/mh ; USER=root ; COMMAND=/bin/journalctl -f
> Sep 20 16:49:53 banana sudo[7642]: pam_unix(sudo:session): session opened for user root by mh(uid=0)
> Sep 20 16:49:56 banana sudo[7644]: mh : TTY=pts/0 ; PWD=/home/mh ; USER=root ; COMMAND=/bin/systemctl --no-ask-password restart apt-daily-upgrade.timer
> Sep 20 16:49:56 banana sudo[7644]: pam_unix(sudo:session): session opened for user root by mh(uid=0)
> Sep 20 16:49:56 banana systemd[1]: Bus private-bus-connection: changing state UNSET → OPENING
> Sep 20 16:49:56 banana systemd[1]: Bus private-bus-connection: changing state OPENING → AUTHENTICATING
> Sep 20 16:49:56 banana systemd[1]: Accepted new private connection.
> Sep 20 16:49:56 banana systemd[1]: Bus private-bus-connection: changing state AUTHENTICATING → RUNNING
> Sep 20 16:49:56 banana systemd[1]: Got message type=method_call sender=n/a destination=org.freedesktop.systemd1 path=/org/freedesktop/systemd1 interface=org.freedesktop.systemd1.Manager member=RestartUnit cookie=1 reply_cookie=0 signature=ss error-name=n/a error-message=n/a
> Sep 20 16:49:56 banana systemd[1]: apt-daily-upgrade.timer: Trying to enqueue job apt-daily-upgrade.timer/restart/replace
> Sep 20 16:49:56 banana systemd[1]: Added job apt-daily-upgrade.timer/restart to transaction.
> Sep 20 16:49:56 banana systemd[1]: Pulling in sysinit.target/start from apt-daily-upgrade.timer/restart
...
This is strange. I can't reproduce the issue here.
Then again, systemctl restart apt-daily-upgrade.timer does not pull in a
sysinit.target/start (and all its dependencies).
This looks almost like the system has not successfully booted yet.
Is this from a system which is booted into multi-user.target or
graphical.target?
What's the output of
systemctl status
systemd list-jobs
systemd-analyze dump
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20190920/dacfd7a0/attachment.sig>
More information about the Pkg-systemd-maintainers
mailing list