3

After last update there is become a problem: systemd-tmpfiles not starts (so there is no temp dirs and some services can't be started). But root folder "/" ownership is "root" user still, not "user". Here is "journalctl -xe | grep systemd-tmpfiles" output:

Nov 22 06:29:04 orangepizero systemd-tmpfiles[212]: Failed to validate path /dev/btrfs-control: Bad file descriptor
Nov 22 06:29:04 orangepizero systemd-tmpfiles[212]: Failed to validate path /dev/net: Bad file descriptor
Nov 22 06:29:04 orangepizero systemd-tmpfiles[212]: Failed to validate path /dev/net/tun: Bad file descriptor
-- Subject: Unit systemd-tmpfiles-setup.service has begun start-up
-- Unit systemd-tmpfiles-setup.service has begun starting up.
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: [/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring.
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /var: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /var/log: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /var/lib: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /run/sendsigs.omit.d: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /home: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /srv: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /run/lock/subsys: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /var/cache: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /var/cache/man: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /var/run/screen: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /var/run/sshd: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /var/run/sudo: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /var/run/sudo/ts: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /run/nologin: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /run/user: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /run/utmp: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /run/systemd/ask-password: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /run/systemd/seats: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /run/systemd/sessions: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /run/systemd/users: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /run/systemd/machines: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /run/systemd/shutdown: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /run/systemd/netif: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /run/systemd/netif/links: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /run/systemd/netif/leases: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /run/log: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /var/lib/systemd: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /var/lib/systemd/coredump: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /tmp: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /var/log/wtmp: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /var/log/btmp: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /var/spool: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /tmp/.X11-unix: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /tmp/.ICE-unix: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /tmp/.XIM-unix: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /tmp/.font-unix: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /tmp/.Test-unix: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /run/log/journal: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd-tmpfiles[419]: Failed to validate path /run/log/journal/30cc1dc4f9bb4bf38a7d997979ec8163: Bad file descriptor
Nov 22 06:29:05 orangepizero systemd[1]: systemd-tmpfiles-setup.service: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit systemd-tmpfiles-setup.service has failed
-- Unit systemd-tmpfiles-setup.service has failed.
Nov 22 06:29:06 orangepizero systemd[1]: systemd-tmpfiles-setup.service: Unit entered failed state.
Nov 22 06:29:06 orangepizero systemd[1]: systemd-tmpfiles-setup.service: Failed with result 'exit-code'.
-- Subject: Unit systemd-tmpfiles-clean.timer has finished start-up
-- Unit systemd-tmpfiles-clean.timer has finished starting up.
-- Subject: Unit systemd-tmpfiles-clean.service has begun start-up
-- Unit systemd-tmpfiles-clean.service has begun starting up.
Nov 22 06:44:51 orangepizero systemd-tmpfiles[3619]: [/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring.
-- Subject: Unit systemd-tmpfiles-clean.service has finished start-up
-- Unit systemd-tmpfiles-clean.service has finished starting up.

How to fix it?

1

I assume it may be linked to this issue: https://answers.launchpad.net/ubuntu/+source/systemd/+question/676237

Which seems to have been introduced within the last update of system-tmpfiles.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.