[Support]: /tmp/cache fills without emptying automatically #11067
-
Describe the problem you are havingHi everyone, I've noticed that tmp/cache tends to fill up without emptying itself. I've already increased the disk space a few times, but there seems to be a different problem. I use frigate with portainer on proxmox Version0.13.2-6476F8A Frigate config filemqtt:
host: 192.168.0.56
user: pinez
password: xxx
topic_prefix: frigate
client_id: frigate
go2rtc:
streams:
Giardino_sub:
- rtsp://admin:[email protected]:554/h264Preview_01_sub
- "ffmpeg:Giardino#audio=opus"
Giardino_main:
- rtsp://admin:[email protected]:554/h264Preview_01_main
- "ffmpeg:Giardino#audio=opus"
cameras:
Ingresso:
ffmpeg:
inputs:
- path: rtsp://admin:[email protected]:554/live2.sdp
roles:
- detect
- path: rtsp://admin:[email protected]/live1.sdp
roles:
- record
hwaccel_args: -c:v h264_qsv
rtmp:
enabled: false
detect:
width: 480
height: 272
fps: 7
motion:
mask:
- 265,87,311,92,319,55,269,51
objects:
track:
- person
- bicycle
- dog
- cat
- car
snapshots:
enabled: true
bounding_box: true
Garage:
ffmpeg:
inputs:
- path: rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=1&unicast=true&proto=Onvif
roles:
- detect
- path: rtsp://admin:[email protected]/cam/realmonitor?channel=1&subtype=00&authbasic=YWRtaW46TDI4NUYxNjQ=
roles:
- record
hwaccel_args: -c:v h264_qsv
rtmp:
enabled: false
detect:
width: 640
height: 480
fps: 15
objects:
track:
- person
- bicycle
- dog
- cat
- car
snapshots:
enabled: true
bounding_box: true
Giardino:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/Giardino_main?video=copy&audio=aac
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/Giardino_sub?video=copy&audio=aac
input_args: preset-rtsp-restream
roles:
- detect
output_args:
record: -f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy
detect:
width: 1536
height: 576
fps: 15
motion:
mask:
- 0,0,388,0,0,504
- 1536,0,1536,322,1384,440,1067,0
objects:
track:
- person
- dog
- cat
- car
snapshots:
enabled: true
bounding_box: true
Sala:
ffmpeg:
inputs:
- path: rtsp://admin:[email protected]/Streaming/Channels/2
roles:
- detect
- path: rtsp://admin:[email protected]/HighResolutionVideo
roles:
- record
hwaccel_args: -c:v h264_qsv
rtmp:
enabled: false
detect:
width: 352
height: 240
fps: 15
objects:
track:
- person
- dog
- cat
snapshots:
enabled: true
bounding_box: true
birdseye:
enabled: True
mode: continuous
detectors:
coral:
type: edgetpu
device: usb
record:
enabled: True
events:
retain:
default: 10
database:
path: /media/frigate/db/frigate.db Relevant log output2024-04-22 13:30:55.040393987 [INFO] Preparing Frigate...
2024-04-22 13:30:55.146665175 [INFO] Starting Frigate...
2024-04-22 13:30:59.418192086 [2024-04-22 13:30:59] frigate.app INFO : Starting Frigate (0.13.2-6476f8a)
2024-04-22 13:30:59.508296829 [2024-04-22 13:30:59] peewee_migrate.logs INFO : Starting migrations
2024-04-22 13:30:59.532337595 [2024-04-22 13:30:59] peewee_migrate.logs INFO : There is nothing to migrate
2024-04-22 13:30:59.532944279 [2024-04-22 13:30:59] frigate.app INFO : Running database vacuum
2024-04-22 13:31:06.297069174 [2024-04-22 13:31:06] frigate.app INFO : Recording process started: 298
2024-04-22 13:31:06.300139864 [2024-04-22 13:31:06] frigate.app INFO : go2rtc process pid: 87
2024-04-22 13:31:06.330572640 [2024-04-22 13:31:06] detector.coral INFO : Starting detection process: 307
2024-04-22 13:31:06.337309636 [2024-04-22 13:31:06] frigate.app INFO : Output process started: 309
2024-04-22 13:31:06.358061870 [2024-04-22 13:31:06] frigate.detectors.plugins.edgetpu_tfl INFO : Attempting to load TPU as usb
2024-04-22 13:31:06.736953626 [2024-04-22 13:31:06] frigate.app INFO : Camera processor started for Ingresso: 356
2024-04-22 13:31:06.744081631 [2024-04-22 13:31:06] frigate.app INFO : Camera processor started for Garage: 361
2024-04-22 13:31:06.757147451 [2024-04-22 13:31:06] frigate.app INFO : Camera processor started for Giardino: 363
2024-04-22 13:31:06.759484790 [2024-04-22 13:31:06] frigate.app INFO : Camera processor started for Sala: 365
2024-04-22 13:31:06.767617607 [2024-04-22 13:31:06] frigate.app INFO : Capture process started for Ingresso: 368
2024-04-22 13:31:06.776498209 [2024-04-22 13:31:06] frigate.app INFO : Capture process started for Garage: 371
2024-04-22 13:31:06.786937042 [2024-04-22 13:31:06] frigate.app INFO : Capture process started for Giardino: 375
2024-04-22 13:31:06.798431016 [2024-04-22 13:31:06] frigate.app INFO : Capture process started for Sala: 383
2024-04-22 13:31:09.042802525 [2024-04-22 13:31:09] frigate.detectors.plugins.edgetpu_tfl INFO : TPU found FFprobe output from your camera? Frigate statsNo response Operating systemProxmox Install methodDocker Compose Coral versionUSB Network connectionWired Camera make and modelHikvision, Reolink, D-link Any other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 10 replies
-
We'd need to see what the contents of the folder actually are. Also, your hwaccel args should not be manual args but rather a preset |
Beta Was this translation helpful? Give feedback.
-
Thank you for the reply. I admit that I am quite ignorant, so I ask you some questions related to what you say:
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
With the first word of each title is the name of one of the 4 cameras |
Beta Was this translation helpful? Give feedback.
-
I noticed that the files change every 5-6 seconds, for example and 5 second later I have no idea how to understand the file sizes and how I can see if there is anything else, unfortunately I only know the "ls" command |
Beta Was this translation helpful? Give feedback.
-
Ok...so why does the folder continue to fill up and is it always full even though I increase the size of the dedicated space? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
du -h /tmp/cache/* df -h |
Beta Was this translation helpful? Give feedback.
-
I just checked the volumes mapped by frigate on portainer and in fact it isn't there. How can I do to resolve it? |
Beta Was this translation helpful? Give feedback.
https://docs.frigate.video/frigate/installation#storage
it is shown in the docs, a tmpfs volume should be added