Closed JitteryDoodle closed 1 year ago
What is the docker CLI command used in Unraid?
Thanks for the super fast reply, much appreciated!
Here's the docker CLI command:
docker run
-d
--name='frigate'
--net='bridge'
--privileged=true
-e TZ="America/Los_Angeles"
-e HOST_OS="Unraid"
-e HOST_HOSTNAME="KatrinaUnraid"
-e HOST_CONTAINERNAME="frigate"
-e 'FRIGATE_RTSP_PASSWORD'='***'
-e 'PLUS_API_KEY'=''
-l net.unraid.docker.managed=dockerman
-l net.unraid.docker.webui='http://[IP]:[PORT:5000]'
-l net.unraid.docker.icon='https://raw.githubusercontent.com/yayitazale/unraid-templates/main/frigate.png'
-p '5000:5000/tcp'
-p '8554:8554/tcp'
-v '/mnt/user/appdata/frigate':'/config':'rw'
-v '/mnt/remotes/security-nvr/':'/media/frigate':'rw'
-v '/etc/localtime':'/etc/localtime':'rw'
--device='/dev/bus/usb'
--shm-size=256mb
--mount type=tmpfs,target=/tmp/cache,tmpfs-size=100000000
--restart unless-stopped 'ghcr.io/blakeblackshear/frigate:stable'
1f160b1b0ed39c559c8acdbf61673ff9e43ed9f6abdde0eac50cbd4f88c480dd
How do you know it's a permission error? Don't see that in the logs
Apologies, left that out. But looking back at the logs I discovered a space issue? Odd because there is 30TB available on the frigate media share.
Here's the permission denied, probably because of no space:
2023-09-05 12:25:46.415471583 [2023-09-05 12:25:46] ffmpeg.Carport.record ERROR : Could not write header for output file #0 (incorrect codec parameters ?): No space left on device
2023-09-05 12:25:46.415556271 [2023-09-05 12:25:46] ffmpeg.Carport.record ERROR : Error initializing output stream 0:1 --
2023-09-05 12:25:46.415589936 [2023-09-05 12:25:46] watchdog.Carport INFO : Terminating the existing ffmpeg process...
2023-09-05 12:25:46.415624418 [2023-09-05 12:25:46] watchdog.Carport INFO : Waiting for ffmpeg to exit gracefully...
2023-09-05 12:25:50.972846410 [2023-09-05 12:25:50] frigate.record ERROR : Error occurred when attempting to maintain recording cache
2023-09-05 12:25:50.972881532 [2023-09-05 12:25:50] frigate.record ERROR : [Errno 13] Permission denied: '/media/frigate/recordings/2023-09-05/19'
Figured the original issue out! I had the default --shm-size
set to 256mb. I increased this to 8GB along with the tmpfs mount size.
Now I just am getting some errors about cleaning up some old recordings. This is probably to be expected though; I'm guessing it's because the old recordings are still owned by the previous host. I can likely fix this with chown - going to close for now! Thanks for the help.
Describe the problem you are having
Hello,
I've recently attempted to migrate Frigate to a new Unraid docker host and am now using SMB shares instead of local shares to store footage. Unfortunately, I'm getting permission denied errors even though I can write new files in the directory from the docker container itself. I even tried setting the permissions on the share to 777 and no local security, with no luck.
Version
0.12.1-367d724
Frigate config file
Relevant log output
FFprobe output from your camera
Frigate stats
Operating system
UNRAID
Install method
Docker CLI
Coral version
USB
Network connection
Wired
Camera make and model
reolink
Any other information that may be helpful
No response