You are not logged in.

#1 2022-01-06 12:25:12

j1simon
Member
From: Denmark
Registered: 2016-01-28
Posts: 189

[SOLVED]Cannot set file attributes for '...', maybe due to incompab...

Today the upgrade of "systemd", "systemd-libs" and "systemd-sysvcompat" (250.1-1) shows me these errors:

....
( 6/14) Creating temporary files...
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/6f58ecce34924bdcbe0fa6e4ce667fee', maybe due to incompatibility in specified attributes, previous=0x00001000, current=0x00001000, expected=0x00801000, ignoring.
Cannot set file attributes for '/var/log/journal/remote', maybe due to incompatibility in specified attributes, previous=0x10001000, current=0x10001000, expected=0x10801000, ignoring.
Cannot set file attributes for '/var/lib/mysql', maybe due to incompatibility in specified attributes, previous=0x10001000, current=0x10001000, expected=0x10801000, ignoring.
( 7/14) Reloading device manager configuration...
....

Should I check something or can I ignore it?

Last edited by j1simon (2022-01-06 16:42:30)

Offline

#2 2022-01-06 12:31:23

j1simon
Member
From: Denmark
Registered: 2016-01-28
Posts: 189

Re: [SOLVED]Cannot set file attributes for '...', maybe due to incompab...

The errors are shown at boot too:

ene 06 13:26:54 juan-PC systemd[1]: Starting Create Volatile Files and Directories...
ene 06 13:26:54 juan-PC systemd-tmpfiles[1143]: Cannot set file attributes for '/var/log/journal', maybe due to incompatibility in specified attributes, previous=0x10001000, current=0x10001000, expected=0x10801000, ignoring.
ene 06 13:26:54 juan-PC systemd-tmpfiles[1143]: Cannot set file attributes for '/var/log/journal/6f58ecce34924bdcbe0fa6e4ce667fee', maybe due to incompatibility in specified attributes, previous=0x00001000, current=0x00001000, expected=0x00801000, ignoring.
ene 06 13:26:54 juan-PC systemd-tmpfiles[1143]: Cannot set file attributes for '/var/log/journal/remote', maybe due to incompatibility in specified attributes, previous=0x10001000, current=0x10001000, expected=0x10801000, ignoring.
ene 06 13:26:54 juan-PC systemd-tmpfiles[1143]: Cannot set file attributes for '/var/lib/mysql', maybe due to incompatibility in specified attributes, previous=0x10001000, current=0x10001000, expected=0x10801000, ignoring.
ene 06 13:26:54 juan-PC systemd[1]: Finished Create Volatile Files and Directories.

Offline

#3 2022-01-06 16:15:34

seth
Member
Registered: 2012-09-03
Posts: 59,737

Re: [SOLVED]Cannot set file attributes for '...', maybe due to incompab...

0x00800000 is FS_NOCOW_FL - what is not a thing on directories.
Edit except for apparently btrfs - what also seems the only supported FS here. Otherwise you get an error.

Offender is /usr/lib/tmpfiles.d/journal-nocow.conf

Last edited by seth (2022-01-06 16:19:44)

Offline

#4 2022-01-06 16:23:36

j1simon
Member
From: Denmark
Registered: 2016-01-28
Posts: 189

Re: [SOLVED]Cannot set file attributes for '...', maybe due to incompab...

My root filesystem is F2FS (it's a NVMe). So, is it safe delete this file? Or is it better ignore it?

Offline

#5 2022-01-06 16:33:23

seth
Member
Registered: 2012-09-03
Posts: 59,737

Re: [SOLVED]Cannot set file attributes for '...', maybe due to incompab...

You could shadow it in /etc/tmpfiles.d (copy and alter it)

Offline

#6 2022-01-06 16:41:53

j1simon
Member
From: Denmark
Registered: 2016-01-28
Posts: 189

Re: [SOLVED]Cannot set file attributes for '...', maybe due to incompab...

seth wrote:

You could shadow it in /etc/tmpfiles.d (copy and alter it)

Thanks, I also had to copy/change "/usr/lib/tmpfiles.d/mariadb.conf".

Offline

#7 2022-01-06 22:09:39

loqs
Member
Registered: 2014-03-06
Posts: 18,123

Re: [SOLVED]Cannot set file attributes for '...', maybe due to incompab...

I thought this had already been addressed in 250.1 by https://github.com/systemd/systemd-stab … 79ecb6d657

Offline

#8 2022-01-06 22:23:10

seth
Member
Registered: 2012-09-03
Posts: 59,737

Re: [SOLVED]Cannot set file attributes for '...', maybe due to incompab...

Offline

#9 2022-01-06 22:35:16

loqs
Member
Registered: 2014-03-06
Posts: 18,123

Re: [SOLVED]Cannot set file attributes for '...', maybe due to incompab...

That would require debug logging to be enabled?

Offline

#10 2022-01-06 22:43:08

seth
Member
Registered: 2012-09-03
Posts: 59,737

Re: [SOLVED]Cannot set file attributes for '...', maybe due to incompab...

On a second look, that line seems also to log the actual errno [edit: and uses different wording], so it's probably not the case and "r == -ENOANO" is hit.
Might be F2FS not returning the proper error and seth hits the Sarcophagus ;-)

Last edited by seth (2022-01-06 22:45:39)

Offline

#11 2022-02-03 04:43:09

rejedai
Member
Registered: 2021-08-27
Posts: 26

Re: [SOLVED]Cannot set file attributes for '...', maybe due to incompab...

Hi, can you explain in more detail what needs to be done?

Offline

#12 2022-02-03 07:24:43

seth
Member
Registered: 2012-09-03
Posts: 59,737

Re: [SOLVED]Cannot set file attributes for '...', maybe due to incompab...

The error itself is harmless; systemd tries to set an attribute on a filesystem that doesn't support it.

Offline

#13 2022-02-17 06:55:31

khem
Member
Registered: 2015-03-05
Posts: 3

Re: [SOLVED]Cannot set file attributes for '...', maybe due to incompab...

I am on f2fs filesystem as well and 250.3 of systemd, the issue still exists, I see following output

% systemd-tmpfiles --create --prefix /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 failed: Operation not permitted
Failed to re-open '/var/log/journal': Operation not permitted
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/5e3488842ead463ea6a910cd8e28438c failed: Operation not permitted
Failed to re-open '/var/log/journal/5e3488842ead463ea6a910cd8e28438c': Operation not permitted
Failed to re-open '/var/log/journal/remote': Operation not permitted
Setting access ACL "u::rw-,g::r-x,g:wheel:r--,g:adm:r--,m::r--,o::---" on /var/log/journal/5e3488842ead463ea6a910cd8e28438c/system.journal failed: Operation not permitted

Offline

#14 2022-02-19 20:04:40

loqs
Member
Registered: 2014-03-06
Posts: 18,123

Re: [SOLVED]Cannot set file attributes for '...', maybe due to incompab...

khem wrote:

I am on f2fs filesystem as well and 250.3 of systemd, the issue still exists

Have you reported it to the systemd developers?  https://github.com/systemd/systemd/issues

Offline

#15 2023-08-29 18:23:53

khem
Member
Registered: 2015-03-05
Posts: 3

Re: [SOLVED]Cannot set file attributes for '...', maybe due to incompab...

loqs wrote:
khem wrote:

I am on f2fs filesystem as well and 250.3 of systemd, the issue still exists

Have you reported it to the systemd developers?  https://github.com/systemd/systemd/issues

For F2FS this issue from systemd seems to be related. - https://github.com/systemd/systemd/issues/26318
and it is a problem in filesystem rather than systemd

Offline

#16 2023-08-29 19:35:04

loqs
Member
Registered: 2014-03-06
Posts: 18,123

Re: [SOLVED]Cannot set file attributes for '...', maybe due to incompab...

khem wrote:

For F2FS this issue from systemd seems to be related. - https://github.com/systemd/systemd/issues/26318
and it is a problem in filesystem rather than systemd

f2fs's behavior is intentional https://lore.kernel.org/linux-f2fs-deve … gmail.com/ please raise with them that systemd expects an error or with systemd that it is intentional.
Edit:
See also https://git.kernel.org/pub/scm/linux/ke … v6.5#n1000 and https://github.com/systemd/systemd/comm … a6198a24a2

Last edited by loqs (2023-08-29 21:28:04)

Offline

Board footer

Powered by FluxBB