Bug#1080427: systemd fails to upgrade or respond, indicating a timeout error

Petter L. H. Eide petter at eide.biz
Tue Sep 3 19:43:22 BST 2024


Package: systemd
Version: 256.5-2
Severity: important

Dear Maintainer,

When attempting to upgrade systemd, it fails with the following error
message:

x at splendid:~$ sudo apt install --fix-broken
Summary:
  Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 91
  3 not fully installed or removed.
  Space needed: 0 B / 1550 GB available

Setting up systemd (256.5-2) ...
Failed to retrieve unit state: Failed to activate service
'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)
Failed to get properties: Failed to activate service
'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)
dpkg: error processing package systemd (--configure):
 installed systemd package post-installation script subprocess returned
error exit status 1
dpkg: dependency problems prevent configuration of libpam-systemd:amd64:
 libpam-systemd:amd64 depends on systemd (= 256.5-2); however:
  Package systemd is not configured yet.

dpkg: error processing package libpam-systemd:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnss-systemd:amd64:
 libnss-systemd:amd64 depends on systemd (= 256.5-2); however:
  Package systemd is not configured yet.

dpkg: error processing package libnss-systemd:amd64 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 systemd
 libpam-systemd:amd64
 libnss-systemd:amd64
Error: Sub-process /usr/bin/dpkg returned an error code (1)

I see it is reporting issues in kernel log:
x at splendid:~$ sudo dmesg | grep systemd | tail
[1206807.222886] systemd-journald[598]: Failed to send WATCHDOG=1
notification message: Transport endpoint is not connected
[1206896.972072] systemd-journald[598]: Failed to send WATCHDOG=1
notification message: Transport endpoint is not connected
[1206987.220916] systemd-journald[598]: Failed to send WATCHDOG=1
notification message: Transport endpoint is not connected
[1207076.970031] systemd-journald[598]: Failed to send WATCHDOG=1
notification message: Transport endpoint is not connected
[1207167.219158] systemd-journald[598]: Failed to send WATCHDOG=1
notification message: Transport endpoint is not connected
[1207256.968271] systemd-journald[598]: Failed to send WATCHDOG=1
notification message: Transport endpoint is not connected
[1207347.217466] systemd-journald[598]: Failed to send WATCHDOG=1
notification message: Transport endpoint is not connected
[1207436.966581] systemd-journald[598]: Failed to send WATCHDOG=1
notification message: Transport endpoint is not connected
[1207526.965544] systemd-journald[598]: Failed to send WATCHDOG=1
notification message: Transport endpoint is not connected
[1207616.964663] systemd-journald[598]: Failed to send WATCHDOG=1
notification message: Transport endpoint is not connected

And after chatting online, I understand the following may also be relevant:
x at splendid:~$ sudo busctl list
NAME                               PID PROCESS         USER
 CONNECTION    UNIT                             SESSION DESCRIPTION
:1.0                               947 bluetoothd      root            :1.0
         bluetooth.service                -       -
:1.1                               948 boltd           root            :1.1
         bolt.service                     -       -
:1.10                              943 systemd-network systemd-network
:1.10         systemd-networkd.service         -       -
:1.1157320                     2024002 agent           x
:1.1157320    lightdm.service                  -       -
:1.1159365                     2031401 Xorg            root
 :1.1159365    lightdm.service                  -       -
:1.1188901                     2092685 lightdm         root
 :1.1188901    lightdm.service                  -       -
:1.1188916                     2092698 gnome-keyring-d x
:1.1188916    lightdm.service                  -       -
:1.1188922                     2092839 xfce4-panel     x
:1.1188922    lightdm.service                  -       -
:1.1188923                     2092889 xiccd           x
:1.1188923    lightdm.service                  -       -
:1.1188924                     2092890 agent           x
:1.1188924    lightdm.service                  -       -
:1.1188925                     2092922 gvfs-udisks2-vo x
:1.1188925    lightdm.service                  -       -
:1.1188929                     2092863 panel-15-pulsea x
:1.1188929    lightdm.service                  -       -
:1.1188932                     2092913 blueman-applet  x
:1.1188932    lightdm.service                  -       -
:1.1188933                     2093095 xdg-desktop-por x
:1.1188933    lightdm.service                  -       -
:1.1188934                     2093061 xdg-desktop-por x
:1.1188934    lightdm.service                  -       -
:1.1188935                     2093121 obexd           x
:1.1188935    lightdm.service                  -       -
:1.1192450                     2102378 chrome          x
:1.1192450    lightdm.service                  -       -
:1.1192451                     2102378 chrome          x
:1.1192451    lightdm.service                  -       -
:1.1192452                     2102378 chrome          x
:1.1192452    lightdm.service                  -       -
:1.12                             1177 colord          colord
 :1.12         colord.service                   -       -
:1.1249021                         967 prometheus-node prometheus
 :1.1249021    prometheus-node-exporter.service -       -
:1.1249022                         967 prometheus-node prometheus
 :1.1249022    prometheus-node-exporter.service -       -
:1.1249042                     2182253 busctl          root
 :1.1249042    lightdm.service                  -       -
:1.176773                       398845 fwupd           root
 :1.176773     fwupd.service                    -       -
:1.2                               971 rtkit-daemon    root            :1.2
         rtkit-daemon.service             -       -
:1.21                             2052 lightdm         root
 :1.21         lightdm.service                  -       -
:1.3                              1004 udisksd         root            :1.3
         udisks2.service                  -       -
:1.5                               945 avahi-daemon    avahi           :1.5
         avahi-daemon.service             -       -
:1.536049                      1194217 cupsd           root
 :1.536049     cups.service                     -       -
:1.536050                      1194224 cups-browsed    root
 :1.536050     cups-browsed.service             -       -
:1.536051                      1194224 cups-browsed    root
 :1.536051     cups-browsed.service             -       -
:1.6                              1003 systemd-logind  root            :1.6
         systemd-logind.service           -       -
:1.7                              1074 wpa_supplicant  root            :1.7
         wpa_supplicant.service           -       -
:1.803                            3095 systemd         x
:1.803        user at 1000.service                -       -
:1.804                            3118 gnome-keyring-d x
:1.804        user at 1000.service                -       -
:1.811                            3116 pulseaudio      x
:1.811        user at 1000.service                -       -
:1.829                            3352 agent           x
:1.829        session-3.scope                  3       -
:1.830                            3386 gvfs-udisks2-vo x
:1.830        user at 1000.service                -       -
:1.843                            3578 obexd           x
:1.843        user at 1000.service                -       -
:1.844                            3543 xdg-desktop-por x
:1.844        user at 1000.service                -       -
:1.847                            3723 upowerd         root
 :1.847        upower.service                   -       -
:1.9                              1069 polkitd         polkitd         :1.9
         polkit.service                   -       -
fi.w1.wpa_supplicant1             1074 wpa_supplicant  root            :1.7
         wpa_supplicant.service           -       -
org.blueman.Mechanism                - -               -
(activatable) -                                -       -
org.bluez                          947 bluetoothd      root            :1.0
         bluetooth.service                -       -
org.freedesktop.Avahi              945 avahi-daemon    avahi           :1.5
         avahi-daemon.service             -       -
org.freedesktop.ColorManager      1177 colord          colord
 :1.12         colord.service                   -       -
org.freedesktop.DBus                 1 systemd         root            -
          init.scope                       -       -
org.freedesktop.DisplayManager    2052 lightdm         root
 :1.21         lightdm.service                  -       -
org.freedesktop.GeoClue2             - -               -
(activatable) -                                -       -
org.freedesktop.PolicyKit1        1069 polkitd         polkitd         :1.9
         polkit.service                   -       -
org.freedesktop.RealtimeKit1       971 rtkit-daemon    root            :1.2
         rtkit-daemon.service             -       -
org.freedesktop.UDisks2           1004 udisksd         root            :1.3
         udisks2.service                  -       -
org.freedesktop.UPower            3723 upowerd         root
 :1.847        upower.service                   -       -
org.freedesktop.bolt               948 boltd           root            :1.1
         bolt.service                     -       -
org.freedesktop.fwupd           398845 fwupd           root
 :1.176773     fwupd.service                    -       -
org.freedesktop.hostname1            - -               -
(activatable) -                                -       -
org.freedesktop.locale1              - -               -
(activatable) -                                -       -
org.freedesktop.login1            1003 systemd-logind  root            :1.6
         systemd-logind.service           -       -
org.freedesktop.network1           943 systemd-network systemd-network
:1.10         systemd-networkd.service         -       -
org.freedesktop.systemd1             - -               -
(activatable) -                                -       -
org.freedesktop.timedate1            - -               -
(activatable) -                                -       -

x at x:~$ ps fax | grep systemd
      1 ?        Ss     2:07 /usr/lib/systemd/systemd --system
--deserialize=73
    598 ?        Ss    15:28 /usr/lib/systemd/systemd-journald
    613 ?        Ss     0:04 /usr/lib/systemd/systemd-udevd
    943 ?        Ss     0:05 /usr/lib/systemd/systemd-networkd
    949 ?        Ss    49:29 /usr/bin/dbus-daemon --system
--address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
   1003 ?        Ss     0:03 /usr/lib/systemd/systemd-logind
   3095 ?        Ss     0:01 /usr/lib/systemd/systemd --user
   3123 ?        Ss     0:08  \_ /usr/bin/dbus-daemon --session
--address=systemd: --nofork --nopidfile --systemd-activation --syslog-only



-- Package-specific info:

-- System Information:
Debian Release: trixie/sid
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.10.3-amd64 (SMP w/24 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8),
LANGUAGE=C.UTF-8:en_NO.utf8:en_US.utf8:en_GB.utf8:en:en.utf8
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages systemd depends on:
ii  libacl1            2.3.2-2
ii  libapparmor1       3.1.7-1+b1
ii  libblkid1          2.40.2-7
ii  libc6              2.40-2
ii  libcap2            1:2.66-5
ii  libmount1          2.40.2-7
ii  libpam0g           1.5.3-7
ii  libseccomp2        2.5.5-1+b1
ii  libselinux1        3.7-3
ii  libssl3t64         3.3.1-7
ii  libsystemd-shared  256.5-2
ii  libsystemd0        256.5-2
ii  mount              2.40.2-7

Versions of packages systemd recommends:
ii  dbus [default-dbus-system-bus]  1.14.10-4+b1
ii  libzstd1                        1.5.6+dfsg-1
ii  linux-sysctl-defaults           4.10.1
ii  ntpsec [time-daemon]            1.2.3+dfsg1-3
ii  systemd-cryptsetup              256.5-2

Versions of packages systemd suggests:
ii  libcryptsetup12                                 2:2.7.4-1
ii  libgcrypt20                                     1.11.0-6
ii  libidn2-0                                       2.3.7-2
ii  liblz4-1                                        1.9.4-3
ii  liblzma5                                        5.6.2-2
pn  libtss2-rc0t64                                  <none>
ii  libtss2-tcti-device0t64 [libtss2-tcti-device0]  4.1.3-1
ii  polkitd                                         125-2
pn  systemd-boot                                    <none>
pn  systemd-container                               <none>
pn  systemd-homed                                   <none>
pn  systemd-repart                                  <none>
pn  systemd-resolved                                <none>
pn  systemd-userdbd                                 <none>

Versions of packages systemd is related to:
ii  dbus-user-session  1.14.10-4+b1
pn  dracut             <none>
ii  initramfs-tools    0.145
iu  libnss-systemd     256.5-2
iu  libpam-systemd     256.5-2
ii  udev               256.5-1

-- no debconf information
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20240903/e831596c/attachment-0001.htm>


More information about the Pkg-systemd-maintainers mailing list