Closed jlpoolen closed 3 years ago
I tried referencing some other directories, e.g. /tmp, /var/tmp/test, in the nvr config utility and I was successful. Therefore. something about the mounted directory to /videos is at play.
I was able to create a directory both as user jlpoole and user moonfire-nvr in a bash shell:
jlpoole@raspberrypi:~ $ mkdir /videos/jlpooltmadethis
jlpoole@raspberrypi:~ $ su moonfire-nvr
Password:
moonfire-nvr@raspberrypi:/home/jlpoole $ mkdir /videos/mfmadethis
moonfire-nvr@raspberrypi:/home/jlpoole $
Here is my /etc/fstab entry:
/dev/mapper/vgpurple-cameras /videos ext4 nofail,noatime,lazytime,data=writeback,journal_async_commit 0 2
I'm typing on my phone so excuse my terseness.
Docker containers have their own filesystem view and need mount points explicitly defined for everything that should match the host filesystem. The script in the instructions has that for /var/lib/moonfire-nvr
; you need to add matching lines for any sample file directories outside of that. (Suggestions welcome for making this more obvious in the instructions.)
Problem solved by adding this line after the "--mount" row in Scott's script:
--mount=type=bind,source=/videos,destination=/videos
referenced: https://docs.docker.com/storage/volumes/
I'll take a stab at modifying the install document in my fork. Thank you.
I'm trying to set my directories. I have the following directory setup:
When I try to specify the directory /videos/garage_west I get this error message:![putty_2021-08-12_17-50-07](https://user-images.githubusercontent.com/227313/129288533-83ffe4bd-da71-4392-aa3b-a48a6075e766.png)
When I try to specify the parent directory /videos, I get this error message:![putty_2021-08-12_17-50-30](https://user-images.githubusercontent.com/227313/129288545-84a378f3-65e0-4cd3-bb17-c81a73dcd637.png)
Both of these directories are owned by user moonfire-nvr. I launched the "nvr config" using:
The root-level directory /videos is a mounted drive to an LVM file system. I had no problem creating the subdirectories, e.g. /videos/garage_west, in the console.
I'm scratching my head on this. The SQLite database has appropriate permissions, see Issue #142,