Bug#968087: systemd-tmpfiles fails on fchownat() systcall for /var/log/journal with -ENOENT on installation

Vasyl Gello vasek.gello at gmail.com
Sat Aug 8 11:48:22 BST 2020

Package: systemd
Version: 246-2

Dear colleagues,

I am observing strange issue with installation / upgrade of systemd in
pbuilder chroot. The environment I do use is somewhat not standard
(it is an nsjail chroot for portable Debian development with pbuilder
nested chroot working inside the user namespace) but all versions of
systemd before 245-1 were installed just fine.

As an author and  maintainer of the aforementioned tool, I tracked
down the issue to the following command:

    systemd-tmpfiles --create --prefix /var/log/journal

in the systemd.postinst script. Appending this particular line
as follows:

    systemd-tmpfiles --create --prefix /var/log/journal || true

solves the issue for me.

Attached is the log reproducing the issue.


-- Package-specific info:

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.15.0-112-generic (SMP w/6 CPU threads)
Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: unable to detect

Versions of packages systemd depends on:
ii  adduser                          3.118
ii  libacl1                          2.2.53-8
ii  libapparmor1                     2.13.4-3
ii  libaudit1                        1:2.8.5-3+b1
ii  libblkid1                        2.36-2
ii  libc6                            2.31-3
ii  libcap2                          1:2.42-2
ii  libcrypt1                        1:4.4.16-1
ii  libcryptsetup12                  2:2.3.3-1+b1
ii  libgcrypt20                      1.8.6-2
ii  libgnutls30                      3.6.14-2+b1
ii  libgpg-error0                    1.38-2
ii  libidn2-0                        2.3.0-1
ii  libip4tc2                        1.8.5-2
ii  libkmod2                         27+20200310-2
ii  liblz4-1                         1.9.2-2
ii  liblzma5                         5.2.4-1+b1
ii  libmount1                        2.36-2
ii  libpam0g                         1.3.1-5
ii  libpcre2-8-0                     10.34-7
ii  libseccomp2                      2.4.3-1+b1
ii  libselinux1                      3.1-2
ii  libsystemd0                      246-2
ii  libzstd1                         1.4.5+dfsg-4
ii  mount                            2.36-2
ii  systemd-timesyncd [time-daemon]  246-2
ii  util-linux                       2.36-2

Versions of packages systemd recommends:
ii  dbus  1.12.20-1

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

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

-- no debconf information
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20200808/b612a02e/attachment-0001.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: error.log
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20200808/b612a02e/attachment-0001.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 854 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20200808/b612a02e/attachment-0001.sig>

More information about the Pkg-systemd-maintainers mailing list