Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #975982

Bug#940840: systemctl --no-ask-password restart apt-daily-upgrade.timer hangs indefinetely

From Michael Biebl <biebl@debian.org>
Newsgroups linux.debian.bugs.dist
Subject Bug#940840: systemctl --no-ask-password restart apt-daily-upgrade.timer hangs indefinetely
Date 2019-09-20 20:20 +0200
Message-ID <yIvFD-6nW-5@gated-at.bofh.it> (permalink)
References <yIvFD-6nW-7@gated-at.bofh.it> <yIvFD-6nW-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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?

Back to linux.debian.bugs.dist | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Bug#940840: systemctl --no-ask-password restart apt-daily-upgrade.timer hangs indefinetely Michael Biebl <biebl@debian.org> - 2019-09-20 20:20 +0200
  Bug#940840: systemctl --no-ask-password restart apt-daily-upgrade.timer hangs indefinetely Marc Haber <mh+debian-bugs@zugschlus.de> - 2019-09-20 23:30 +0200
    Bug#940840: systemctl --no-ask-password restart apt-daily-upgrade.timer hangs indefinetely Marc Haber <mh+debian-bugs@zugschlus.de> - 2019-09-20 23:30 +0200
      Bug#940840: systemctl --no-ask-password restart apt-daily-upgrade.timer hangs indefinetely Marc Haber <mh+debian-bugs@zugschlus.de> - 2019-09-21 09:00 +0200
        Bug#940840: systemctl --no-ask-password restart apt-daily-upgrade.timer hangs indefinetely Marc Haber <mh+debian-bugs@zugschlus.de> - 2019-09-22 17:50 +0200
        Bug#940840: systemctl --no-ask-password restart apt-daily-upgrade.timer hangs indefinetely Marc Haber <mh+debian-bugs@zugschlus.de> - 2019-09-22 17:50 +0200
          Bug#940840: systemctl --no-ask-password restart apt-daily-upgrade.timer hangs indefinetely Marc Haber <mh+debian-bugs@zugschlus.de> - 2019-09-22 17:50 +0200
          Bug#940840: systemctl --no-ask-password restart apt-daily-upgrade.timer hangs indefinetely Marc Haber <mh+debian-bugs@zugschlus.de> - 2019-09-22 17:50 +0200

csiph-web