Repository navigation
Closed
Labels
Description
systemd version the issue has been seen with
251.10
Used distribution
NixOS 22.11.2275.8e8240194ed
Linux kernel version used
5.15.91
CPU architectures issue was seen on
x86_64
Component
systemd-tmpfiles
Expected behaviour you didn't see
No warnings during update or builds
Unexpected behaviour you saw
I see the following messages everytime I ran an update or builds:
Cannot set file attributes for '/var/log/journal', maybe due to incompatibility in specified attributes, previous=0x10001000, current=0x10001000, expected=0x10801000, ignoring.
Cannot set file attributes for '/var/log/journal/82bcb63d7a9547519d953937afe112c5', maybe due to incompatibility in specified attributes, previous=0x10001000, current=0x10001000, expected=0x10801000, ignoring.
Steps to reproduce the problem
Install with F2FS as root, do an build, see it shows that message in setting up tmpfiles stage
Additional program output to the terminal or log subsystem illustrating the issue
# SYSTEMD_LOG_LEVEL=debug systemd-tmpfiles --create --prefix /var/log/journal
Looking for configuration files in (higher priority first):
/etc/tmpfiles.d
/run/tmpfiles.d
/usr/local/lib/tmpfiles.d
/usr/lib/tmpfiles.d
/nix/store/3g57m8gjkqajvwcqkw7dxmd9d7vnkcv9-systemd-251.10/lib/tmpfiles.d
Reading config file "/etc/tmpfiles.d/00-nixos.conf"…
Entry "/run/keys" does not match any include prefix, skipping.
Entry "/run/keys" does not match any include prefix, skipping.
Entry "/nix/var" does not match any include prefix, skipping.
Entry "/nix/var/nix/gcroots/booted-system" does not match any include prefix, skipping.
Entry "/run/lock" does not match any include prefix, skipping.
Entry "/var/db" does not match any include prefix, skipping.
Entry "/etc/mtab" does not match any include prefix, skipping.
Entry "/var/lock" does not match any include prefix, skipping.
/etc/tmpfiles.d/00-nixos.conf:12: Ignoring entry R! "/etc/group.lock" because --boot is not specified.
/etc/tmpfiles.d/00-nixos.conf:13: Ignoring entry R! "/etc/passwd.lock" because --boot is not specified.
/etc/tmpfiles.d/00-nixos.conf:14: Ignoring entry R! "/etc/shadow.lock" because --boot is not specified.
/etc/tmpfiles.d/00-nixos.conf:15: Ignoring entry R! "/etc/mtab*" because --boot is not specified.
/etc/tmpfiles.d/00-nixos.conf:16: Ignoring entry R! "/nix/var/nix/gcroots/tmp" because --boot is not specified.
/etc/tmpfiles.d/00-nixos.conf:17: Ignoring entry R! "/nix/var/nix/temproots" because --boot is not specified.
Entry "/run/gdm/.config" does not match any include prefix, skipping.
Entry "/run/gdm/.config/gnome-initial-setup-done" does not match any include prefix, skipping.
Entry "/etc/NetworkManager/system-connections" does not match any include prefix, skipping.
Entry "/etc/ipsec.d" does not match any include prefix, skipping.
Entry "/var/lib/NetworkManager-fortisslvpn" does not match any include prefix, skipping.
Entry "/var/lib/misc" does not match any include prefix, skipping.
Entry "/run/avahi-daemon" does not match any include prefix, skipping.
Entry "/nix/var/nix/daemon-socket" does not match any include prefix, skipping.
Entry "/var/lib/udisks2" does not match any include prefix, skipping.
Entry "/var/lib/polkit-1" does not match any include prefix, skipping.
Entry "/var/lib/PolicyKit" does not match any include prefix, skipping.
Entry "/run/opengl-driver" does not match any include prefix, skipping.
Entry "/run/opengl-driver-32" does not match any include prefix, skipping.
Reading config file "/etc/tmpfiles.d/colord.conf"…
Entry "/var/lib/colord" does not match any include prefix, skipping.
Entry "/var/lib/colord/icc" does not match any include prefix, skipping.
Entry "/var/lib/colord" does not match any include prefix, skipping.
Reading config file "/etc/tmpfiles.d/home.conf"…
Entry "/home" does not match any include prefix, skipping.
Entry "/srv" does not match any include prefix, skipping.
Reading config file "/etc/tmpfiles.d/journal-nocow.conf"…
Entry "/var/log/journal" matches include prefix "/var/log/journal".
Entry "/var/log/journal/82bcb63d7a9547519d953937afe112c5" matches include prefix "/var/log/journal".
Entry "/var/log/journal/remote" matches include prefix "/var/log/journal".
Reading config file "/etc/tmpfiles.d/lvm2.conf"…
Entry "/run/lock/lvm" does not match any include prefix, skipping.
Entry "/run/lvm" does not match any include prefix, skipping.
Reading config file "/etc/tmpfiles.d/portables.conf"…
Entry "/var/lib/portables" does not match any include prefix, skipping.
Reading config file "/etc/tmpfiles.d/static-nodes-permissions.conf"…
Entry "/dev/snd/seq" does not match any include prefix, skipping.
Entry "/dev/snd/timer" does not match any include prefix, skipping.
Entry "/dev/loop-control" does not match any include prefix, skipping.
Entry "/dev/net/tun" does not match any include prefix, skipping.
Entry "/dev/fuse" does not match any include prefix, skipping.
Entry "/dev/kvm" does not match any include prefix, skipping.
Entry "/dev/vhost-net" does not match any include prefix, skipping.
Entry "/dev/vhost-vsock" does not match any include prefix, skipping.
Reading config file "/run/tmpfiles.d/static-nodes.conf"…
/run/tmpfiles.d/static-nodes.conf:1: Ignoring entry c! "/dev/autofs" because --boot is not specified.
/run/tmpfiles.d/static-nodes.conf:2: Ignoring entry c! "/dev/fuse" because --boot is not specified.
/run/tmpfiles.d/static-nodes.conf:3: Ignoring entry c! "/dev/cuse" because --boot is not specified.
/run/tmpfiles.d/static-nodes.conf:4: Ignoring entry c! "/dev/btrfs-control" because --boot is not specified.
/run/tmpfiles.d/static-nodes.conf:5: Ignoring entry c! "/dev/nvram" because --boot is not specified.
/run/tmpfiles.d/static-nodes.conf:6: Ignoring entry c! "/dev/loop-control" because --boot is not specified.
Entry "/dev/net" does not match any include prefix, skipping.
/run/tmpfiles.d/static-nodes.conf:8: Ignoring entry c! "/dev/net/tun" because --boot is not specified.
/run/tmpfiles.d/static-nodes.conf:9: Ignoring entry c! "/dev/ppp" because --boot is not specified.
/run/tmpfiles.d/static-nodes.conf:10: Ignoring entry c! "/dev/uinput" because --boot is not specified.
Entry "/dev/mapper" does not match any include prefix, skipping.
/run/tmpfiles.d/static-nodes.conf:12: Ignoring entry c! "/dev/mapper/control" because --boot is not specified.
Entry "/dev/vfio" does not match any include prefix, skipping.
/run/tmpfiles.d/static-nodes.conf:14: Ignoring entry c! "/dev/vfio/vfio" because --boot is not specified.
/run/tmpfiles.d/static-nodes.conf:15: Ignoring entry c! "/dev/userio" because --boot is not specified.
/run/tmpfiles.d/static-nodes.conf:16: Ignoring entry c! "/dev/vhci" because --boot is not specified.
/run/tmpfiles.d/static-nodes.conf:17: Ignoring entry c! "/dev/uhid" because --boot is not specified.
/run/tmpfiles.d/static-nodes.conf:18: Ignoring entry c! "/dev/vhost-net" because --boot is not specified.
/run/tmpfiles.d/static-nodes.conf:19: Ignoring entry c! "/dev/vhost-vsock" because --boot is not specified.
Entry "/dev/snd" does not match any include prefix, skipping.
/run/tmpfiles.d/static-nodes.conf:21: Ignoring entry c! "/dev/snd/timer" because --boot is not specified.
Entry "/dev/snd" does not match any include prefix, skipping.
/run/tmpfiles.d/static-nodes.conf:23: Ignoring entry c! "/dev/snd/seq" because --boot is not specified.
/run/tmpfiles.d/static-nodes.conf:24: Ignoring entry c! "/dev/rfkill" because --boot is not specified.
Reading config file "/etc/tmpfiles.d/systemd-nologin.conf"…
/etc/tmpfiles.d/systemd-nologin.conf:11: Ignoring entry F! "/run/nologin" because --boot is not specified.
Reading config file "/etc/tmpfiles.d/systemd-nspawn.conf"…
Entry "/var/lib/machines" does not match any include prefix, skipping.
/etc/tmpfiles.d/systemd-nspawn.conf:22: Ignoring entry R! "/var/lib/machines/.#*" because --boot is not specified.
/etc/tmpfiles.d/systemd-nspawn.conf:23: Ignoring entry R! "/.#machine.*" because --boot is not specified.
Reading config file "/etc/tmpfiles.d/systemd-tmp.conf"…
Entry "/tmp/systemd-private-0db3a2ccad2445bd97fb82a7f50aeb52-*" does not match any include prefix, skipping.
Entry "/tmp/systemd-private-0db3a2ccad2445bd97fb82a7f50aeb52-*/tmp" does not match any include prefix, skipping.
Entry "/var/tmp/systemd-private-0db3a2ccad2445bd97fb82a7f50aeb52-*" does not match any include prefix, skipping.
Entry "/var/tmp/systemd-private-0db3a2ccad2445bd97fb82a7f50aeb52-*/tmp" does not match any include prefix, skipping.
/etc/tmpfiles.d/systemd-tmp.conf:17: Ignoring entry R! "/tmp/systemd-private-*" because --boot is not specified.
/etc/tmpfiles.d/systemd-tmp.conf:18: Ignoring entry R! "/var/tmp/systemd-private-*" because --boot is not specified.
Entry "/var/lib/systemd/coredump/.#core*.0db3a2ccad2445bd97fb82a7f50aeb52*" does not match any include prefix, skipping.
/etc/tmpfiles.d/systemd-tmp.conf:23: Ignoring entry r! "/var/lib/systemd/coredump/.#*" because --boot is not specified.
Reading config file "/etc/tmpfiles.d/systemd.conf"…
Entry "/run/user" does not match any include prefix, skipping.
/etc/tmpfiles.d/systemd.conf:11: Ignoring entry F! "/run/utmp" because --boot is not specified.
Entry "/run/systemd/ask-password" does not match any include prefix, skipping.
Entry "/run/systemd/seats" does not match any include prefix, skipping.
Entry "/run/systemd/sessions" does not match any include prefix, skipping.
Entry "/run/systemd/users" does not match any include prefix, skipping.
Entry "/run/systemd/machines" does not match any include prefix, skipping.
Entry "/run/systemd/shutdown" does not match any include prefix, skipping.
Entry "/run/log" does not match any include prefix, skipping.
Entry "/run/log/journal" does not match any include prefix, skipping.
Entry "/run/log/journal/82bcb63d7a9547519d953937afe112c5" does not match any include prefix, skipping.
Entry "/run/log/journal" does not match any include prefix, skipping.
Entry "/run/log/journal/82bcb63d7a9547519d953937afe112c5" does not match any include prefix, skipping.
Entry "/run/log/journal/82bcb63d7a9547519d953937afe112c5/*.journal*" does not match any include prefix, skipping.
Entry "/var/log/journal" matches include prefix "/var/log/journal".
Entry "/var/log/journal/82bcb63d7a9547519d953937afe112c5" matches include prefix "/var/log/journal".
Entry "/var/log/journal/82bcb63d7a9547519d953937afe112c5/system.journal" matches include prefix "/var/log/journal".
Entry "/var/log/journal" matches include prefix "/var/log/journal".
Entry "/var/log/journal/82bcb63d7a9547519d953937afe112c5" matches include prefix "/var/log/journal".
Entry "/var/log/journal/82bcb63d7a9547519d953937afe112c5/system.journal" matches include prefix "/var/log/journal".
Entry "/var/lib/systemd" does not match any include prefix, skipping.
Entry "/var/lib/systemd/coredump" does not match any include prefix, skipping.
Entry "/var/lib/private" does not match any include prefix, skipping.
Entry "/var/log/private" does not match any include prefix, skipping.
Entry "/var/cache/private" does not match any include prefix, skipping.
Reading config file "/etc/tmpfiles.d/tmp.conf"…
Entry "/tmp" does not match any include prefix, skipping.
Entry "/var/tmp" does not match any include prefix, skipping.
Reading config file "/etc/tmpfiles.d/var.conf"…
Entry "/var" does not match any include prefix, skipping.
Entry "/var/run" does not match any include prefix, skipping.
Entry "/var/log" does not match any include prefix, skipping.
Entry "/var/log/wtmp" does not match any include prefix, skipping.
Entry "/var/log/btmp" does not match any include prefix, skipping.
Entry "/var/log/lastlog" does not match any include prefix, skipping.
Entry "/var/cache" does not match any include prefix, skipping.
Entry "/var/lib" does not match any include prefix, skipping.
Entry "/var/spool" does not match any include prefix, skipping.
Reading config file "/etc/tmpfiles.d/x11.conf"…
/etc/tmpfiles.d/x11.conf:12: Ignoring entry D! "/tmp/.X11-unix" because --boot is not specified.
/etc/tmpfiles.d/x11.conf:13: Ignoring entry D! "/tmp/.ICE-unix" because --boot is not specified.
/etc/tmpfiles.d/x11.conf:14: Ignoring entry D! "/tmp/.XIM-unix" because --boot is not specified.
/etc/tmpfiles.d/x11.conf:15: Ignoring entry D! "/tmp/.font-unix" because --boot is not specified.
/etc/tmpfiles.d/x11.conf:18: Ignoring entry r! "/tmp/.X[0-9]*-lock" because --boot is not specified.
Running create action for entry a /var/log/journal
Setting access ACL u::rwx,g::r-x,g:wheel:r-x,g:adm:r-x,m::r-x,o::r-x on /var/log/journal.
Setting default ACL u::rwx,g::r-x,g:wheel:r-x,g:adm:r-x,m::r-x,o::r-x on /var/log/journal.
Running create action for entry h /var/log/journal
Cannot set file attributes for '/var/log/journal', maybe due to incompatibility in specified attributes, previous=0x10001000, current=0x10001000, expected=0x10801000, ignoring.
Running create action for entry z /var/log/journal
"/var/log/journal" matches mode 2755 already.
Running create action for entry a /var/log/journal/82bcb63d7a9547519d953937afe112c5
Setting access ACL u::rwx,g::r-x,g:wheel:r-x,g:adm:r-x,m::r-x,o::r-x on /var/log/journal/82bcb63d7a9547519d953937afe112c5.
Setting default ACL u::rwx,g::r-x,g:wheel:r-x,g:adm:r-x,m::r-x,o::r-x on /var/log/journal/82bcb63d7a9547519d953937afe112c5.
Running create action for entry h /var/log/journal/82bcb63d7a9547519d953937afe112c5
Cannot set file attributes for '/var/log/journal/82bcb63d7a9547519d953937afe112c5', maybe due to incompatibility in specified attributes, previous=0x10001000, current=0x10001000, expected=0x10801000, ignoring.
Running create action for entry z /var/log/journal/82bcb63d7a9547519d953937afe112c5
"/var/log/journal/82bcb63d7a9547519d953937afe112c5" matches mode 2755 already.
Running create action for entry h /var/log/journal/remote
Running create action for entry a /var/log/journal/82bcb63d7a9547519d953937afe112c5/system.journal
Setting access ACL u::rw-,g::r--,g:wheel:r--,g:adm:r--,m::r--,o::--- on /var/log/journal/82bcb63d7a9547519d953937afe112c5/system.journal.
Running create action for entry z /var/log/journal/82bcb63d7a9547519d953937afe112c5/system.journal
"/var/log/journal/82bcb63d7a9547519d953937afe112c5/system.journal" matches mode 640 already.
Activity
dtardon commentedon Feb 6, 2023
Apparently f2fs driver silently ignores
FS_NOCOW_FL. See also https://bugzilla.redhat.com/show_bug.cgi?id=2162899 .poettering commentedon Feb 6, 2023
Yeah, this is a bug in the file system. They should not just eat up requests to set flags, but return an error. Please ping the f2fs maintainers.
loqs commentedon Sep 1, 2023
@poettering this has been discussed upstream previously 1 where returning an error when an attribute is gettable but not settable was rejected. See also 2. systemd already seems to have some code to handle this 5a98019
@ebiggers I hope the above is correct.