systemd-tmpfiles-setup.service fails

G’day.

systemd-tmpfiles-setup.service fails at boot and I am not able to start it post-boot.

Aug 07 02:22:01 linux-ayti systemd[1]: systemd-tmpfiles-setup.service: Unit entered failed state.
Aug 07 02:22:01 linux-ayti systemd[1]: systemd-tmpfiles-setup.service: Failed with result 'exit-code'.
Aug 07 02:53:24 linux-ayti systemd[1]: Starting Create Volatile Files and Directories...
Aug 07 02:53:24 linux-ayti systemd-tmpfiles[4641]: [/usr/lib/tmpfiles.d/net-snmp.conf:1] Line references path below legacy directory /var/run/, updating /var/run/net-snmp → /run/net-snmp; please update the tmp>
Aug 07 02:53:24 linux-ayti systemd-tmpfiles[4641]: [/usr/lib/tmpfiles.d/radvd.conf:1] Line references path below legacy directory /var/run/, updating /var/run/radvd → /run/radvd; please update the tmpfiles.d/ >
Aug 07 02:53:24 linux-ayti systemd-tmpfiles[4641]: [/usr/lib/tmpfiles.d/redis.conf:2] Line references path below legacy directory /var/run/, updating /var/run/redis/ → /run/redis/; please update the tmpfiles.d>
Aug 07 02:53:24 linux-ayti systemd-tmpfiles[4641]: [/usr/lib/tmpfiles.d/samba.conf:1] Line references path below legacy directory /var/run/, updating /var/run/samba → /run/samba; please update the tmpfiles.d/ >
Aug 07 02:53:24 linux-ayti systemd-tmpfiles[4641]: [/usr/lib/tmpfiles.d/svnserve.conf:1] Line references path below legacy directory /var/run/, updating /var/run/svnserve → /run/svnserve; please update the tmp>
Aug 07 02:53:24 linux-ayti systemd-tmpfiles[4641]: [/usr/lib/tmpfiles.d/tmp.conf:13] Duplicate line for path "/var/tmp", ignoring.
Aug 07 02:53:24 linux-ayti systemd-tmpfiles[4641]: [/usr/lib/tmpfiles.d/tor.conf:1] Line references path below legacy directory /var/run/, updating /var/run/tor → /run/tor; please update the tmpfiles.d/ drop-i>
Aug 07 02:53:24 linux-ayti systemd-tmpfiles[4641]: [/usr/lib/tmpfiles.d/var.conf:21] Duplicate line for path "/var/lib", ignoring.
Aug 07 02:53:24 linux-ayti systemd-tmpfiles[4641]: [/usr/lib/tmpfiles.d/var.conf:23] Duplicate line for path "/var/spool", ignoring.
Aug 07 02:53:24 linux-ayti systemd-tmpfiles[4641]: Unsafe symlinks encountered in /var/cache/PackageKit, refusing.
Aug 07 02:53:24 linux-ayti systemd-tmpfiles[4641]: Unsafe symlinks encountered in /var/lib/PackageKit, refusing.
Aug 07 02:53:24 linux-ayti systemd-tmpfiles[4641]: Unsafe symlinks encountered in /var/spool/cups/tmp, refusing.
Aug 07 02:53:24 linux-ayti systemd-tmpfiles[4641]: Unsafe symlinks encountered in /var/tmp/dkms, refusing.
Aug 07 02:53:24 linux-ayti systemd-tmpfiles[4641]: Unsafe symlinks encountered in /var/adm/backup, refusing.
Aug 07 02:53:24 linux-ayti systemd-tmpfiles[4641]: Unsafe symlinks encountered in /var/lib/empty, refusing.
Aug 07 02:53:24 linux-ayti systemd-tmpfiles[4641]: Unsafe symlinks encountered in /var/lib/misc, refusing.
Aug 07 02:53:24 linux-ayti systemd-tmpfiles[4641]: Unsafe symlinks encountered in /var/spool/mail, refusing.
Aug 07 02:53:24 linux-ayti systemd-tmpfiles[4641]: Unsafe symlinks encountered in /var/adm/update-scripts, refusing.
Aug 07 02:53:24 linux-ayti systemd-tmpfiles[4641]: Unsafe symlinks encountered in /var/adm/update-messages, refusing.
Aug 07 02:53:24 linux-ayti systemd-tmpfiles[4641]: Unsafe symlinks encountered in /var/cache/man, refusing.
Aug 07 02:53:24 linux-ayti systemd-tmpfiles[4641]: Unsafe symlinks encountered in /var/lib/nfs, refusing.
Aug 07 02:53:24 linux-ayti systemd-tmpfiles[4641]: Unsafe symlinks encountered in /var/lib/nfs/etab, refusing.
Aug 07 02:53:24 linux-ayti systemd-tmpfiles[4641]: Unsafe symlinks encountered in /var/lib/nfs/rmtab, refusing.
Aug 07 02:53:24 linux-ayti systemd-tmpfiles[4641]: Unsafe symlinks encountered in /var/lib/sddm, refusing.
Aug 07 02:53:24 linux-ayti systemd-tmpfiles[4641]: Unsafe symlinks encountered in /var/lib/sudo, refusing.
Aug 07 02:53:24 linux-ayti systemd-tmpfiles[4641]: Unsafe symlinks encountered in /var/lib/sudo/ts, refusing.
Aug 07 02:53:24 linux-ayti systemd-tmpfiles[4641]: Unsafe symlinks encountered in /var/lib/machines, refusing.
Aug 07 02:53:24 linux-ayti systemd-tmpfiles[4641]: Unsafe symlinks encountered in /var/lib/systemd, refusing.
Aug 07 02:53:24 linux-ayti systemd-tmpfiles[4641]: Unsafe symlinks encountered in /var/lib/systemd/coredump, refusing.
Aug 07 02:53:24 linux-ayti systemd-tmpfiles[4641]: Unsafe symlinks encountered in /var/log/wtmp, refusing.
Aug 07 02:53:24 linux-ayti systemd-tmpfiles[4641]: Unsafe symlinks encountered in /var/log/btmp, refusing.
Aug 07 02:53:24 linux-ayti systemd-tmpfiles[4641]: Unsafe symlinks encountered in /var/log/lastlog, refusing.
Aug 07 02:53:24 linux-ayti systemd-tmpfiles[4641]: Unsafe symlinks encountered in /var/lib/xkb/compiled/README.compiled, refusing.
Aug 07 02:53:24 linux-ayti systemd[1]: systemd-tmpfiles-setup.service: Main process exited, code=exited, status=1/FAILURE
Aug 07 02:53:24 linux-ayti systemd[1]: Failed to start Create Volatile Files and Directories.
Aug 07 02:53:24 linux-ayti systemd[1]: systemd-tmpfiles-setup.service: Unit entered failed state.
Aug 07 02:53:24 linux-ayti systemd[1]: systemd-tmpfiles-setup.service: Failed with result 'exit-code'.


Please help.

I fixed it, somehow /var ownership was changed to nagios:nagios; switched it to root:root and now it works.