Closed jasonpstokes closed 3 years ago
Your screenshot of the output of "df -h" shows that /tmp/cache is a 2GB filesystem and is 100% full. I run a similar setup to you with 5 Reolink cameras but only a 1GB /tmp/cache filesystem. I would suggest trying to see why there is so much space utilized in /tmp/cache. If there are a bunch of video files in there maybe run ffprobe against a few of them, so you know which stream they are coming from. You might also check if any files are ever being cleaned from /tmp/cache or if they're just building up until it crashes. There should be an always rotating set of files in there.
I'm not as familiar with how the new caching system works in the 0.9 RCs yet, but in my live system I only see one or two files for each camera. Maybe one of your retention settings is causing frigate to retain more files than needed? Not sure about that. We need to know what is taking up the 2GB of space, as that seems quite high.
@.***:/tmp/cache# df -h . Filesystem Size Used Avail Use% Mounted on tmpfs 954M 59M 895M 7% /tmp/cache
On Fri, Sep 10, 2021 at 2:38 AM Jason @.***> wrote:
Describe the bug Frigate has crashed again after a couple days running, throwing these errors for all cameras every 10 seconds:
[2021-09-10 16:17:52] ffmpeg.Deck.record ERROR : Could not write header for output file #0 (incorrect codec parameters ?): No space left on device, [2021-09-10 16:17:52] ffmpeg.Deck.record ERROR : , [2021-09-10 16:17:52] watchdog.Deck INFO : Terminating the existing ffmpeg process..., [2021-09-10 16:17:52] watchdog.Deck INFO : Waiting for ffmpeg to exit gracefully..., [2021-09-10 16:17:52] ffmpeg.Laundry.record ERROR : Could not write header for output file #0 (incorrect codec parameters ?): No space left on device, [2021-09-10 16:17:52] ffmpeg.Laundry.record ERROR : , [2021-09-10 16:17:52] watchdog.Laundry INFO : Terminating the existing ffmpeg process..., [2021-09-10 16:17:52] watchdog.Laundry INFO : Waiting for ffmpeg to exit gracefully..., [2021-09-10 16:18:02] ffmpeg.Entrance.record ERROR : Could not write header for output file #0 (incorrect codec parameters ?): No space left on device, [2021-09-10 16:18:02] ffmpeg.Entrance.record ERROR : , [2021-09-10 16:18:02] watchdog.Entrance INFO : Terminating the existing ffmpeg process..., [2021-09-10 16:18:02] watchdog.Entrance INFO : Waiting for ffmpeg to exit gracefully..., [2021-09-10 16:18:02] ffmpeg.Driveway.record ERROR : Could not write header for output file #0 (incorrect codec parameters ?): No space left on device, [2021-09-10 16:18:02] ffmpeg.Driveway.record ERROR : , [2021-09-10 16:18:02] watchdog.Driveway INFO : Terminating the existing ffmpeg process..., [2021-09-10 16:18:02] watchdog.Driveway INFO : Waiting for ffmpeg to exit gracefully..., [2021-09-10 16:18:02] ffmpeg.Rumpus.record ERROR : Could not write header for output file #0 (incorrect codec parameters ?): No space left on device, [2021-09-10 16:18:02] ffmpeg.Rumpus.record ERROR : , [2021-09-10 16:18:02] watchdog.Rumpus INFO : Terminating the existing ffmpeg process..., [2021-09-10 16:18:02] watchdog.Rumpus INFO : Waiting for ffmpeg to exit gracefully..., [2021-09-10 16:18:02] ffmpeg.Balcony.record ERROR : Could not write header for output file #0 (incorrect codec parameters ?): No space left on device, [2021-09-10 16:18:02] ffmpeg.Balcony.record ERROR : , [2021-09-10 16:18:02] watchdog.Balcony INFO : Terminating the existing ffmpeg process..., [2021-09-10 16:18:02] watchdog.Balcony INFO : Waiting for ffmpeg to exit gracefully..., [2021-09-10 16:18:02] ffmpeg.Deck.record ERROR : Could not write header for output file #0 (incorrect codec parameters ?): No space left on device, [2021-09-10 16:18:02] ffmpeg.Deck.record ERROR : , [2021-09-10 16:18:02] watchdog.Deck INFO : Terminating the existing ffmpeg process..., [2021-09-10 16:18:02] watchdog.Deck INFO : Waiting for ffmpeg to exit gracefully...,
@.***:/opt/frigate# df -h Filesystem Size Used Avail Use% Mounted on overlay 233G 20G 201G 9% / tmpfs 64M 0 64M 0% /dev shm 300M 26M 275M 9% /dev/shm /dev/sda2 233G 20G 201G 9% /labelmap.txt 192.168.30.8:/storage/frigate 1.8T 449G 1.4T 26% /media/frigate tmpfs 2.0G 2.0G 0 100% /tmp/cache tmpfs 7.7G 0 7.7G 0% /proc/asound tmpfs 7.7G 0 7.7G 0% /proc/acpi tmpfs 7.7G 0 7.7G 0% /sys/firmware
Version of frigate 0.9.0-6c28613
Config file
database: path: /media/frigate/database/frigate.db detectors: coral: type: edgetpu device: usb mqtt: host: 192.168.1.5 port: 1883 user: mqtt password: "{FRIGATE_MQTT_PASSWORD}" birdseye: mode: continuous width: 1792 height: 1344 detect: width: 896 height: 672 fps: 5 ffmpeg: hwaccel_args: -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 input_args: -avoid_negative_ts make_zero -flags low_delay -fflags nobuffer -fflags +genpts+discardcorrupt -rw_timeout 5000000 -strict experimental -use_wallclock_as_timestamps 1 -f live_flv output_args: record: -f segment -segment_time 30 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy # -an motion: mask:
265,650,265,625,630,625,630,650 record: enabled: true retain_days: 1 events: enabled: true pre_capture: 3 retain: default: 15 snapshots: enabled: true clean_copy: false bounding_box: true retain: default: 15 cameras: Driveway: ffmpeg: inputs:
- path: http://192.168.1.71/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user={FRIGATE_USER}&password={FRIGATE_PASSWORD} roles:
- detect
- path: http://192.168.1.71/flv?port=1935&app=bcs&stream=channel0_main.bcs&user={FRIGATE_USER}&password={FRIGATE_PASSWORD} roles:
- record objects: filters: person: mask: 510,120,540,120,540,160,510,160 track:
- person
- vehicle
- dog rtmp: enabled: false timestamp_style: format: "%d/%m/%Y %H:%M:%S"
Entrance: ffmpeg: inputs:
- path: http://192.168.1.72/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user={FRIGATE_USER}&password={FRIGATE_PASSWORD} roles:
- detect
- path: http://192.168.1.72/flv?port=1935&app=bcs&stream=channel0_main.bcs&user={FRIGATE_USER}&password={FRIGATE_PASSWORD} roles:
- record objects: track:
- person
- dog rtmp: enabled: false timestamp_style: format: "%d/%m/%Y %H:%M:%S"
Rumpus: ffmpeg: inputs:
- path: http://192.168.1.73/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user={FRIGATE_USER}&password={FRIGATE_PASSWORD} roles:
- detect
- path: http://192.168.1.73/flv?port=1935&app=bcs&stream=channel0_main.bcs&user={FRIGATE_USER}&password={FRIGATE_PASSWORD} roles:
- record objects: track:
- person
- dog rtmp: enabled: false timestamp_style: format: "%d/%m/%Y %H:%M:%S"
Deck: ffmpeg: inputs:
- path: http://192.168.1.74/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user={FRIGATE_USER}&password={FRIGATE_PASSWORD} roles:
- detect
- path: http://192.168.1.74/flv?port=1935&app=bcs&stream=channel0_main.bcs&user={FRIGATE_USER}&password={FRIGATE_PASSWORD} roles:
- record objects: mask:
- 265,650,265,625,630,625,630,650
- 0,585,29,592,60,617,74,672,0,672 track:
- person rtmp: enabled: false timestamp_style: format: "%d/%m/%Y %H:%M:%S"
Laundry: ffmpeg: inputs:
- path: http://192.168.1.75/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user={FRIGATE_USER}&password={FRIGATE_PASSWORD} roles:
- detect
- path: http://192.168.1.75/flv?port=1935&app=bcs&stream=channel0_main.bcs&user={FRIGATE_USER}&password={FRIGATE_PASSWORD} roles:
- record objects: track:
- person rtmp: enabled: false timestamp_style: format: "%d/%m/%Y %H:%M:%S"
Balcony: ffmpeg: inputs:
- path: http://192.168.1.76/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user={FRIGATE_USER}&password={FRIGATE_PASSWORD} roles:
- detect
- path: http://192.168.1.76/flv?port=1935&app=bcs&stream=channel0_main.bcs&user={FRIGATE_USER}&password={FRIGATE_PASSWORD} roles:
- record objects: track:
- person
- vehicle rtmp: enabled: false timestamp_style: format: "%d/%m/%Y %H:%M:%S"
Frigate stats (After restart, as Frigate's web ui was not responding)
{"Balcony":{"camera_fps":5.1,"capture_pid":256,"detection_fps":0.0,"pid":235,"process_fps":5.1,"skipped_fps":0.0},"Deck":{"camera_fps":5.1,"capture_pid":247,"detection_fps":3.2,"pid":233,"process_fps":5.1,"skipped_fps":0.0},"Driveway":{"camera_fps":5.1,"capture_pid":237,"detection_fps":0.0,"pid":228,"process_fps":5.1,"skipped_fps":0.0},"Entrance":{"camera_fps":5.1,"capture_pid":241,"detection_fps":0.0,"pid":230,"process_fps":5.1,"skipped_fps":0.0},"Laundry":{"camera_fps":5.1,"capture_pid":252,"detection_fps":0.0,"pid":234,"process_fps":5.1,"skipped_fps":0.0},"Rumpus":{"camera_fps":5.0,"capture_pid":243,"detection_fps":0.0,"pid":231,"process_fps":5.0,"skipped_fps":0.0},"detection_fps":3.2,"detectors":{"coral":{"detection_start":0.0,"inference_speed":13.15,"pid":219}},"service":{"storage":{"/dev/shm":{"free":306.5,"mount_type":"tmpfs","total":314.6,"used":8.1},"/media/frigate/clips":{"free":1447499.7,"mount_type":"nfs4","total":1921292.6,"used":473256.0},"/media/frigate/recordings":{"free":1447499.8,"mount_type":"nfs4","total":1921292.6,"used":473256.0},"/tmp/cache":{"free":1993.8,"mount_type":"tmpfs","total":2147.5,"used":153.6}},"uptime":98,"version":"0.9.0-6c28613"}}
Computer Hardware
- OS: Debian 11
- Install method: Docker Compose
- Coral Version: USB
- Network Setup: Wired
Camera Info:
- Manufacturer: Reolink
- Model: RLC-520A
- Resolution: 5Mp
- FPS: 5
docker-compose.yml
services: frigate: container_name: frigate-0.9 image: blakeblackshear/frigate:0.9.0-6c28613-amd64 hostname: frigate restart: always shm_size: '300m' devices:
- /dev/dri/renderD128:/dev/dri/renderD128
- /dev/bus/usb:/dev/bus/usb volumes:
- /etc/localtime:/etc/localtime:ro
- /usr/docker/frigate-0.9/config.yml:/config/config.yml:ro
- /usr/docker/frigate-0.9/labelmap.txt:/labelmap.txt:ro
- /usr/docker/frigate-0.9/database:/media/frigate/database
- /mnt/nas/frigate:/media/frigate
- type: tmpfs target: /tmp/cache tmpfs: size: '2gb' network_mode: bridge ports:
- 0.0.0.0:5000:5000 environment: FRIGATE_MQTT_PASSWORD: "" FRIGATE_USER: "" FRIGATE_PASSWORD: "" LIBVA_DRIVER_NAME: ""
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/blakeblackshear/frigate/issues/1755, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC3I766FWGRSW7NU6O6JKMDUBGRUTANCNFSM5DYVMENA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Hi, maybe it doesn't clean up in the tmp video clips after the "recording" is done? can you ls -lh your tmp/cache directory?
just a side question about your RLC-520A (im having one myself) i do not use record but instead clips im getting alot of
frigate | frigate.events WARNING : Unable to create clip for indkorsel and event 1631278700.555235-ht2a0j. There were no cache files for this event.
the same goes for the RLC-420 and i dont run into that problem with my hikvision, have you experience something similar?
@rhatguy Yes I was running with 1Gb tmpfs but when this happened the first time, I increased it to 2Gb. Hadn't thought to check if it was a problem with one camera in particular, so if/when it happens again I'll do that. Usually there are only 1 or 2 files for each camera (totalling <200Mb), and so they're being written out/deleted as expected.
@nic0dk Hi, I don't think I've seen that error (all mine are RLC-520A cameras) so can't comment sorry.
I'm having the same issue. It doesn't clean up in the tmp video clips after the "recording" is done. They just keep building up until 2 GB limit, then I get the same error "Could not write header for output file #0 (incorrect codec parameters ?): No space left on device,"
Is there a setting to clean up the/tmp/cache that can be set in frigate.yml ?
This almost certainly means your recording cleanup errored out. You should have a related error message in the logs.
This almost certainly means your recording cleanup errored out. You should have a related error message in the logs.
The only errors are below and I receive dozens of these for each camera. I'm at a loss as to what to do to resolve this....
ffmpeg.FrontDoor.clips ERROR : ERROR : Could not write header for output file #0 (incorrect codec parameters ?): No space left on device watchdog.FrontDoor INFO : Terminating the existing ffmpeg process... watchdog.FrontDoor INFO : Waiting for ffmpeg to exit gracefully... ffmpeg.Driveway.clips ERROR : Could not write header for output file #0 (incorrect codec parameters ?): No space left on device
If I rm /tmp/cache/* the files all come back quickly and df -h shows full again.
root@ccab4aaf-frigate:/opt/frigate# df -h Filesystem Size Used Avail Use% Mounted on overlay 55G 18G 35G 35% / tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup /dev/root 55G 18G 35G 35% /usr/sbin/docker-init devtmpfs 1.7G 0 1.7G 0% /dev tmpfs 1.9G 3.7M 1.9G 1% /dev/shm tmpfs 1.9G 1.9G 0 100% /tmp tmpfs 1.9G 0 1.9G 0% /proc/asound tmpfs 1.9G 0 1.9G 0% /sys/firmware
Can you list the contents of /tmp/cache? You should have small 10s video segments from your cameras. These should get moved out and into the recordings folder after 5 seconds.
Here is part of the list... root@ccab4aaf-frigate:/opt/frigate# ls /tmp/cache/ Driveway-20210923133542.mp4 FrontDoor-20210923133704.mp4 FrontYard-20210923133708.mp4 Driveway-20210923133552.mp4 FrontDoor-20210923133709.mp4 FrontYard-20210923133710.mp4 Driveway-20210923133601.mp4 FrontDoor-20210923133716.mp4 FrontYard-20210923133712.mp4 Driveway-20210923133612.mp4 FrontDoor-20210923133721.mp4 FrontYard-20210923133735.mp4 Driveway-20210923133622.mp4 FrontDoor-20210923133728.mp4 Roof-20210923133543.mp4 Driveway-20210923133632.mp4 FrontDoor-20210923133729.mp4 Roof-20210923133551.mp4 Driveway-20210923133642.mp4 FrontDoor-20210923133731.mp4 Roof-20210923133601.mp4 Driveway-20210923133652.mp4 FrontDoor-20210923133733.mp4 Roof-20210923133613.mp4 Driveway-20210923133702.mp4 FrontDoor-20210923133734.mp4 Roof-20210923133621.mp4 Driveway-20210923133712.mp4 FrontDoor-20210923133738.mp4 Roof-20210923133631.mp4 Driveway-20210923133722.mp4 FrontDoor-20210923133744.mp4 Roof-20210923133641.mp4 Driveway-20210923133732.mp4 FrontYard-20210923133418.mp4 Roof-20210923133651.mp4 Driveway-20210923133742.mp4 FrontYard-20210923133703.mp4 Roof-20210923133701.mp4 Driveway-20210923133752.mp4 FrontYard-20210923133705.mp4 Roof-20210923133719.mp4 FrontDoor-20210923133511.mp4 FrontYard-20210923133707.mp4
You need to look further back in the logs. This is still almost certainly the right answer: https://github.com/blakeblackshear/frigate/issues/1755#issuecomment-917454315
What specific logs do I look at ? I have this below.... logger: default: info logs: custom_components.frigate: debug frigate.mqtt: error frigate.app: error What should I be looking for.
Also, keep up the great work. It is much appreciated......
It should be a clear error message, but it will happen several minutes before the cache fills up enough to cause an error. I would remove the log config from your frigate config file and use the defaults. All the logs you have posted so far are too far after the error message.
Jumped back to 0.8.4 today and had this issue within a few hours; have truncated a LOT of similar lines with "...".
docker-compose.yml
services:
frigate:
container_name: frigate-0.8
image: blakeblackshear/frigate:0.8.4-amd64
hostname: frigate
restart: always
shm_size: '300m'
devices:
- /dev/dri/renderD128:/dev/dri/renderD128
- /dev/bus/usb:/dev/bus/usb
volumes:
- /etc/localtime:/etc/localtime:ro
- /usr/docker/frigate-0.8/config.yml:/config/config.yml:ro
- /usr/docker/frigate-0.8/labelmap.txt:/labelmap.txt:ro
- /usr/docker/frigate-0.8/database:/media/frigate/database
- /mnt/nas/frigate:/media/frigate
- type: tmpfs
target: /tmp/cache
tmpfs:
size: '1gb'
network_mode: bridge
ports:
- 5000:5000
environment:
FRIGATE_MQTT_PASSWORD: ""
FRIGATE_USER: ""
FRIGATE_PASSWORD: ""
LIBVA_DRIVER_NAME: "radeonsi"
config.yml
database:
path: /media/frigate/database/frigate.db
detectors:
coral:
type: edgetpu
device: usb
mqtt:
host: 192.168.1.5
port: 1883
user: mqtt
password: "{FRIGATE_MQTT_PASSWORD}"
ffmpeg:
hwaccel_args: -hwaccel vaapi -hwaccel_device /dev/dri/renderD128
input_args: -avoid_negative_ts make_zero -flags low_delay -fflags nobuffer -fflags +genpts+discardcorrupt -rw_timeout 5000000 -strict experimental -use_wallclock_as_timestamps 1 -f live_flv
output_args:
clips: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy #-an
detect:
max_disappeared: 35
motion:
contour_area: 75
frame_height: 180
cameras:
Driveway:
ffmpeg:
inputs:
- path: http://192.168.1.71/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user={FRIGATE_USER}&password={FRIGATE_PASSWORD}
roles:
- detect
- path: http://192.168.1.71/flv?port=1935&app=bcs&stream=channel0_main.bcs&user={FRIGATE_USER}&password={FRIGATE_PASSWORD}
roles:
- clips
width: 896
height: 672
fps: 5
clips:
enabled: true
pre_capture: 2
post_capture: 3
retain:
default: 14
objects:
track:
- person
- vehicle
- dog
motion:
mask:
- 265,650,265,625,630,625,630,650
rtmp:
enabled: false
snapshots:
enabled: true
timestamp: false
crop: false
bounding_box: true
retain:
default: 14
Entrance:
ffmpeg:
inputs:
- path: http://192.168.1.72/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user={FRIGATE_USER}&password={FRIGATE_PASSWORD}
roles:
- detect
- path: http://192.168.1.72/flv?port=1935&app=bcs&stream=channel0_main.bcs&user={FRIGATE_USER}&password={FRIGATE_PASSWORD}
roles:
- clips
width: 896
height: 672
fps: 5
motion:
mask:
- 265,650,265,625,630,625,630,650
clips:
enabled: true
pre_capture: 2
post_capture: 3
retain:
default: 14
objects:
track:
- person
- dog
rtmp:
enabled: false
snapshots:
enabled: true
timestamp: false
crop: false
bounding_box: true
retain:
default: 14
Rumpus:
ffmpeg:
inputs:
- path: http://192.168.1.73/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user={FRIGATE_USER}&password={FRIGATE_PASSWORD}
roles:
- detect
- path: http://192.168.1.73/flv?port=1935&app=bcs&stream=channel0_main.bcs&user={FRIGATE_USER}&password={FRIGATE_PASSWORD}
roles:
- clips
width: 896
height: 672
fps: 5
motion:
mask:
- 265,650,265,625,630,625,630,650
clips:
enabled: true
pre_capture: 2
post_capture: 3
retain:
default: 14
objects:
track:
- person
- dog
rtmp:
enabled: false
snapshots:
enabled: true
timestamp: false
crop: false
bounding_box: true
retain:
default: 14
Deck:
ffmpeg:
inputs:
- path: http://192.168.1.74/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user={FRIGATE_USER}&password={FRIGATE_PASSWORD}
roles:
- detect
- path: http://192.168.1.74/flv?port=1935&app=bcs&stream=channel0_main.bcs&user={FRIGATE_USER}&password={FRIGATE_PASSWORD}
roles:
- clips
width: 896
height: 672
fps: 5
motion:
mask:
- 265,650,265,625,630,625,630,650
- 0,585,29,592,60,617,74,672,0,672
clips:
enabled: true
pre_capture: 2
post_capture: 3
retain:
default: 14
objects:
track:
- person
rtmp:
enabled: false
snapshots:
enabled: true
timestamp: false
crop: false
bounding_box: true
retain:
default: 14
Laundry:
ffmpeg:
inputs:
- path: http://192.168.1.75/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user={FRIGATE_USER}&password={FRIGATE_PASSWORD}
roles:
- detect
- path: http://192.168.1.75/flv?port=1935&app=bcs&stream=channel0_main.bcs&user={FRIGATE_USER}&password={FRIGATE_PASSWORD}
roles:
- clips
width: 896
height: 672
fps: 5
motion:
mask:
- 265,650,265,625,630,625,630,650
clips:
enabled: true
pre_capture: 2
post_capture: 3
retain:
default: 14
objects:
track:
- person
rtmp:
enabled: false
snapshots:
enabled: true
timestamp: false
crop: false
bounding_box: true
retain:
default: 14
Balcony:
ffmpeg:
inputs:
- path: http://192.168.1.76/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user={FRIGATE_USER}&password={FRIGATE_PASSWORD}
roles:
- detect
- path: http://192.168.1.76/flv?port=1935&app=bcs&stream=channel0_main.bcs&user={FRIGATE_USER}&password={FRIGATE_PASSWORD}
roles:
- clips
width: 896
height: 672
fps: 5
motion:
mask:
- 265,650,265,625,630,625,630,650
clips:
enabled: true
pre_capture: 2
post_capture: 3
retain:
default: 14
objects:
track:
- person
- vehicle
rtmp:
enabled: false
snapshots:
enabled: true
timestamp: false
crop: false
bounding_box: true
retain:
default: 14
I'm not sure what could be causing this. Frigate clears files from the cache once ffmpeg stops writing to them. 0.8.4 behaves a little different because it will wait until there are no more active objects being tracked to clear them. 0.9.0 moves them regardless. Perhaps Frigate sees that a process still has a handle on those files or something, so they are skipped over.
This is how Frigate checks to see if ffmpeg is still in the process of writing to a file. It's the only reason I can think of that these files wouldn't be cleared in the cache already.
After upgrading to 0.9.2 last night I've had this issue twice already. I'd previously run 0.9.1 for two weeks without (I think) seeing it - so have rolled back to that.
First error line recorded by Frigate is: [2021-10-21 00:34:17] frigate.record ERROR : Unable to convert /tmp/cache/Laundry-20211021003339.ts to /media/frigate/recordings/2021-10/21/00/Laundry/33.39.mp4
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2021-10-20 23:09:47] frigate.app INFO : Starting Frigate (0.9.2-25bb515)
Starting migrations
[2021-10-20 23:09:47] peewee_migrate INFO : Starting migrations
There is nothing to migrate
[2021-10-20 23:09:47] peewee_migrate INFO : There is nothing to migrate
[2021-10-20 23:09:47] frigate.mqtt INFO : MQTT connected
[2021-10-20 23:09:48] detector.coral INFO : Starting detection process: 217
[2021-10-20 23:09:48] frigate.app INFO : Output process started: 219
[2021-10-20 23:09:48] ws4py INFO : Using epoll
[2021-10-20 23:09:48] frigate.app INFO : Camera processor started for Driveway: 224
[2021-10-20 23:09:48] frigate.edgetpu INFO : Attempting to load TPU as usb
[2021-10-20 23:09:48] frigate.app INFO : Camera processor started for Entrance: 227
[2021-10-20 23:09:50] frigate.edgetpu INFO : TPU found
[2021-10-20 23:09:48] frigate.app INFO : Camera processor started for Rumpus: 229
[2021-10-20 23:09:48] frigate.app INFO : Camera processor started for Deck: 230
[2021-10-20 23:09:48] frigate.app INFO : Camera processor started for Laundry: 232
[2021-10-20 23:09:48] frigate.app INFO : Camera processor started for Balcony: 234
[2021-10-20 23:09:48] frigate.app INFO : Capture process started for Driveway: 235
[2021-10-20 23:09:48] frigate.app INFO : Capture process started for Entrance: 238
[2021-10-20 23:09:48] frigate.app INFO : Capture process started for Rumpus: 241
[2021-10-20 23:09:48] frigate.app INFO : Capture process started for Deck: 245
[2021-10-20 23:09:48] frigate.app INFO : Capture process started for Laundry: 248
[2021-10-20 23:09:48] frigate.app INFO : Capture process started for Balcony: 254
[2021-10-20 23:09:48] ws4py INFO : Using epoll
[2021-10-20 23:09:57] ws4py INFO : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:39216]
[2021-10-20 23:10:00] ws4py INFO : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:51566]
[2021-10-20 23:10:15] ws4py INFO : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:51566]
[2021-10-20 23:10:18] ws4py INFO : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:51690]
[2021-10-20 23:10:24] ws4py INFO : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:51690]
[2021-10-20 23:10:24] ws4py INFO : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:51726]
[2021-10-20 23:10:31] ws4py INFO : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:51726]
[2021-10-20 23:10:57] ws4py INFO : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:39216]
[2021-10-20 23:15:21] ws4py INFO : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:52788]
[2021-10-20 23:15:26] ws4py INFO : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:52788]
[2021-10-20 23:15:27] ws4py INFO : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:52894]
[2021-10-20 23:15:33] ws4py INFO : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:52894]
[2021-10-20 23:15:33] ws4py INFO : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:52922]
[2021-10-20 23:15:38] ws4py INFO : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:52922]
[2021-10-21 00:34:17] frigate.record ERROR : Unable to convert /tmp/cache/Laundry-20211021003339.ts to /media/frigate/recordings/2021-10/21/00/Laundry/33.39.mp4
[2021-10-21 00:34:17] frigate.record ERROR : ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
configuration: --disable-debug --disable-doc --disable-ffplay --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gpl --enable-libfreetype --enable-libvidstab --enable-libmfx --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxcb --enable-libx265 --enable-libxvid --enable-libx264 --enable-nonfree --enable-openssl --enable-libfdk_aac --enable-postproc --enable-small --enable-version3 --enable-libzmq --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-libopenjpeg --enable-libkvazaar --enable-libaom --extra-libs=-lpthread --enable-vaapi --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
Input #0, mpegts, from '/tmp/cache/Laundry-20211021003339.ts':
Duration: 00:00:11.51, start: 1.400000, bitrate: 2787 kb/s
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: h264 ([27][0][0][0] / 0x001B), yuv420p(progressive), 2560x1920, 90k tbr, 90k tbn, 180k tbc
Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 16000 Hz, mono, fltp, 64 kb/s
Stream #0:0[0x100]: Video: h264 ([27][0][0][0] / 0x001B), yuv420p(progressive), 2560x1920, 90k tbr, 90k tbn, 180k tbc
Stream #0:0[0x100]: Video: h264 ([27][0][0][0] / 0x001B), yuv420p(progressive), 2560x1920, 90k tbr, 90k tbn, 180k tbc
[2021-10-21 06:24:49] ffmpeg.Entrance.record ERROR : [segment @ 0x557ff643e440] Non-monotonous DTS in output stream 0:0; previous: 2316267720, current: 2316267720; changing to 2316267721. This may result in incorrect timestamps in the output file.
=========== [removed ~90 lines of this] =============
[2021-10-21 06:24:49] ffmpeg.Entrance.record ERROR : [segment @ 0x557ff643e440] Non-monotonous DTS in output stream 0:0; previous: 2348319150, current: 2348319150; changing to 2348319151. This may result in incorrect timestamps in the output file.
[2021-10-21 06:24:49] ffmpeg.Entrance.record ERROR : av_interleaved_write_frame(): No space left on device
[2021-10-21 06:24:49] ffmpeg.Entrance.record ERROR : [segment @ 0x557ff643e440] Failure occurred when ending segment '/tmp/cache/Entrance-20211021062439.ts'
[2021-10-21 06:24:49] ffmpeg.Rumpus.record ERROR : [segment @ 0x5649cdf2cd00] Non-monotonous DTS in output stream 0:0; previous: 2328838920, current: 2328838920; changing to 2328838921. This may result in incorrect timestamps in the output file.
[2021-10-21 06:24:49] ffmpeg.Entrance.record ERROR : Error writing trailer of /tmp/cache/Entrance-%Y%m%d%H%M%S.ts: No space left on device
[2021-10-21 06:24:49] ffmpeg.Rumpus.record ERROR : [segment @ 0x5649cdf2cd00] Non-monotonous DTS in output stream 0:0; previous: 2328981840, current: 2328981840; changing to 2328981841. This may result in incorrect timestamps in the output file.
[2021-10-21 06:24:49] watchdog.Entrance INFO : Terminating the existing ffmpeg process...
[2021-10-21 06:24:49] ffmpeg.Rumpus.record ERROR : [segment @ 0x5649cdf2cd00] Non-monotonous DTS in output stream 0:0; previous: 2329198740, current: 2329198740; changing to 2329198741. This may result in incorrect timestamps in the output file.
[2021-10-21 06:24:49] ffmpeg.Rumpus.record ERROR : [segment @ 0x5649cdf2cd00] Non-monotonous DTS in output stream 0:0; previous: 2329414470, current: 2329414470; changing to 2329414471. This may result in incorrect timestamps in the output file.
[2021-10-21 06:24:49] watchdog.Entrance INFO : Waiting for ffmpeg to exit gracefully...
[2021-10-21 06:24:49] ffmpeg.Rumpus.record ERROR : [segment @ 0x5649cdf2cd00] Non-monotonous DTS in output stream 0:0; previous: 2329702650, current: 2329702650; changing to 2329702651. This may result in incorrect timestamps in the output file.
...
[2021-10-21 06:24:49] ffmpeg.Rumpus.record ERROR : av_interleaved_write_frame(): No space left on device
[2021-10-21 06:24:49] ffmpeg.Rumpus.record ERROR : [segment @ 0x5649cdf2cd00] Failure occurred when ending segment '/tmp/cache/Rumpus-20211021062439.ts'
[2021-10-21 06:24:49] ffmpeg.Rumpus.record ERROR : Error writing trailer of /tmp/cache/Rumpus-%Y%m%d%H%M%S.ts: No space left on device
[2021-10-21 06:24:49] watchdog.Rumpus INFO : Terminating the existing ffmpeg process...
[2021-10-21 06:24:49] watchdog.Rumpus INFO : Waiting for ffmpeg to exit gracefully...
root@frigate:/opt/frigate# df -h
Filesystem Size Used Avail Use% Mounted on
overlay 233G 15G 206G 7% /
tmpfs 64M 0 64M 0% /dev
shm 300M 11M 290M 4% /dev/shm
/dev/sda2 233G 15G 206G 7% /labelmap.txt
192.168.30.8:/storage/frigate 1.8T 223G 1.6T 13% /media/frigate
tmpfs 1.0G 1.0G 0 100% /tmp/cache
tmpfs 7.7G 0 7.7G 0% /proc/asound
tmpfs 7.7G 0 7.7G 0% /proc/acpi
tmpfs 7.7G 0 7.7G 0% /sys/firmware
After restart
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2021-10-21 08:57:25] frigate.app INFO : Starting Frigate (0.9.2-25bb515)
Starting migrations
[2021-10-21 08:57:25] peewee_migrate INFO : Starting migrations
There is nothing to migrate
[2021-10-21 08:57:25] peewee_migrate INFO : There is nothing to migrate
[2021-10-21 08:57:25] frigate.mqtt INFO : MQTT connected
[2021-10-21 08:57:25] detector.coral INFO : Starting detection process: 216
[2021-10-21 08:57:25] frigate.app INFO : Output process started: 218
[2021-10-21 08:57:25] frigate.app INFO : Camera processor started for Driveway: 223
[2021-10-21 08:57:25] frigate.app INFO : Camera processor started for Entrance: 226
[2021-10-21 08:57:25] ws4py INFO : Using epoll
[2021-10-21 08:57:25] frigate.app INFO : Camera processor started for Rumpus: 228
[2021-10-21 08:57:25] frigate.edgetpu INFO : Attempting to load TPU as usb
[2021-10-21 08:57:25] frigate.app INFO : Camera processor started for Deck: 229
[2021-10-21 08:57:28] frigate.edgetpu INFO : TPU found
[2021-10-21 08:57:25] frigate.app INFO : Camera processor started for Laundry: 231
[2021-10-21 08:57:25] frigate.app INFO : Camera processor started for Balcony: 232
[2021-10-21 08:57:25] frigate.app INFO : Capture process started for Driveway: 234
[2021-10-21 08:57:25] frigate.app INFO : Capture process started for Entrance: 236
[2021-10-21 08:57:25] frigate.app INFO : Capture process started for Rumpus: 241
[2021-10-21 08:57:25] frigate.app INFO : Capture process started for Deck: 243
[2021-10-21 08:57:25] frigate.app INFO : Capture process started for Laundry: 246
[2021-10-21 08:57:25] frigate.app INFO : Capture process started for Balcony: 248
[2021-10-21 08:57:25] ws4py INFO : Using epoll
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 15652170, current: 15652170; changing to 15652171. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 15832170, current: 15832170; changing to 15832171. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Driveway.record ERROR : [segment @ 0x559c81bf3ac0] Non-monotonous DTS in output stream 0:0; previous: 3596400, current: 3596400; changing to 3596401. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 16011360, current: 16011360; changing to 16011361. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 16191720, current: 16191720; changing to 16191721. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 16371000, current: 16371000; changing to 16371001. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 16551630, current: 16551630; changing to 16551631. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 16732260, current: 16732260; changing to 16732261. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 16911270, current: 16911270; changing to 16911271. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 17271360, current: 17271360; changing to 17271361. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 17450460, current: 17450460; changing to 17450461. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 17631540, current: 17631540; changing to 17631541. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 17811270, current: 17811270; changing to 17811271. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 18351000, current: 18351000; changing to 18351001. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 18531180, current: 18531180; changing to 18531181. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 18891450, current: 18891450; changing to 18891451. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 19250460, current: 19250460; changing to 19250461. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 19610730, current: 19610730; changing to 19610731. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 19790280, current: 19790280; changing to 19790281. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 19969830, current: 19969830; changing to 19969831. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 20331180, current: 20331180; changing to 20331181. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 20689290, current: 20689290; changing to 20689291. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 21228570, current: 21228570; changing to 21228571. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 21408930, current: 21408930; changing to 21408931. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 22309650, current: 22309650; changing to 22309651. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 22489650, current: 22489650; changing to 22489651. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 23029650, current: 23029650; changing to 23029651. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 23211090, current: 23211090; changing to 23211091. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 23389560, current: 23389560; changing to 23389561. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 23570190, current: 23570190; changing to 23570191. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 24648750, current: 24648750; changing to 24648751. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 24829200, current: 24829200; changing to 24829201. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 25009560, current: 25009560; changing to 25009561. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 25187940, current: 25187940; changing to 25187941. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 25549380, current: 25549380; changing to 25549381. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 25907850, current: 25907850; changing to 25907851. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 26628300, current: 26628300; changing to 26628301. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 27348120, current: 27348120; changing to 27348121. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 28248840, current: 28248840; changing to 28248841. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 28427400, current: 28427400; changing to 28427401. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 28787040, current: 28787040; changing to 28787041. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 28967490, current: 28967490; changing to 28967491. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 29328480, current: 29328480; changing to 29328481. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 29506950, current: 29506950; changing to 29506951. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 29686770, current: 29686770; changing to 29686771. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 30046950, current: 30046950; changing to 30046951. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 30408120, current: 30408120; changing to 30408121. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 30947130, current: 30947130; changing to 30947131. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 31127220, current: 31127220; changing to 31127221. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 31307400, current: 31307400; changing to 31307401. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 31846680, current: 31846680; changing to 31846681. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 32026590, current: 32026590; changing to 32026591. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 32206950, current: 32206950; changing to 32206951. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 32385960, current: 32385960; changing to 32385961. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 32926410, current: 32926410; changing to 32926411. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 33106050, current: 33106050; changing to 33106051. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 33646410, current: 33646410; changing to 33646411. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 33826320, current: 33826320; changing to 33826321. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 34006050, current: 34006050; changing to 34006051. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 34186950, current: 34186950; changing to 34186951. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 34544880, current: 34544880; changing to 34544881. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 34905510, current: 34905510; changing to 34905511. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 35446590, current: 35446590; changing to 35446591. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 35625690, current: 35625690; changing to 35625691. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 35806860, current: 35806860; changing to 35806861. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 35985510, current: 35985510; changing to 35985511. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 37965780, current: 37965780; changing to 37965781. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 38144970, current: 38144970; changing to 38144971. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 38504700, current: 38504700; changing to 38504701. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 38684700, current: 38684700; changing to 38684701. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 39224340, current: 39224340; changing to 39224341. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 39404250, current: 39404250; changing to 39404251. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 39586050, current: 39586050; changing to 39586051. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 40125240, current: 40125240; changing to 40125241. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 40305150, current: 40305150; changing to 40305151. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 40484160, current: 40484160; changing to 40484161. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 40842810, current: 40842810; changing to 40842811. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 41203350, current: 41203350; changing to 41203351. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 41383980, current: 41383980; changing to 41383981. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Laundry.record ERROR : [segment @ 0x55c74fe78a80] Non-monotonous DTS in output stream 0:0; previous: 21953880, current: 21953880; changing to 21953881. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Laundry.record ERROR : [segment @ 0x55c74fe78a80] Non-monotonous DTS in output stream 0:0; previous: 22133700, current: 22133700; changing to 22133701. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Laundry.record ERROR : [segment @ 0x55c74fe78a80] Non-monotonous DTS in output stream 0:0; previous: 22313250, current: 22313250; changing to 22313251. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Laundry.record ERROR : [segment @ 0x55c74fe78a80] Non-monotonous DTS in output stream 0:0; previous: 23031810, current: 23031810; changing to 23031811. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Laundry.record ERROR : [segment @ 0x55c74fe78a80] Non-monotonous DTS in output stream 0:0; previous: 23212530, current: 23212530; changing to 23212531. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Laundry.record ERROR : [segment @ 0x55c74fe78a80] Non-monotonous DTS in output stream 0:0; previous: 23392890, current: 23392890; changing to 23392891. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 41562900, current: 41562900; changing to 41562901. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 41742720, current: 41742720; changing to 41742721. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 41923890, current: 41923890; changing to 41923891. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 42104250, current: 42104250; changing to 42104251. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 42282360, current: 42282360; changing to 42282361. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 42642630, current: 42642630; changing to 42642631. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 42823620, current: 42823620; changing to 42823621. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 43003170, current: 43003170; changing to 43003171. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 43182630, current: 43182630; changing to 43182631. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 44083170, current: 44083170; changing to 44083171. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 44803080, current: 44803080; changing to 44803081. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 44981820, current: 44981820; changing to 44981821. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 45343080, current: 45343080; changing to 45343081. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 45522900, current: 45522900; changing to 45522901. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 45703710, current: 45703710; changing to 45703711. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 45882990, current: 45882990; changing to 45882991. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 46241280, current: 46241280; changing to 46241281. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 46422180, current: 46422180; changing to 46422181. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Non-monotonous DTS in output stream 0:0; previous: 46602450, current: 46602450; changing to 46602451. This may result in incorrect timestamps in the output file.
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : av_interleaved_write_frame(): No space left on device
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : [segment @ 0x55be355a6f80] Failure occurred when ending segment '/tmp/cache/Entrance-20211021090618.ts'
[2021-10-21 09:06:25] ffmpeg.Entrance.record ERROR : Error writing trailer of /tmp/cache/Entrance-%Y%m%d%H%M%S.ts: No space left on device
[2021-10-21 09:06:25] watchdog.Entrance INFO : Terminating the existing ffmpeg process...
[2021-10-21 09:06:25] watchdog.Entrance INFO : Waiting for ffmpeg to exit gracefully...
It's odd that you have multiple streams listed by ffmpeg like this. For some reason it isn't able to convert the .ts
file to .mp4
for you. Any chance you can send me one of the .ts
files in your /tmp/cache
folder? Also, can you post the ffprobe output of the stream you use for record?
Stream #0:0[0x100]: Video: h264 ([27][0][0][0] / 0x001B), yuv420p(progressive), 2560x1920, 90k tbr, 90k tbn, 180k tbc
Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 16000 Hz, mono, fltp, 64 kb/s
Stream #0:0[0x100]: Video: h264 ([27][0][0][0] / 0x001B), yuv420p(progressive), 2560x1920, 90k tbr, 90k tbn, 180k tbc
Stream #0:0[0x100]: Video: h264 ([27][0][0][0] / 0x001B), yuv420p(progressive), 2560x1920, 90k tbr, 90k tbn, 180k tbc
Also, can you get the output of ls -lah /tmp/cache
?
I'm not sure what the difference is, but someone sent me a RLC-511 for testing, so I might be able to reproduce this.
Just updated to 0.92 myself, and experiencing issues with my /tmp/cache filling up. 0.91 was running stable for over 2 weeks and the only thing that changed in my config was the version of frigate. Nothing special in my /tmp/cache other than files slowly piling up. Interestingly I do see files getting removed but over the course of probably an hour or so, it starts to fill up. I also run reolink cams. /tmp/cache is 1GB in total. output of ffprobe and ls -lah below.
root@86cdc0b35448:/tmp/cache# ffprobe underdeck_cam-20211020200049.ts
ffprobe version 4.3.1 Copyright (c) 2007-2020 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
configuration: --disable-debug --disable-doc --disable-ffplay --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gpl --enable-libfreetype --enable-libvidstab --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxcb --enable-libx265 --enable-libxvid --enable-libx264 --enable-nonfree --enable-openssl --enable-libfdk_aac --enable-postproc --enable-small --enable-version3 --enable-libzmq --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-libopenjpeg --enable-libkvazaar --enable-libaom --extra-libs=-lpthread --enable-rkmpp --enable-libdrm --enable-v4l2_m2m --enable-neon --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
Input #0, mpegts, from 'underdeck_cam-20211020200049.ts':
Duration: 00:00:09.91, start: 1.400000, bitrate: 8317 kb/s
Program 1
Metadata:
service_name : Stream
service_provider: FFmpeg
Stream #0:0[0x100]: Video: h264 ([27][0][0][0] / 0x001B), yuvj420p(pc, progressive), 2560x1440, 90k tbr, 90k tbn, 180k tbc
root@86cdc0b35448:/tmp/cache# ls -lah /tmp/cache
total 673M
drwxr-xr-x 2 root root 1.9K Oct 20 19:59 .
drwxrwxrwt 1 root root 4.0K Oct 20 12:23 ..
-rw-r--r-- 1 root root 8.3M Oct 20 19:56 back_porch_cam-20211020195630.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:56 back_porch_cam-20211020195640.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:57 back_porch_cam-20211020195650.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:57 back_porch_cam-20211020195700.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:57 back_porch_cam-20211020195710.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:57 back_porch_cam-20211020195720.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:57 back_porch_cam-20211020195730.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:57 back_porch_cam-20211020195740.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:58 back_porch_cam-20211020195750.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:58 back_porch_cam-20211020195800.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:58 back_porch_cam-20211020195810.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:58 back_porch_cam-20211020195820.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:58 back_porch_cam-20211020195830.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:58 back_porch_cam-20211020195840.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:59 back_porch_cam-20211020195850.ts
-rw-r--r-- 1 root root 4.8M Oct 20 19:59 back_porch_cam-20211020195900.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:56 backyard_cam-20211020195638.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:56 backyard_cam-20211020195648.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:57 backyard_cam-20211020195658.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:57 backyard_cam-20211020195708.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:57 backyard_cam-20211020195718.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:57 backyard_cam-20211020195728.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:57 backyard_cam-20211020195738.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:57 backyard_cam-20211020195748.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:58 backyard_cam-20211020195758.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:58 backyard_cam-20211020195808.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:58 backyard_cam-20211020195818.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:58 backyard_cam-20211020195828.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:58 backyard_cam-20211020195838.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:58 backyard_cam-20211020195848.ts
-rw-r--r-- 1 root root 6.0M Oct 20 19:59 backyard_cam-20211020195858.ts
-rw-r--r-- 1 root root 4.2M Oct 20 19:56 driveway_cam-20211020195638.ts
-rw-r--r-- 1 root root 4.2M Oct 20 19:56 driveway_cam-20211020195648.ts
-rw-r--r-- 1 root root 4.2M Oct 20 19:57 driveway_cam-20211020195658.ts
-rw-r--r-- 1 root root 4.2M Oct 20 19:57 driveway_cam-20211020195708.ts
-rw-r--r-- 1 root root 4.2M Oct 20 19:57 driveway_cam-20211020195718.ts
-rw-r--r-- 1 root root 4.2M Oct 20 19:57 driveway_cam-20211020195728.ts
-rw-r--r-- 1 root root 4.2M Oct 20 19:57 driveway_cam-20211020195738.ts
-rw-r--r-- 1 root root 4.2M Oct 20 19:57 driveway_cam-20211020195748.ts
-rw-r--r-- 1 root root 4.2M Oct 20 19:58 driveway_cam-20211020195758.ts
-rw-r--r-- 1 root root 4.2M Oct 20 19:58 driveway_cam-20211020195808.ts
-rw-r--r-- 1 root root 4.2M Oct 20 19:58 driveway_cam-20211020195818.ts
-rw-r--r-- 1 root root 4.2M Oct 20 19:58 driveway_cam-20211020195828.ts
-rw-r--r-- 1 root root 4.2M Oct 20 19:58 driveway_cam-20211020195838.ts
-rw-r--r-- 1 root root 4.2M Oct 20 19:58 driveway_cam-20211020195848.ts
-rw-r--r-- 1 root root 2.8M Oct 20 19:59 driveway_cam-20211020195858.ts
-rw-r--r-- 1 root root 7.5M Oct 20 19:56 front_door_cam-20211020195638.ts
-rw-r--r-- 1 root root 6.2M Oct 20 19:57 front_door_cam-20211020195650.ts
-rw-r--r-- 1 root root 6.2M Oct 20 19:57 front_door_cam-20211020195700.ts
-rw-r--r-- 1 root root 6.2M Oct 20 19:57 front_door_cam-20211020195710.ts
-rw-r--r-- 1 root root 6.2M Oct 20 19:57 front_door_cam-20211020195720.ts
-rw-r--r-- 1 root root 6.2M Oct 20 19:57 front_door_cam-20211020195730.ts
-rw-r--r-- 1 root root 6.2M Oct 20 19:57 front_door_cam-20211020195740.ts
-rw-r--r-- 1 root root 6.2M Oct 20 19:58 front_door_cam-20211020195750.ts
-rw-r--r-- 1 root root 6.2M Oct 20 19:58 front_door_cam-20211020195800.ts
-rw-r--r-- 1 root root 6.2M Oct 20 19:58 front_door_cam-20211020195810.ts
-rw-r--r-- 1 root root 6.2M Oct 20 19:58 front_door_cam-20211020195820.ts
-rw-r--r-- 1 root root 6.2M Oct 20 19:58 front_door_cam-20211020195830.ts
-rw-r--r-- 1 root root 6.2M Oct 20 19:58 front_door_cam-20211020195840.ts
-rw-r--r-- 1 root root 6.2M Oct 20 19:59 front_door_cam-20211020195850.ts
-rw-r--r-- 1 root root 3.5M Oct 20 19:59 front_door_cam-20211020195900.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:56 garage_cam-20211020195630.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:56 garage_cam-20211020195640.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:57 garage_cam-20211020195650.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:57 garage_cam-20211020195700.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:57 garage_cam-20211020195710.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:57 garage_cam-20211020195720.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:57 garage_cam-20211020195729.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:57 garage_cam-20211020195740.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:58 garage_cam-20211020195750.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:58 garage_cam-20211020195800.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:58 garage_cam-20211020195810.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:58 garage_cam-20211020195820.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:58 garage_cam-20211020195830.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:58 garage_cam-20211020195840.ts
-rw-r--r-- 1 root root 8.3M Oct 20 19:59 garage_cam-20211020195850.ts
-rw-r--r-- 1 root root 4.8M Oct 20 19:59 garage_cam-20211020195900.ts
-rw-r--r-- 1 root root 9.9M Oct 20 19:56 underdeck_cam-20211020195639.ts
-rw-r--r-- 1 root root 9.9M Oct 20 19:56 underdeck_cam-20211020195649.ts
-rw-r--r-- 1 root root 9.9M Oct 20 19:57 underdeck_cam-20211020195659.ts
-rw-r--r-- 1 root root 9.9M Oct 20 19:57 underdeck_cam-20211020195709.ts
-rw-r--r-- 1 root root 9.9M Oct 20 19:57 underdeck_cam-20211020195719.ts
-rw-r--r-- 1 root root 9.9M Oct 20 19:57 underdeck_cam-20211020195729.ts
-rw-r--r-- 1 root root 9.9M Oct 20 19:57 underdeck_cam-20211020195739.ts
-rw-r--r-- 1 root root 9.9M Oct 20 19:57 underdeck_cam-20211020195749.ts
-rw-r--r-- 1 root root 9.9M Oct 20 19:58 underdeck_cam-20211020195759.ts
-rw-r--r-- 1 root root 9.9M Oct 20 19:58 underdeck_cam-20211020195809.ts
-rw-r--r-- 1 root root 9.9M Oct 20 19:58 underdeck_cam-20211020195819.ts
-rw-r--r-- 1 root root 9.9M Oct 20 19:58 underdeck_cam-20211020195829.ts
-rw-r--r-- 1 root root 9.9M Oct 20 19:58 underdeck_cam-20211020195839.ts
-rw-r--r-- 1 root root 9.9M Oct 20 19:58 underdeck_cam-20211020195849.ts
-rw-r--r-- 1 root root 5.8M Oct 20 19:59 underdeck_cam-20211020195859.ts
@rhatguy what about your frigate logs?
Currently trying to reproduce this with my reolink RLC-511 and this config:
reolink:
ffmpeg:
input_args:
- -avoid_negative_ts
- make_zero
- -fflags
- nobuffer+genpts+discardcorrupt
- -flags
- low_delay
- -strict
- experimental
- -analyzeduration
- 1000M
- -probesize
- 1000M
- -rw_timeout
- "5000000"
inputs:
- path: http://192.168.2.187/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=
roles:
- detect
- path: http://192.168.2.187/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=
roles:
- record
detect:
width: 896
height: 672
fps: 5
record:
enabled: true
objects:
track:
- person
rtmp:
enabled: false
snapshots:
enabled: false
Sorry Blake, been tied up at work.
Changed my stack to 0.9.2 and before I'd collected all this, the tmpfs was full again!
File from tmp/cache here (for a couple hours)
@jasonpstokes any particular reason you aren't running the recommended settings for reolink? I just ran those with my camera overnight without any issues.
That .ts
file converted without an issue. Can you look for one that has a failure message like below, but isn't due to running out of disk space?
Unable to convert /tmp/cache/Laundry-20211021003339.ts to /media/frigate/recordings/2021-10/21/00/Laundry/33.39.mp4
Just grabbed the frigate logs from my system. Doesn't look terribly interesting. I can drop back to 0.91 and test if this happens there, but the only thing that changed on my setup between 0.91 and 0.92 was the frigate version. No other config changes.
[2021-10-21 07:52:17] frigate.app INFO : Capture process started for driveway_cam: 239 [2021-10-21 07:52:17] frigate.app INFO : Capture process started for backyard_cam: 242 [2021-10-21 07:52:17] frigate.app INFO : Capture process started for back_porch_cam: 247 [2021-10-21 07:52:17] frigate.app INFO : Capture process started for underdeck_cam: 254 [2021-10-21 07:52:17] ws4py INFO : Using epoll [2021-10-21 07:52:20] frigate.edgetpu INFO : TPU found [2021-10-21 08:18:37] ffmpeg.driveway_cam.record ERROR : av_interleaved_write_frame(): No space left on device [2021-10-21 08:18:37] ffmpeg.driveway_cam.record ERROR : [segment @ 0x556f9a5ff0] Failure occurred when ending segment '/tmp/cache/driveway_cam-20211021081829.ts' [2021-10-21 08:18:37] ffmpeg.driveway_cam.record ERROR : Error writing trailer of /tmp/cache/driveway_cam-%Y%m%d%H%M%S.ts: No space left on device [2021-10-21 08:18:37] watchdog.driveway_cam INFO : Terminating the existing ffmpeg process... [2021-10-21 08:18:37] watchdog.driveway_cam INFO : Waiting for ffmpeg to exit gracefully...
Dropped my system back to 0.9.1 and the issue doesn't appear to be happening anymore. After watching it for a while, my /tmp/cache stays <~10% utilization. Not sure if it has anything to do with it, but my reolinks are running through an rtsp-simple-server on another machine as thats the only way I've been able to keep them stable with frigate.
root@raspberrypi:/# cat /root/docker-compose.yml
version: "3.6"
services:
frigate:
container_name: frigate
restart: unless-stopped
privileged: true
image: blakeblackshear/frigate:0.9.1-aarch64
shm_size: '512mb'
devices:
- /dev/bus/usb:/dev/bus/usb
volumes:
- /etc/localtime:/etc/localtime:ro
- /config/config.yml:/config/config.yml:ro
- /storage:/media/frigate
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "5000:5000"
- "1935:1935" # RTMP feeds
environment:
FRIGATE_RTSP_PASSWORD: "password"
healthcheck:
test: ["CMD", "wget" , "-q", "-O-", "http://localhost:5000"]
interval: 30s
timeout: 10s
retries: 5
start_period: 3m
root@raspberrypi:/# cat /config/config.yml
mqtt:
host: <mqtthost>
user: <user>
password: <pass>
ffmpeg:
hwaccel_args: -c:v h264_v4l2m2m
output_args:
detect: -f rawvideo -pix_fmt yuv420p
record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an
detectors:
coral:
type: edgetpu
device: usb
detect:
width: 640
height: 480
fps: 5
record:
enabled: True
retain_days: 0
events:
pre_capture: 10
post_capture: 5
objects:
- person
retain:
default: 30
snapshots:
enabled: True
timestamp: False
bounding_box: True
crop: False
retain:
default: 30
cameras:
#front_door_cam
front_door_cam:
ffmpeg:
inputs:
- path: rtsp://10.1.1.1:8554/front_door_cam_sub
roles:
- detect
- rtmp
- path: rtsp://10.1.1.1:8554/front_door_cam_main
roles:
- record
detect:
width: 640
height: 480
fps: 4
motion:
mask: 137,193,303,143,431,114,640,132,640,0,0,0,0,260
objects:
mask: 137,193,303,143,431,114,640,132,640,0,0,0,0,260
track:
- person
@jasonpstokes any particular reason you aren't running the recommended settings for reolink? I just ran those with my camera overnight without any issues.
Valid question! As I'm running a different (upgraded?) camera model (520A) to most here with beta firmware, as part of this conversation here I've been trying different streams and FFmpeg options. So the above config is what I was running in 0.9.1, when you released 0.9.2. :-)
Switching back to the Reolink recommended and 0.9.2 fills tmpfs within a few minutes - every time. None of the files listed in the errors are present in tmpfs. Spent a few hours last night and again this morning trying different things, hoping it was something I'm doing, but it's the same config as 0.9.1! Sometimes, once tmpfs is full, Frigate will lock Docker up and I have to hard power off my Debian server to recover!!
I've also seen this issue in 0.9.2 (using the same config): 'No VA display found for device /dev/dri/renderD128.,'. But radeontop
shows the GPU is being used (and Frigate is only process that would use it).
PS as per my comment here, the detect resolution in the recommended settings are not correct/native for the Reolink path specified, plus I have issues if I use the quotation marks for the rw_timeout
value as a global setting.
I have now been running with the same arguments you posted for 12 hours without any issues with my Reolink. It's strange that the files leftover are not mentioned in the logs. Is /tmp/cache empty on startup? I can't imagine why it wouldn't be, but worth checking. I always have at most 2 files per camera in my cache directory. In the event a cache file fails to convert, it should be deleted anyway.
Yes /tmp/cache is empty on startup. Under 0.9.1 I can see one or two files per camera, using around 70Mb total.
re-pulled the image. On startup:
Filesystem Size Used Avail Use% Mounted on
overlay 233G 16G 205G 8% /
tmpfs 64M 0 64M 0% /dev
shm 300M 816K 300M 1% /dev/shm
/dev/sda2 233G 16G 205G 8% /labelmap.txt
192.168.30.8:/storage/frigate 1.8T 236G 1.6T 14% /media/frigate
tmpfs 1.0G 0 1.0G 0% /tmp/cache
tmpfs 7.7G 0 7.7G 0% /proc/asound
tmpfs 7.7G 0 7.7G 0% /proc/acpi
tmpfs 7.7G 0 7.7G 0% /sys/firmware
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2021-10-22 12:00:41] frigate.app INFO : Starting Frigate (0.9.2-25bb515)
Starting migrations
[2021-10-22 12:00:41] peewee_migrate INFO : Starting migrations
There is nothing to migrate
[2021-10-22 12:00:41] peewee_migrate INFO : There is nothing to migrate
[2021-10-22 12:00:41] frigate.mqtt INFO : MQTT connected
[2021-10-22 12:00:41] detector.coral INFO : Starting detection process: 217
[2021-10-22 12:00:41] frigate.app INFO : Output process started: 219
[2021-10-22 12:00:41] frigate.app INFO : Camera processor started for Driveway: 225
[2021-10-22 12:00:41] frigate.app INFO : Camera processor started for Entrance: 227
[2021-10-22 12:00:41] ws4py INFO : Using epoll
[2021-10-22 12:00:41] frigate.app INFO : Camera processor started for Rumpus: 229
[2021-10-22 12:00:41] frigate.app INFO : Camera processor started for Deck: 231
[2021-10-22 12:00:41] frigate.app INFO : Camera processor started for Laundry: 234
[2021-10-22 12:00:41] frigate.app INFO : Camera processor started for Balcony: 237
[2021-10-22 12:00:41] frigate.app INFO : Capture process started for Driveway: 242
[2021-10-22 12:00:41] frigate.app INFO : Capture process started for Entrance: 245
[2021-10-22 12:00:41] frigate.app INFO : Capture process started for Rumpus: 247
[2021-10-22 12:00:41] frigate.app INFO : Capture process started for Deck: 249
[2021-10-22 12:00:41] frigate.app INFO : Capture process started for Laundry: 253
[2021-10-22 12:00:41] frigate.app INFO : Capture process started for Balcony: 264
[2021-10-22 12:00:41] ws4py INFO : Using epoll
[2021-10-22 12:00:41] frigate.edgetpu INFO : Attempting to load TPU as usb
[2021-10-22 12:00:44] frigate.edgetpu INFO : TPU found
[2021-10-22 12:01:22] ws4py INFO : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:42738]
root@frigate:/opt/frigate# df -h
Filesystem Size Used Avail Use% Mounted on
overlay 233G 16G 205G 8% /
tmpfs 64M 0 64M 0% /dev
shm 300M 7.8M 293M 3% /dev/shm
/dev/sda2 233G 16G 205G 8% /labelmap.txt
192.168.30.8:/storage/frigate 1.8T 236G 1.6T 14% /media/frigate
tmpfs 1.0G 229M 796M 23% /tmp/cache
tmpfs 7.7G 0 7.7G 0% /proc/asound
tmpfs 7.7G 0 7.7G 0% /proc/acpi
tmpfs 7.7G 0 7.7G 0% /sys/firmware
root@frigate:/opt/frigate# ls -lh /tmp/cache
total 305M
-rw-r--r-- 1 root root 7.9M Oct 22 12:01 Balcony-20211022120144.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:02 Balcony-20211022120154.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:02 Balcony-20211022120204.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:02 Balcony-20211022120214.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:02 Balcony-20211022120234.ts
-rw-r--r-- 1 root root 7.8M Oct 22 12:02 Balcony-20211022120244.ts
-rw-r--r-- 1 root root 2.5M Oct 22 12:02 Balcony-20211022120254.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:01 Deck-20211022120143.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:02 Deck-20211022120153.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:02 Deck-20211022120203.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:02 Deck-20211022120213.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:02 Deck-20211022120223.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:02 Deck-20211022120243.ts
-rw-r--r-- 1 root root 3.0M Oct 22 12:02 Deck-20211022120253.ts
-rw-r--r-- 1 root root 6.3M Oct 22 12:01 Driveway-20211022120146.ts
-rw-r--r-- 1 root root 9.4M Oct 22 12:02 Driveway-20211022120154.ts
-rw-r--r-- 1 root root 6.3M Oct 22 12:02 Driveway-20211022120206.ts
-rw-r--r-- 1 root root 9.4M Oct 22 12:02 Driveway-20211022120214.ts
-rw-r--r-- 1 root root 9.4M Oct 22 12:02 Driveway-20211022120234.ts
-rw-r--r-- 1 root root 6.3M Oct 22 12:02 Driveway-20211022120246.ts
-rw-r--r-- 1 root root 2.5M Oct 22 12:02 Driveway-20211022120254.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:01 Entrance-20211022120144.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:02 Entrance-20211022120154.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:02 Entrance-20211022120204.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:02 Entrance-20211022120214.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:02 Entrance-20211022120224.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:02 Entrance-20211022120234.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:02 Entrance-20211022120244.ts
-rw-r--r-- 1 root root 2.8M Oct 22 12:02 Entrance-20211022120254.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:01 Laundry-20211022120144.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:02 Laundry-20211022120154.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:02 Laundry-20211022120204.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:02 Laundry-20211022120214.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:02 Laundry-20211022120234.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:02 Laundry-20211022120244.ts
-rw-r--r-- 1 root root 2.5M Oct 22 12:02 Laundry-20211022120254.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:01 Rumpus-20211022120145.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:02 Rumpus-20211022120155.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:02 Rumpus-20211022120205.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:02 Rumpus-20211022120215.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:02 Rumpus-20211022120235.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:02 Rumpus-20211022120245.ts
-rw-r--r-- 1 root root 2.5M Oct 22 12:02 Rumpus-20211022120255.ts
Continuing from above (kind of in real-time!), still no errors in the logs. but
root@frigate:/opt/frigate# df -h
Filesystem Size Used Avail Use% Mounted on
overlay 233G 16G 205G 8% /
tmpfs 64M 0 64M 0% /dev
shm 300M 7.8M 293M 3% /dev/shm
/dev/sda2 233G 16G 205G 8% /labelmap.txt
192.168.30.8:/storage/frigate 1.8T 237G 1.6T 14% /media/frigate
tmpfs 1.0G 738M 287M 72% /tmp/cache
tmpfs 7.7G 0 7.7G 0% /proc/asound
tmpfs 7.7G 0 7.7G 0% /proc/acpi
tmpfs 7.7G 0 7.7G 0% /sys/firmware
root@frigate:/opt/frigate# ls -lh /tmp/cache
total 795M
-rw-r--r-- 1 root root 7.9M Oct 22 12:04 Balcony-20211022120404.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:04 Balcony-20211022120414.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:04 Balcony-20211022120424.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:04 Balcony-20211022120434.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:04 Balcony-20211022120444.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:05 Balcony-20211022120454.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:05 Balcony-20211022120504.ts
-rw-r--r-- 1 root root 7.8M Oct 22 12:05 Balcony-20211022120514.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:05 Balcony-20211022120524.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:05 Balcony-20211022120534.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:05 Balcony-20211022120544.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:06 Balcony-20211022120554.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:06 Balcony-20211022120624.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:06 Balcony-20211022120634.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:06 Balcony-20211022120644.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:07 Balcony-20211022120654.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:07 Balcony-20211022120704.ts
-rw-r--r-- 1 root root 2.0M Oct 22 12:07 Balcony-20211022120714.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:04 Deck-20211022120403.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:04 Deck-20211022120413.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:04 Deck-20211022120423.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:04 Deck-20211022120433.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:04 Deck-20211022120443.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:05 Deck-20211022120453.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:05 Deck-20211022120503.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:05 Deck-20211022120513.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:05 Deck-20211022120523.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:05 Deck-20211022120533.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:05 Deck-20211022120543.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:06 Deck-20211022120553.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:06 Deck-20211022120633.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:06 Deck-20211022120643.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:07 Deck-20211022120653.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:07 Deck-20211022120703.ts
-rw-r--r-- 1 root root 2.8M Oct 22 12:07 Deck-20211022120713.ts
-rw-r--r-- 1 root root 9.4M Oct 22 12:04 Driveway-20211022120354.ts
-rw-r--r-- 1 root root 6.3M Oct 22 12:04 Driveway-20211022120406.ts
-rw-r--r-- 1 root root 9.4M Oct 22 12:04 Driveway-20211022120414.ts
-rw-r--r-- 1 root root 6.3M Oct 22 12:04 Driveway-20211022120426.ts
-rw-r--r-- 1 root root 9.4M Oct 22 12:04 Driveway-20211022120434.ts
-rw-r--r-- 1 root root 6.3M Oct 22 12:04 Driveway-20211022120446.ts
-rw-r--r-- 1 root root 9.4M Oct 22 12:05 Driveway-20211022120454.ts
-rw-r--r-- 1 root root 6.3M Oct 22 12:05 Driveway-20211022120506.ts
-rw-r--r-- 1 root root 9.4M Oct 22 12:05 Driveway-20211022120514.ts
-rw-r--r-- 1 root root 6.3M Oct 22 12:05 Driveway-20211022120526.ts
-rw-r--r-- 1 root root 9.4M Oct 22 12:05 Driveway-20211022120534.ts
-rw-r--r-- 1 root root 6.3M Oct 22 12:05 Driveway-20211022120546.ts
-rw-r--r-- 1 root root 9.4M Oct 22 12:06 Driveway-20211022120554.ts
-rw-r--r-- 1 root root 6.3M Oct 22 12:06 Driveway-20211022120626.ts
-rw-r--r-- 1 root root 9.4M Oct 22 12:06 Driveway-20211022120634.ts
-rw-r--r-- 1 root root 6.3M Oct 22 12:06 Driveway-20211022120646.ts
-rw-r--r-- 1 root root 9.4M Oct 22 12:07 Driveway-20211022120654.ts
-rw-r--r-- 1 root root 6.3M Oct 22 12:07 Driveway-20211022120706.ts
-rw-r--r-- 1 root root 2.0M Oct 22 12:07 Driveway-20211022120714.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:04 Entrance-20211022120404.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:04 Entrance-20211022120414.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:04 Entrance-20211022120424.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:04 Entrance-20211022120434.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:04 Entrance-20211022120444.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:05 Entrance-20211022120454.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:05 Entrance-20211022120504.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:05 Entrance-20211022120514.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:05 Entrance-20211022120524.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:05 Entrance-20211022120534.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:05 Entrance-20211022120544.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:06 Entrance-20211022120554.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:06 Entrance-20211022120634.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:06 Entrance-20211022120644.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:07 Entrance-20211022120654.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:07 Entrance-20211022120704.ts
-rw-r--r-- 1 root root 2.3M Oct 22 12:07 Entrance-20211022120714.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:04 Laundry-20211022120404.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:04 Laundry-20211022120414.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:04 Laundry-20211022120424.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:04 Laundry-20211022120434.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:04 Laundry-20211022120444.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:05 Laundry-20211022120454.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:05 Laundry-20211022120504.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:05 Laundry-20211022120514.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:05 Laundry-20211022120524.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:05 Laundry-20211022120534.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:05 Laundry-20211022120544.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:06 Laundry-20211022120554.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:06 Laundry-20211022120624.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:06 Laundry-20211022120634.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:06 Laundry-20211022120644.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:07 Laundry-20211022120654.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:07 Laundry-20211022120704.ts
-rw-r--r-- 1 root root 2.3M Oct 22 12:07 Laundry-20211022120714.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:04 Rumpus-20211022120404.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:04 Rumpus-20211022120414.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:04 Rumpus-20211022120425.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:04 Rumpus-20211022120434.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:04 Rumpus-20211022120445.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:05 Rumpus-20211022120454.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:05 Rumpus-20211022120504.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:05 Rumpus-20211022120514.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:05 Rumpus-20211022120524.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:05 Rumpus-20211022120534.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:05 Rumpus-20211022120544.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:06 Rumpus-20211022120624.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:06 Rumpus-20211022120634.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:06 Rumpus-20211022120644.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:07 Rumpus-20211022120654.ts
-rw-r--r-- 1 root root 7.9M Oct 22 12:07 Rumpus-20211022120704.ts
-rw-r--r-- 1 root root 1.5M Oct 22 12:07 Rumpus-20211022120714.ts
I wonder if there is some ffmpeg process still holding a handle on those files for some reason. Can you run ls -l /proc/*/fd/* | grep /tmp/cache/
in the container?
root@frigate:/opt/frigate# ls -l /proc/*/fd/* | grep /tmp/cache/
ls: cannot access '/proc/626/fd/255': No such file or directory
ls: cannot access '/proc/626/fd/3': No such file or directory
ls: cannot access '/proc/self/fd/255': No such file or directory
ls: cannot access '/proc/self/fd/3': No such file or directory
ls: cannot access '/proc/thread-self/fd/255': No such file or directory
ls: cannot access '/proc/thread-self/fd/3': No such file or directory
l-wx------ 1 root root 64 Oct 22 12:26 /proc/260/fd/4 -> /tmp/cache/Driveway-20211022122930.ts
l-wx------ 1 root root 64 Oct 22 12:26 /proc/272/fd/4 -> /tmp/cache/Deck-20211022122927.ts
l-wx------ 1 root root 64 Oct 22 12:26 /proc/274/fd/4 -> /tmp/cache/Balcony-20211022122928.ts
l-wx------ 1 root root 64 Oct 22 12:26 /proc/275/fd/4 -> /tmp/cache/Entrance-20211022122928.ts
l-wx------ 1 root root 64 Oct 22 12:26 /proc/278/fd/4 -> /tmp/cache/Rumpus-20211022122928.ts
l-wx------ 1 root root 64 Oct 22 12:26 /proc/286/fd/4 -> /tmp/cache/Laundry-20211022122928.ts
lr-x------ 1 root root 64 Oct 22 12:29 /proc/625/fd/3 -> /tmp/cache/Laundry-20211022122908.ts
I'm now running the container without hardware acceleration, but tmpfs is still filling up. (just maybe a bit slower)
I tried this as last time I stopped the container (just before tmpfs maxxed out) the graphics pipe had obviously crashed and I had to reboot the server to go back to 0.9.1.
It's like the thread that checks/moves files from the cache is just not running, but there isn't an error message. It's almost like it's hanging. Do you see any ffmpeg/ffprobe processes running in top
tied to the files in /tmp/cache?
only momentarily
I may just have to make a custom build with additional debug logging to see what is happening.
tmpfs is full now, and it's still trying to copy files to the media folder
I haven't seen any processes cleaning up, but something is being removed as I occasionally see the disk free increase.
root@frigate:/opt/frigate# df -h /tmp/cache
Filesystem Size Used Avail Use% Mounted on
tmpfs 1.0G 1020M 4.1M 100% /tmp/cache
root@frigate:/opt/frigate# df -h /tmp/cache
Filesystem Size Used Avail Use% Mounted on
tmpfs 1.0G 1021M 3.1M 100% /tmp/cache
root@frigate:/opt/frigate# df -h /tmp/cache
Filesystem Size Used Avail Use% Mounted on
tmpfs 1.0G 1016M 8.4M 100% /tmp/cache
root@frigate:/opt/frigate# df -h /tmp/cache
Filesystem Size Used Avail Use% Mounted on
tmpfs 1.0G 1017M 7.4M 100% /tmp/cache
root@frigate:/opt/frigate# df -h /tmp/cache
Filesystem Size Used Avail Use% Mounted on
tmpfs 1.0G 1019M 5.4M 100% /tmp/cache
root@frigate:/opt/frigate# df -h /tmp/cache
Filesystem Size Used Avail Use% Mounted on
tmpfs 1.0G 1010M 15M 99% /tmp/cache
Thanks for your persistence with this :-)
I added a bunch of logging to this build: blakeblackshear/frigate:cache-debug-7c88bf6-amd64
Make sure you enable debug for record:
logger:
default: info
logs:
frigate.record: debug
Not sure why it would be slow, but if the copy operation from /tmp/cache
to /media/frigate/recordings
is slower than the camera writes to that directory, it would explain it. There must be something about your video that makes ffmpeg process them slow. If that is indeed what is happening, you should be able to copy it out and run the same ffmpeg command to see more about what it's doing.
root@frigate:/tmp/cache# df -h
Filesystem Size Used Avail Use% Mounted on
overlay 233G 17G 204G 8% /
tmpfs 64M 0 64M 0% /dev
shm 300M 7.8M 293M 3% /dev/shm
/dev/sda2 233G 17G 204G 8% /labelmap.txt
192.168.30.8:/storage/frigate 1.8T 237G 1.6T 14% /media/frigate
tmpfs 1.0G 753M 272M 74% /tmp/cache
tmpfs 7.7G 0 7.7G 0% /proc/asound
tmpfs 7.7G 0 7.7G 0% /proc/acpi
tmpfs 7.7G 0 7.7G 0% /sys/firmware
root@frigate:/tmp/cache# ls
Balcony-20211022130835.ts Balcony-20211022131225.ts Deck-20211022131204.ts Driveway-20211022131137.ts Entrance-20211022131115.ts Laundry-20211022131055.ts Rumpus-20211022131025.ts
Balcony-20211022130845.ts Balcony-20211022131235.ts Deck-20211022131214.ts Driveway-20211022131145.ts Entrance-20211022131125.ts Laundry-20211022131105.ts Rumpus-20211022131035.ts
Balcony-20211022130855.ts Deck-20211022130834.ts Deck-20211022131224.ts Driveway-20211022131157.ts Entrance-20211022131135.ts Laundry-20211022131115.ts Rumpus-20211022131045.ts
Balcony-20211022131035.ts Deck-20211022130844.ts Deck-20211022131234.ts Driveway-20211022131205.ts Entrance-20211022131145.ts Laundry-20211022131125.ts Rumpus-20211022131055.ts
Balcony-20211022131045.ts Deck-20211022130854.ts Driveway-20211022130825.ts Driveway-20211022131217.ts Entrance-20211022131155.ts Laundry-20211022131135.ts Rumpus-20211022131105.ts
Balcony-20211022131055.ts Deck-20211022131034.ts Driveway-20211022130837.ts Driveway-20211022131225.ts Entrance-20211022131205.ts Laundry-20211022131145.ts Rumpus-20211022131115.ts
Balcony-20211022131105.ts Deck-20211022131044.ts Driveway-20211022130845.ts Driveway-20211022131237.ts Entrance-20211022131215.ts Laundry-20211022131155.ts Rumpus-20211022131125.ts
Balcony-20211022131115.ts Deck-20211022131054.ts Driveway-20211022131025.ts Entrance-20211022130835.ts Entrance-20211022131225.ts Laundry-20211022131205.ts Rumpus-20211022131135.ts
Balcony-20211022131125.ts Deck-20211022131104.ts Driveway-20211022131037.ts Entrance-20211022130845.ts Entrance-20211022131235.ts Laundry-20211022131215.ts Rumpus-20211022131145.ts
Balcony-20211022131135.ts Deck-20211022131114.ts Driveway-20211022131045.ts Entrance-20211022130855.ts Laundry-20211022130835.ts Laundry-20211022131225.ts Rumpus-20211022131155.ts
Balcony-20211022131145.ts Deck-20211022131124.ts Driveway-20211022131057.ts Entrance-20211022131035.ts Laundry-20211022130845.ts Laundry-20211022131235.ts Rumpus-20211022131205.ts
Balcony-20211022131155.ts Deck-20211022131134.ts Driveway-20211022131105.ts Entrance-20211022131045.ts Laundry-20211022130855.ts Rumpus-20211022130835.ts Rumpus-20211022131215.ts
Balcony-20211022131205.ts Deck-20211022131144.ts Driveway-20211022131117.ts Entrance-20211022131055.ts Laundry-20211022131035.ts Rumpus-20211022130845.ts Rumpus-20211022131225.ts
Balcony-20211022131215.ts Deck-20211022131154.ts Driveway-20211022131125.ts Entrance-20211022131105.ts Laundry-20211022131045.ts Rumpus-20211022130855.ts Rumpus-20211022131235.ts
It looks like the ffmpeg command to copy/convert the .ts file to .mp4 is taking long enough that it can't keep up. It's a straight copy command so there shouldn't be any conversion happening, but it must be enough overhead that it makes a difference compared the previous copy/delete operation. I assume the .ts file you posted earlier would be the same as these?
I'd assume so, but here's some more
https://drive.google.com/file/d/1oq-oT7Z0nmB8hU93bOXENRjUE5o0Xsfw/view?usp=sharing
(please let me know when you have so I can delete)
Got the zip.
See if this build fixes it: blakeblackshear/frigate:cache-debug-4bf61d6-amd64
Based on your compose, it looks like you are using a network drive at /media/frigate. Is that right?
Thanks, running now.
Yes, an nfs4 mounted NAS in Debian 11.
mount -t nfs4 192.168.30.8:/storage /mnt/nas
It's made a big difference, the files were (very) slowly increasing in number, up to about six or seven for each camera - and then suddenly a heap disappeared!
Let's see if it keeps up over time. I have an idea for a way I can tweak things if this works.
It crashed :-(
root@frigate:/opt/frigate# df -h
Filesystem Size Used Avail Use% Mounted on
overlay 233G 18G 203G 8% /
tmpfs 64M 0 64M 0% /dev
shm 300M 19M 282M 7% /dev/shm
/dev/sda2 233G 18G 203G 8% /labelmap.txt
192.168.30.8:/storage/frigate 1.8T 237G 1.6T 14% /media/frigate
tmpfs 1.0G 716M 309M 70% /tmp/cache
tmpfs 7.7G 0 7.7G 0% /proc/asound
tmpfs 7.7G 0 7.7G 0% /proc/acpi
tmpfs 7.7G 0 7.7G 0% /sys/firmware
root@frigate:/opt/frigate# ls -lh /tmp/cache
total 716M
-rw-r--r-- 1 root root 7.9M Oct 22 13:45 Balcony-20211022134513.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:45 Balcony-20211022134523.ts
-rw-r--r-- 1 root root 7.8M Oct 22 13:45 Balcony-20211022134533.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:45 Balcony-20211022134543.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:46 Balcony-20211022134553.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:46 Balcony-20211022134603.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:46 Balcony-20211022134613.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:46 Balcony-20211022134623.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:46 Balcony-20211022134633.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:46 Balcony-20211022134643.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:47 Balcony-20211022134653.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:47 Balcony-20211022134703.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:47 Balcony-20211022134713.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:47 Balcony-20211022134723.ts
-rw-r--r-- 1 root root 7.8M Oct 22 13:47 Balcony-20211022134733.ts
-rw-r--r-- 1 root root 7.0M Oct 22 13:47 Balcony-20211022134743.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:45 Deck-20211022134514.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:45 Deck-20211022134534.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:45 Deck-20211022134544.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:46 Deck-20211022134554.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:46 Deck-20211022134604.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:46 Deck-20211022134614.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:46 Deck-20211022134624.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:46 Deck-20211022134634.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:46 Deck-20211022134644.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:47 Deck-20211022134654.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:47 Deck-20211022134704.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:47 Deck-20211022134714.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:47 Deck-20211022134724.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:47 Deck-20211022134733.ts
-rw-r--r-- 1 root root 5.8M Oct 22 13:47 Deck-20211022134743.ts
-rw-r--r-- 1 root root 9.4M Oct 22 13:45 Driveway-20211022134504.ts
-rw-r--r-- 1 root root 6.3M Oct 22 13:45 Driveway-20211022134517.ts
-rw-r--r-- 1 root root 6.3M Oct 22 13:45 Driveway-20211022134536.ts
-rw-r--r-- 1 root root 9.4M Oct 22 13:45 Driveway-20211022134544.ts
-rw-r--r-- 1 root root 6.3M Oct 22 13:46 Driveway-20211022134556.ts
-rw-r--r-- 1 root root 9.4M Oct 22 13:46 Driveway-20211022134604.ts
-rw-r--r-- 1 root root 6.3M Oct 22 13:46 Driveway-20211022134616.ts
-rw-r--r-- 1 root root 9.4M Oct 22 13:46 Driveway-20211022134624.ts
-rw-r--r-- 1 root root 6.3M Oct 22 13:46 Driveway-20211022134636.ts
-rw-r--r-- 1 root root 9.4M Oct 22 13:46 Driveway-20211022134644.ts
-rw-r--r-- 1 root root 6.3M Oct 22 13:47 Driveway-20211022134656.ts
-rw-r--r-- 1 root root 9.4M Oct 22 13:47 Driveway-20211022134704.ts
-rw-r--r-- 1 root root 6.3M Oct 22 13:47 Driveway-20211022134716.ts
-rw-r--r-- 1 root root 9.4M Oct 22 13:47 Driveway-20211022134724.ts
-rw-r--r-- 1 root root 6.3M Oct 22 13:47 Driveway-20211022134736.ts
-rw-r--r-- 1 root root 5.0M Oct 22 13:47 Driveway-20211022134744.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:45 Entrance-20211022134514.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:45 Entrance-20211022134534.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:45 Entrance-20211022134544.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:46 Entrance-20211022134554.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:46 Entrance-20211022134604.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:46 Entrance-20211022134614.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:46 Entrance-20211022134624.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:46 Entrance-20211022134634.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:46 Entrance-20211022134644.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:47 Entrance-20211022134654.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:47 Entrance-20211022134704.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:47 Entrance-20211022134714.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:47 Entrance-20211022134724.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:47 Entrance-20211022134734.ts
-rw-r--r-- 1 root root 5.5M Oct 22 13:47 Entrance-20211022134744.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:45 Laundry-20211022134512.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:45 Laundry-20211022134522.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:45 Laundry-20211022134532.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:45 Laundry-20211022134542.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:46 Laundry-20211022134552.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:46 Laundry-20211022134602.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:46 Laundry-20211022134612.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:46 Laundry-20211022134622.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:46 Laundry-20211022134632.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:46 Laundry-20211022134642.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:47 Laundry-20211022134652.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:47 Laundry-20211022134702.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:47 Laundry-20211022134712.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:47 Laundry-20211022134722.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:47 Laundry-20211022134732.ts
-rw-r--r-- 1 root root 7.0M Oct 22 13:47 Laundry-20211022134742.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:45 Rumpus-20211022134513.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:45 Rumpus-20211022134533.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:45 Rumpus-20211022134543.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:46 Rumpus-20211022134553.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:46 Rumpus-20211022134603.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:46 Rumpus-20211022134613.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:46 Rumpus-20211022134623.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:46 Rumpus-20211022134633.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:46 Rumpus-20211022134643.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:47 Rumpus-20211022134653.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:47 Rumpus-20211022134703.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:47 Rumpus-20211022134713.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:47 Rumpus-20211022134723.ts
-rw-r--r-- 1 root root 7.9M Oct 22 13:47 Rumpus-20211022134733.ts
-rw-r--r-- 1 root root 6.3M Oct 22 13:47 Rumpus-20211022134743.ts
I was also seeing this, or something similar in 0.9.1. The cache was filling up with files, many of size 0, and 0 space was left in cache. It was taking closer to a day or two between restarts before this would happen, so I hadn't tried really looking into it until tonight. I had changed the ffmpeg segment time option from 10 to 600 seconds when I updated from 0.8.4 to 0.9.1, and after seeing the cache fill up and crash the first time, I increased my cache size to 3gb.
I pulled the dev build to see if I could add anything beyond what Jason is already providing, and reset my cache back to 1.5gb. With the segment time still at 600, I saw the issue once. Lots of unmoved files and a full cache. I changed my segment time back to 10 seconds and it's running now. I normally don't comment, but since the faststart flag wasn't added until 0.9.2, I thought it might be important to mention that I was seeing this in 0.9.1.
In 0.9.1, all that happened was a simple copy operation from the cache.
FYI that dev build has been running for two hours and it's looking good! Will report back tomorrow morning.
root@frigate:/opt/frigate# df -h
Filesystem Size Used Avail Use% Mounted on
overlay 233G 18G 203G 8% /
tmpfs 64M 0 64M 0% /dev
shm 300M 7.8M 293M 3% /dev/shm
/dev/sda2 233G 18G 203G 8% /labelmap.txt
192.168.30.8:/storage/frigate 1.8T 241G 1.6T 14% /media/frigate
tmpfs 1.0G 40M 985M 4% /tmp/cache
tmpfs 7.7G 0 7.7G 0% /proc/asound
tmpfs 7.7G 0 7.7G 0% /proc/acpi
tmpfs 7.7G 0 7.7G 0% /sys/firmware
root@frigate:/opt/frigate# ls -lh /tmp/cache
total 29M
-rw-r--r-- 1 root root 3.2M Oct 22 22:37 Balcony-20211022223741.ts
-rw-r--r-- 1 root root 1.0M Oct 22 22:37 Balcony-20211022223750.ts
-rw-r--r-- 1 root root 3.2M Oct 22 22:37 Deck-20211022223740.ts
-rw-r--r-- 1 root root 1.3M Oct 22 22:37 Deck-20211022223750.ts
-rw-r--r-- 1 root root 6.3M Oct 22 22:37 Driveway-20211022223741.ts
-rw-r--r-- 1 root root 2.3M Oct 22 22:37 Driveway-20211022223750.ts
-rw-r--r-- 1 root root 3.2M Oct 22 22:37 Entrance-20211022223741.ts
-rw-r--r-- 1 root root 1.0M Oct 22 22:37 Entrance-20211022223751.ts
-rw-r--r-- 1 root root 3.2M Oct 22 22:37 Laundry-20211022223742.ts
-rw-r--r-- 1 root root 768K Oct 22 22:37 Laundry-20211022223751.ts
-rw-r--r-- 1 root root 3.2M Oct 22 22:37 Rumpus-20211022223742.ts
-rw-r--r-- 1 root root 512K Oct 22 22:37 Rumpus-20211022223752.ts
Describe the bug Frigate has crashed again after a couple days running, throwing these errors for all cameras every 10 seconds.
Version of frigate 0.9.0-6c28613
Config file
Frigate stats (After restart, as Frigate's web ui was not responding)
Computer Hardware
Camera Info:
docker-compose.yml