[Support]: Clips are filling up /tmp/frigate on my unraid host filesystem
See original GitHub issueDescribe the problem you are having
I’m running frigate in docker on unraid, and for some reason, frigate seems to be filling up /tmp/frigate on the host (Not in the container), with clips. I’m having to periodically go in there and delete files.
I also have files output into the expected directory mapped in to the container.
Any suggestions?
Version
0.9.4-26AE608
Frigate config file
mqtt:
host: 192.168.86.42
user: mqtt
password: <Redacted>
cameras:
living_room:
zones:
couch:
coordinates: 522,953,1209,897,1114,767,486,772
love_seat:
coordinates: 1147,626,1179,601,1051,478,1010,481,894,478,999,644
entryway:
coordinates: 1845,1020,2099,728,1858,572,1656,839
kitchen:
coordinates: 1557,823,1761,557,1266,273,1143,223,1089,388,1183,450,1296,480,1539,690,1468,823
mqtt:
quality: 100
height: 500
motion:
mask:
- 514,246,765,310,816,172,544,108
- 2219,43,2221,118,1689,117,1685,39
objects:
track:
- person
- dog
filters:
person:
mask:
- 514,246,765,310,816,172,544,108
dog:
mask:
- 514,246,765,310,816,172,544,108
ffmpeg:
inputs:
- path: rtsp://<Redacted>@camera-livingroom.lan:554/cam/realmonitor?channel=1&subtype=0
roles:
- detect
- rtmp
- record
snapshots:
enabled: True
record:
enabled: True
retain_days: 0
events:
retain:
default: 10
detect:
width: 2304
height: 1296
fps: 5
front_of_house:
motion:
threshold: 20
mask:
- 3118,55,3715,77,3726,142,3107,140
- 2335,0,2305,296,2116,285,1637,356,1478,342,1311,230,747,241,307,181,318,0
zones:
front_door:
objects:
- person
coordinates: 3783,621,3006,504,2918,550,2803,580,2642,602,2617,769,2135,901,2680,1216,3537,1295,3668,936
lawn:
coordinates: 1306,419,1385,356,1692,309,2072,375,2390,446,2776,580,2634,602,2609,706,2691,794,2614,832,1711,723,1292,512
driveway:
coordinates: 1722,720,3633,1289,3047,2160,381,2160,312,1158,263,539,1281,378,1281,520
road_access:
objects:
- car
coordinates: 346,320,769,260,596,126,575,0,371,0
whole_yard:
objects:
- person
coordinates: 0,740,0,1795,0,2160,330,2160,3064,2160,3840,2160,3840,1148,3840,501,3248,231,3039,509,2893,416,2673,460,2059,311,1605,350,1343,396,1321,490,1511,628
record:
enabled: True
retain_days: 3
events:
retain:
default: 10
# Optional: Event recording settings
snapshots:
enabled: True
objects:
track:
- person
- dog
- car
filters:
car:
mask:
- 3600,2160,3641,1284,3095,1042,2197,1485,1292,1875,183,1957,0,2160
ffmpeg:
inputs:
- path: rtsp://<Redacted>@FrontOfHouse-Camera.lan:554/cam/realmonitor?channel=1&subtype=1
roles:
- rtmp
- path: rtsp://<Redacted>@FrontOfHouse-Camera.lan:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif
roles:
- record
- detect
detect:
width: 3840
height: 2160
fps: 5
# garage:
# motion:
# mask:
# - 835,67,1235,64,1241,0,837,0
# record:
# # Optional: Enable recording (default: shown below)
# enabled: True
# # Optional: Number of days to retain (default: shown below)
# retain_days: 0
# events:
# retain:
# default: 5
# # Optional: Event recording settings
# objects:
# track:
# - person
# - car
# filters:
# car:
# # Optional: mask to prevent this object type from being detected in certain areas (default: no mask)
# # Checks based on the bottom center of the bounding box of the object
# mask: 1280,720,1280,642,0,634,0,720
# ffmpeg:
# inputs:
# - path: rtsp://<Redacted>:554/cam/realmonitor?channel=1&subtype=0
# roles:
# - detect
# - record
# detect:
# width: 1280
# height: 960
# fps: 5
# loft:
# objects:
# track:
# - person
# ffmpeg:
# inputs:
# - path: rtsp://<Redacted>@camera-loft.lan:554/cam/realmonitor?channel=1&subtype=1
# roles:
# - rtmp
# - detect
# - record
# mqtt:
# quality: 100
# height: 500
# snapshots:
# enabled: True
# record:
# enabled: True
# retain_days: 0
# events:
# retain:
# default: 2
# detect:
# width: 640
# height: 480
# fps: 5
ffmpeg:
hwaccel_args:
- -c:v
- h264_cuvid
detectors:
coral:
type: edgetpu
device: usb
logger:
# Optional: default log level (default: shown below)
default: debug
Relevant log output
-11-09 09:23:30] frigate.video INFO : front_of_house: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2021-11-09 09:23:30] frigate.video INFO : front_of_house: ffmpeg process is not running. exiting capture thread...
[2021-11-09 09:23:36] watchdog.front_of_house ERROR : FFMPEG process crashed unexpectedly for front_of_house.
[2021-11-09 09:23:36] watchdog.front_of_house ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2021-11-09 09:23:36] watchdog.front_of_house ERROR : You may have invalid args defined for this camera.
[2021-11-09 09:23:36] ffmpeg.front_of_house.detect ERROR : av_interleaved_write_frame(): No space left on device
[2021-11-09 09:23:36] ffmpeg.front_of_house.detect ERROR : Finishing stream 1:0 without any data written to it.
[2021-11-09 09:23:36] ffmpeg.front_of_house.detect ERROR : [segment @ 0x55598fac4580] Failure occurred when ending segment '/tmp/cache/front_of_house-20211109092330.mp4'
[2021-11-09 09:23:36] ffmpeg.front_of_house.detect ERROR : Error writing trailer of /tmp/cache/front_of_house-%Y%m%d%H%M%S.mp4: No space left on device
[2021-11-09 09:23:36] watchdog.living_room ERROR : FFMPEG process crashed unexpectedly for living_room.
[2021-11-09 09:23:36] watchdog.living_room ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2021-11-09 09:23:36] watchdog.living_room ERROR : You may have invalid args defined for this camera.
[2021-11-09 09:23:36] ffmpeg.living_room.detect ERROR : Could not write header for output file #0 (incorrect codec parameters ?): No space left on device
[2021-11-09 09:23:36] ffmpeg.living_room.detect ERROR :
[2021-11-09 09:23:40] frigate.video INFO : living_room: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2021-11-09 09:23:40] frigate.video INFO : living_room: ffmpeg process is not running. exiting capture thread...
[2021-11-09 09:23:40] frigate.video INFO : front_of_house: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2021-11-09 09:23:40] frigate.video INFO : front_of_house: ffmpeg process is not running. exiting capture thread...
[2021-11-09 09:23:46] watchdog.front_of_house ERROR : FFMPEG process crashed unexpectedly for front_of_house.
[2021-11-09 09:23:46] watchdog.front_of_house ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2021-11-09 09:23:46] watchdog.front_of_house ERROR : You may have invalid args defined for this camera.
[2021-11-09 09:23:46] ffmpeg.front_of_house.detect ERROR : Could not write header for output file #0 (incorrect codec parameters ?): No space left on device
[2021-11-09 09:23:46] ffmpeg.front_of_house.detect ERROR :
[2021-11-09 09:23:46] watchdog.living_room ERROR : FFMPEG process crashed unexpectedly for living_room.
[2021-11-09 09:23:46] watchdog.living_room ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2021-11-09 09:23:46] watchdog.living_room ERROR : You may have invalid args defined for this camera.
[2021-11-09 09:23:46] ffmpeg.living_room.detect ERROR : Could not write header for output file #0 (incorrect codec parameters ?): No space left on device
[2021-11-09 09:23:46] ffmpeg.living_room.detect ERROR :
[2021-11-09 09:23:49] frigate.video INFO : living_room: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2021-11-09 09:23:49] frigate.video INFO : living_room: ffmpeg process is not running. exiting capture thread...
[2021-11-09 09:23:50] frigate.video INFO : front_of_house: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2021-11-09 09:23:50] frigate.video INFO : front_of_house: ffmpeg process is not running. exiting capture thread...
[2021-11-09 09:23:57] ws4py INFO : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:49066]
[2021-11-09 09:24:00] frigate.events DEBUG : Event received: start living_room 1636478640.602465-8syzg6
[2021-11-09 09:24:04] frigate.mqtt DEBUG : Publishing mqtt message from websockets at frigate/restart.
[2021-11-09 09:24:04] frigate.mqtt DEBUG : Received mqtt message on frigate/restart.
[2021-11-09 09:24:04] ws4py INFO : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:49066]
FFprobe output from your camera
Camera works fine when there is space.
Frigate stats
No response
Operating system
UNRAID
Install method
Docker Compose
Coral version
USB
Network connection
Wired
Camera make and model
Amcrest
Any other information that may be helpful
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
No User Share(s) anymore and '/' keep filling up with content ...
I think the issue is that my user share(s) failed to mount, then some other process keep filling the /mnt/user/'same name with shared...
Read more >Docker Image Continuously Growing - Forums - Unraid
I've just encountered this problem - CUPS is filling the docker image file with lots of temporary files. I deleted all these temporary...
Read more >[Support] Linuxserver.io - Duplicati - Page 2 - Docker Containers
I have mine mapped to /tmp. So the host and the container are both /tmp. If my understanding is correct, /tmp is in...
Read more >Log filled with BTRFS errors - General Support - Forums - Unraid
I've noticed my log file getting full for seemingly no reason and found it filled with the following error: BTRFS error (device nvme0n1p1): ......
Read more >[Support] Electric Brain Unraid API - Page 15
This is the hashed host ip. image.png.e79ea57517006843777a9ed493c4e211.png. Note you not include HTTPS:// in the Sever IP field as you will be ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@mjcumming this looks like the /media/frigate destination is full where files are stored after the cache. Can you open your own issue?
@eddyg your issue looks like a duplicate of the daylight savings bug. The 0.10.0 beta has improved cache handling.