Assertion 'fd' failed at src/tmpfiles/tmpfiles.c:843

I am getting this weird bug when updating certain packages. I completely reinstalled Manjaro and also on another drive to exclude the possibility of installation or drive failure.

No idea how to solve this. I already posted an issue at systemd, but they said it was a bug with the OS.

(1/4) Creating system user accounts...
Creating group mysql with gid 972.
Creating user mysql (MariaDB) with uid 972 and gid 972.
(2/4) Reloading system manager configuration...
(3/4) Creating temporary files...
Assertion 'fd' failed at src/tmpfiles/tmpfiles.c:843, function fd_set_perms(). Aborting.
/usr/share/libalpm/scripts/systemd-hook: line 28:  8104 Aborted                 (core dumped) /usr/bin/systemd-tmpfiles --create
error: command failed to execute correctly

It has something to do with the pacman 6 update.

Running the command, from the mentioned line in /usr/share/libalpm/scripts/systemd-hook, manually works fine.

Thanks, @Strit .

What command is this, exactly? Here’s what’s in the file at line 28-38:

28 β”‚ case β€œ$op” in
29 β”‚ catalog) /usr/bin/journalctl --update-catalog ;;
30 β”‚ hwdb) /usr/bin/systemd-hwdb --usr update ;;
31 β”‚ update) touch -c /usr ;;
32 β”‚ sysusers) /usr/bin/systemd-sysusers ;;
33 β”‚ tmpfiles) /usr/bin/systemd-tmpfiles --create ;;
34 β”‚
35 β”‚ daemon-reload) systemd_live; /usr/bin/systemctl daemon-reload ;;
36 β”‚ udev-reload) udevd_live; /usr/bin/udevadm control --reload ;;
37 β”‚ binfmt) systemd_live; /usr/lib/systemd/systemd-binfmt ;;
38 β”‚ sysctl) systemd_live; /usr/lib/systemd/systemd-sysctl ;;

Should we run this command if we get this error after a pacman -Syu system update and reboot?

This one.

1 Like

Done. :slight_smile: