Closed stephdl closed 6 months ago
This issue should be fixed in newer Podman releases. Just for testing, we can install the latest one on Rocky Linux 9 with
dnf -y copr enable rhcontainerbot/podman-next
dnf update
The upcoming 9.4 will ship Podman 4.9.
Concerning Debian, we have to wait Trixie (13).
As workaround we could run a script early in the boot process, to remove empty dirs that triggers the error:
( echo 'rmdir /var/lib/containers/storage/overlay/*/merged' ; getent passwd | awk -F : '$3 >= 1000 { print "rmdir " $6 "/.local/share/containers/storage/overlay/*/merged" }' ) | sh -s || :
Test case
Check the bug is not reproducible with core 2.8.0-dev.5
Cannot reproduce the original bug, but at least the unit does not fail at boot.
VERIFIED
Steps to reproduce on rocky linux, not always reproducible
Expected behavior
I expect that the reboot starts all modules without issue
Actual behavior
It seems that when we start the server, before to start any user service we try to unmount a merged volume. It seems it is a random side effect, some user systemd service fails to unmount it, others succeed
I have seen this failure for openldap, sambaAD, clamav but I others experimented it for rspamd and postfix, all occurred after the reboot
we could found this for instance in my case
and
reboot of the server at 09:48:14 https://gist.github.com/stephdl/697992bd89198a8bf8673593e0717582
The immediate fix is to rm the merged volumes
runagent -m openldap1 rm -rf ../../.local/share/containers/storage/overlay/*/merged/
however if you try to reboot, the issue is not reproducible as is, it might occur again, or it might occur to another module
and for the user openldap1
Components
podman 4.6.1
See also
https://community.nethserver.org/t/mail-cannot-retrieve-filter-configuration/23484 https://community.nethserver.org/t/ns8-merged-error/23386