You are not logged in.

#1 2015-06-14 00:12:40

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

systemd-tmpfiles-setup failed [Solved]

My system status is degraded because systemd-tmpfiles-setup fails to load

This problem seems similar to the one in this old post, but it did not help me. However I share what might was possibly useful at the time.

systemctl output:

● systemd-tmpfiles-setup.service - Create Volatile Files and Directories
   Loaded: loaded (/usr/lib/systemd/system/systemd-tmpfiles-setup.service; static; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sun 2015-06-14 01:47:16 CEST; 16min ago
     Docs: man:tmpfiles.d(5)
           man:systemd-tmpfiles(8)
  Process: 4545 ExecStart=/usr/bin/systemd-tmpfiles --create --remove --boot --exclude-prefix=/dev (code=exited, status=1/FAILURE)
 Main PID: 4545 (code=exited, status=1/FAILURE)

Jun 14 01:47:16 slyrogue systemd[1]: Starting Create Volatile Files and Directories...
Jun 14 01:47:16 slyrogue systemd[1]: systemd-tmpfiles-setup.service: main process exited, code=exited, status=1/FAILURE
Jun 14 01:47:16 slyrogue systemd[1]: Failed to start Create Volatile Files and Directories.
Jun 14 01:47:16 slyrogue systemd[1]: Unit systemd-tmpfiles-setup.service entered failed state.
Jun 14 01:47:16 slyrogue systemd[1]: systemd-tmpfiles-setup.service failed.

/etc/tmpfiles.d/ is empty and fstab has no tmp lines.

The journal is not really useful...

# journalctl -b | grep tmpfi
Jun 14 01:47:13 slyrogue kernel: random: systemd-tmpfile urandom read with 4 bits of entropy available
Jun 14 01:47:16 slyrogue systemd[1]: systemd-tmpfiles-setup.service: main process exited, code=exited, status=1/FAILURE
Jun 14 01:47:16 slyrogue systemd[1]: Unit systemd-tmpfiles-setup.service entered failed state.
Jun 14 01:47:16 slyrogue systemd[1]: systemd-tmpfiles-setup.service failed.

There are quite a bit of files in /usr/lib/tmpfiles.d

# ls /usr/lib/tmpfiles.d/
etc.conf                  laptop-mode.conf  legacy.conf          lirc.conf    mkinitcpio.conf  nscd.conf  sudo.conf      systemd-nologin.conf  systemd.conf  uuidd.conf  x11.conf
gvfsd-fuse-tmpfiles.conf  lastlog.conf      linux-firmware.conf  man-db.conf  mysql.conf       sshd.conf  svnserve.conf  systemd-remote.conf   tmp.conf      var.conf

But all of them are owned by packages:

# pacman -Qo /usr/lib/tmpfiles.d/*
/usr/lib/tmpfiles.d/etc.conf is owned by systemd 219-6
/usr/lib/tmpfiles.d/gvfsd-fuse-tmpfiles.conf is owned by gvfs 1.24.1-1
/usr/lib/tmpfiles.d/laptop-mode.conf is owned by laptop-mode-tools 1.66-1
/usr/lib/tmpfiles.d/lastlog.conf is owned by shadow 4.2.1-3
/usr/lib/tmpfiles.d/legacy.conf is owned by systemd 219-6
/usr/lib/tmpfiles.d/linux-firmware.conf is owned by linux-firmware 20150527.3161bfa-1
/usr/lib/tmpfiles.d/lirc.conf is owned by lirc 1:0.9.2.a-1
/usr/lib/tmpfiles.d/man-db.conf is owned by man-db 2.7.1-1
/usr/lib/tmpfiles.d/mkinitcpio.conf is owned by mkinitcpio 18-2
/usr/lib/tmpfiles.d/mysql.conf is owned by mariadb 10.0.19-1
/usr/lib/tmpfiles.d/nscd.conf is owned by glibc 2.21-4
/usr/lib/tmpfiles.d/sshd.conf is owned by openssh 6.8p1-3
/usr/lib/tmpfiles.d/sudo.conf is owned by sudo 1.8.13-1
/usr/lib/tmpfiles.d/svnserve.conf is owned by subversion 1.8.13-1
/usr/lib/tmpfiles.d/systemd-nologin.conf is owned by systemd 219-6
/usr/lib/tmpfiles.d/systemd-remote.conf is owned by systemd 219-6
/usr/lib/tmpfiles.d/systemd.conf is owned by systemd 219-6
/usr/lib/tmpfiles.d/tmp.conf is owned by systemd 219-6
/usr/lib/tmpfiles.d/uuidd.conf is owned by util-linux 2.26.2-1
/usr/lib/tmpfiles.d/var.conf is owned by systemd 219-6
/usr/lib/tmpfiles.d/x11.conf is owned by systemd 219-6
#

This failure has apparently no effects, but still what can I try?

EDIT:
the problem was that acl was disabled.

Last edited by ezzetabi (2015-06-17 02:21:21)

Offline

#2 2015-06-14 08:08:32

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: systemd-tmpfiles-setup failed [Solved]

Offline

#3 2015-06-16 02:58:26

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

Re: systemd-tmpfiles-setup failed [Solved]

I activated acl, but it did not help sad

% </etc/fstab grep acl
zplate/var              /var            zfs             rw,relatime,xattr,acl   0 0

Offline

#4 2015-06-17 02:20:34

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

Re: systemd-tmpfiles-setup failed [Solved]

Got it. zfs ignores the acl flag, and so it does not activate it, if you do not set acltype=posixacl and xattr=sa in the filesystem.

Offline

Board footer

Powered by FluxBB