Systemd 250-1: Cannot set file attributes for /var/log/journal/remote

pamac update on unstable branch:

Running post-transaction hooks...
Creating system user accounts...                                                                                                                                     [1/17]
Updating journal message catalog...                                                                                                                                  [2/17]
Reloading system manager configuration...                                                                                                                            [3/17]
Updating udev hardware database...                                                                                                                                   [4/17]
Applying kernel sysctl settings...                                                                                                                                   [5/17]
Creating temporary files...                                                                                                                                          [6/17]
Cannot set file attributes for '/var/log/journal', maybe due to incompatibility in specified attributes, previous=0x00080000, current=0x00080000, expected=0x00880000, ignoring.
Cannot set file attributes for '/var/log/journal/df4430008b69aab0a564820d7096eb4a', maybe due to incompatibility in specified attributes, previous=0x00081000, current=0x00081000, expected=0x00881000, ignoring.
Cannot set file attributes for '/var/log/journal/remote', maybe due to incompatibility in specified attributes, previous=0x00080000, current=0x00080000, expected=0x00880000, ignoring.
Reloading device manager configuration...                                                                                                                            [7/17]
Arming ConditionNeedsUpdate...                                                                                                                                       [8/17]
Updating linux initcpios...

I noticed that as well. The message is coming from systemd-tmpfiles when 30-systemd-tmpfiles.hook is run.

Running the following…

sudo SYSTEMD_LOG_LEVEL=debug LC_ALL=C systemd-tmpfiles --create

…will provide more detailed output:

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
Unable to set file attribute 0x800000 on n/a, ignoring: Operation not supported
Cannot set file attributes for '/var/log/journal', maybe due to incompatibility in specified attributes, previous=0x00080000, current=0x00080000, expected=0x00880000, 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/7a2551911753462a8e997be0eab9c8f6

This is kinda “normal”. Thing is systemd now tries to make use of btrfs features for its journal, and when it encounters something else like ext4 it throws these messages. I too think this shouldn’t be shown and even executed for file systems other than btrfs in the first place, but maybe systemd devs just thought it to be a minor issue to be fixed some day in the future or something…

3 Likes

Should be fixed with chrattr-util: return EOPNOTSUPP from chrattr_full if no other failure was observed by bluca · Pull Request #21906 · systemd/systemd · GitHub.

This is fixed in 250-2

Thanks.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.