Page 1 of 1

docker container lost access to NFS share, deleted events

Posted: Fri Sep 20, 2019 11:48 pm
by rhombus00
I've been running zoneminder 1.32 on Ubuntu 18 for several months. The Ubuntu has a NFS mount in fstab to my FreeNAS. I just had a power issue and I had to manually boot my FreeNAS and Ubuntu host. I guess my Ubuntu host and ZM container loaded before FreeNAS did because when I got around to checking ZM, it only had a day's worth of events and none of them could reach the files. I ran a mount -a and restarted the ZM container to fix, but I no longer have events although the files are now accessible.

I'm not that concerned about the deleted events; I would just like to try to prevent this in the future. I checked the forums and found this useful post https://wiki.zoneminder.com/Common_Issu ... ve_or_NAS referring to using systemd to handle the mount and service dependency. I don't think that will work because I'm running ZM in a container, though. I'm thinking the modifying the docker images health check to do something like an ls on the mount might work. Does anyone have any experience with this type of scenario?

Thanks

Re: docker container lost access to NFS share, deleted events

Posted: Mon Sep 23, 2019 1:30 pm
by iconnor
Turn off zmaudit. You don't need it, or only want to run it every now and then.

Re: docker container lost access to NFS share, deleted events

Posted: Fri Oct 04, 2019 8:07 pm
by rhombus00
I''ll give that a shot.
Thanks!

Re: docker container lost access to NFS share, deleted events

Posted: Sat Oct 05, 2019 12:18 am
by knight-of-ni
If you move your NFS mount into a system mount file and create a systemd service file to manage your zoneminder container, you can then automatically prevent zoneminder from starting, in the event your remote storage fails to mount.