Bug#950489: systemd: systemctl cat fails (assertion error) on inexistent templates

Nicolas Braud-Santoni nicoo at debian.org
Sun Feb 2 14:02:58 GMT 2020


Package: systemd
Version: 244.1-2
Severity: normal
Tags: upstream
Control: found -1 244.1-1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Dear maintainer,

systemctl cat currently fails with the following assertion error, on inexistent
unit templates:

  $ systemctl cat ssh at .service
  Assertion 'name' failed at src/shared/dropin.c:143, function unit_file_find_dirs(). Aborting.
  [1]    670974 abort      systemctl cat ssh at .service


Existant templates and inexistent non-templated units seem unaffected:

  $ systemctl cat ssh.service    
  No files found for ssh.service.
  
  $ systemctl cat hostapd at .service
  # /lib/systemd/system/hostapd at .service
  [Unit]
  Description=Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator (%I)
  After=network.target
  BindsTo=sys-subsystem-net-devices-%i.device
  
  [Service]
  Type=forking
  PIDFile=/run/hostapd.%i.pid
  Restart=on-failure
  RestartSec=2
  EnvironmentFile=-/etc/default/hostapd
  ExecStart=/usr/sbin/hostapd -B -P /run/hostapd.%i.pid $DAEMON_OPTS /etc/hostapd/%i.conf
  
  [Install]
  WantedBy=multi-user.target sys-subsystem-net-devices-%i.device


Best,

  nicoo

- -- Package-specific info:

- -- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.4.0-3-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages systemd depends on:
ii  adduser          3.118
ii  libacl1          2.2.53-5
ii  libapparmor1     2.13.3-7
ii  libaudit1        1:2.8.5-2+b1
ii  libblkid1        2.34-0.1
ii  libc6            2.29-9
ii  libcap2          1:2.27-1
ii  libcryptsetup12  2:2.2.2-2
ii  libgcrypt20      1.8.5-3
ii  libgnutls30      3.6.11.1-2
ii  libgpg-error0    1.36-7
ii  libidn2-0        2.2.0-2
ii  libip4tc2        1.8.3-2
ii  libkmod2         26+20191223-1
ii  liblz4-1         1.9.2-2
ii  liblzma5         5.2.4-1+b1
ii  libmount1        2.34-0.1
ii  libpam0g         1.3.1-5
ii  libpcre2-8-0     10.34-7
ii  libseccomp2      2.4.2-2
ii  libselinux1      3.0-1
ii  libsystemd0      244.1-2
ii  mount            2.34-0.1
ii  util-linux       2.34-0.1

Versions of packages systemd recommends:
ii  dbus  1.12.16-2

Versions of packages systemd suggests:
ii  policykit-1        0.105-26
pn  systemd-container  <none>

Versions of packages systemd is related to:
pn  dracut           <none>
ii  initramfs-tools  0.136
ii  libnss-systemd   244.1-2
ii  libpam-systemd   244.1-2
ii  udev             244.1-1

- -- Configuration Files:
/etc/systemd/journald.conf changed:
[Journal]
Storage=persistent
MaxRetentionSec=1 month
ForwardToSyslog=no
ForwardToConsole=yes
TTYPath=/dev/tty7


- -- no debconf information

-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEEU7EqA8ZVHYoLJhPE5vmO4pLV7MsFAl421okRHG5pY29vQGRl
Ymlhbi5vcmcACgkQ5vmO4pLV7MtCRBAAoFjqOvo1LhcjFsmNN4MgXoLdu55b9/n7
abK3/jq/UIroWsdu9xZ1q6tL1xtYUIKGSInGa6NLuyUpHB4E9rmWNynJI4mXbeP2
6UcFU8giuxtwKPmItZIO5bdkQeEg55JpYb1DaVT9fpEXcN9JsdbbUrA93Q9mlAnq
UvGZEnXsfqRKvu6GL0YWouxurHfRbntMf8MAXznoQumGSjIYal8Yp17ZNAZqTVET
6fKFT36Zo+lK61KIU4myxBtBIlhKf5CjgwynmsqAuO+2k0iYZYi+VHZM2ojEm9B5
lyKJRfhydyrrP34F1xcYDpfHw+DKs+/szQkA/KM08JxjkfMglPourkBl0Tzzol9S
QxKqRYdlkrlyiYn42XiqR1/D9KU4kdS1u2PhKFeulx651Llb2AmckS9PsNVM6/DN
i0hIxO1Qrwg9/A9ysLr1s1YWFVccmljcNFZDvH6ZBODtFFeF80UKdobe3Imvd+qh
Oy0Mar7ELSAvh4ZGbXG0hOPPg9Y+nPxC4iuu02Ck4Jd8xi+yzuTJwX1/ZAXRq4Fa
2Q3gJUWTwgbt2FH5HQ8VG9cTmjFiOVXt4wbk01UT/NwqoF9ZWd2zLrZuN/0e3iQa
faR4uekk0jzslhQRBeu7M+UrhsDtliPrM62T4NPIdRxu9OEFuImIMMEGiBsUQlnI
zq99tiyONbM=
=sNFG
-----END PGP SIGNATURE-----



More information about the Pkg-systemd-maintainers mailing list