[Config Support]: Old recordings are not automatically deleted #20272
-
Describe the problem you are havingI have set up the recordings to be deleted after 3 days. However, they still exist and are not deleted. Version0.16.1-e664cb2 Frigate config filelogger:
default: info
mqtt:
enabled: true
host: mqtt_broker
port: 1883
topic_prefix: frigate
client_id: frigate
auth:
enabled: false
tls:
enabled: false
record:
enabled: true
retain:
days: 3
mode: all
detections:
pre_capture: 5
post_capture: 5
retain:
days: 3
mode: motion
detect:
enabled: true
width: 1920
height: 1080
fps: 5
objects:
track:
- person
- car
- bicycle
- motorcycle
snapshots:
enabled: true
timestamp: true
bounding_box: true
retain:
default: 3
ffmpeg:
global_args: -loglevel warning
hwaccel_args: preset-intel-qsv-h264
cameras:
parkplatz:
ffmpeg:
inputs:
- path:
rtsp://admin:[email protected]:554/livestream/11
roles:
- record
- path:
rtsp://admin:[email protected]:554/livestream/12
roles:
- detect
version: 0.16-0
semantic_search:
enabled: false
model_size: small
face_recognition:
enabled: true
model_size: small
lpr:
enabled: true
classification:
bird:
enabled: falseRelevant Frigate log outputProbably not relevant but here you can see the first few minutes after startup:
s6-rc: info: service s6rc-fdholder: starting
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service s6rc-fdholder successfully started
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service prepare: starting
s6-rc: info: service log-prepare: starting
s6-rc: info: service log-prepare successfully started
s6-rc: info: service nginx-log: starting
s6-rc: info: service go2rtc-log: starting
s6-rc: info: service frigate-log: starting
s6-rc: info: service certsync-log: starting
s6-rc: info: service go2rtc-log successfully started
s6-rc: info: service nginx-log successfully started
s6-rc: info: service frigate-log successfully started
s6-rc: info: service certsync-log successfully started
s6-rc: info: service prepare successfully started
s6-rc: info: service go2rtc: starting
s6-rc: info: service go2rtc successfully started
s6-rc: info: service go2rtc-healthcheck: starting
s6-rc: info: service frigate: starting
s6-rc: info: service go2rtc-healthcheck successfully started
s6-rc: info: service frigate successfully started
s6-rc: info: service nginx: starting
2025-09-29 21:27:08.191499932 [INFO] Starting NGINX...
2025-09-29 21:27:08.223355685 [INFO] No TLS certificate found. Generating a self signed certificate...
2025-09-29 21:27:08.762436477 [INFO] Preparing Frigate...
2025-09-29 21:27:09.670807747 [INFO] Preparing new go2rtc config...
2025-09-29 21:27:09.671622738 [INFO] Starting Frigate...
2025-09-29 21:27:10.535873246 [INFO] Starting go2rtc...
2025-09-29 21:27:10.741495265 21:27:10.741 INF go2rtc platform=linux/amd64 revision=fa580c5 version=1.9.9
2025-09-29 21:27:10.741539527 21:27:10.741 INF config path=/dev/shm/go2rtc.yaml
2025-09-29 21:27:10.743098806 21:27:10.742 INF [api] listen addr=:1984
2025-09-29 21:27:10.743103278 21:27:10.743 INF [rtsp] listen addr=:8554
2025-09-29 21:27:10.744399140 21:27:10.744 INF [webrtc] listen addr=:8555
2025-09-29 21:27:12.967209855 2025/09/29 21:27:12 [error] 204#204: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", subrequest: "/auth", upstream: "http://127.0.0.1:5001/auth", host: "127.0.0.1:5000"
2025-09-29 21:27:12.967223633 2025/09/29 21:27:12 [error] 204#204: *1 auth request unexpected status: 502 while sending to client, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", host: "127.0.0.1:5000"
s6-rc: info: service nginx successfully started
s6-rc: info: service certsync: starting
s6-rc: info: service certsync successfully started
s6-rc: info: service legacy-services: starting
2025-09-29 21:27:13.245711299 [INFO] Starting certsync...
s6-rc: info: service legacy-services successfully started
2025-09-29 21:27:13.671156666 2025/09/29 21:27:13 [error] 205#205: *3 connect() failed (111: Connection refused) while connecting to upstream, client: 172.18.0.1, server: , request: "GET /api/stats HTTP/1.1", subrequest: "/auth", upstream: "http://127.0.0.1:5001/auth", host: "localhost:5000"
2025-09-29 21:27:13.671165649 2025/09/29 21:27:13 [error] 205#205: *3 auth request unexpected status: 502 while sending to client, client: 172.18.0.1, server: , request: "GET /api/stats HTTP/1.1", host: "localhost:5000"
2025-09-29 21:27:18.037681393 2025/09/29 21:27:18 [error] 207#207: *5 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", subrequest: "/auth", upstream: "http://127.0.0.1:5001/auth", host: "127.0.0.1:5000"
2025-09-29 21:27:18.038291138 2025/09/29 21:27:18 [error] 207#207: *5 auth request unexpected status: 502 while sending to client, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", host: "127.0.0.1:5000"
2025-09-29 21:27:18.187730458 [INFO] Starting go2rtc healthcheck service...
2025-09-29 21:27:18.671164327 2025/09/29 21:27:18 [error] 217#217: *7 connect() failed (111: Connection refused) while connecting to upstream, client: 172.18.0.1, server: , request: "GET /api/stats HTTP/1.1", subrequest: "/auth", upstream: "http://127.0.0.1:5001/auth", host: "localhost:5000"
2025-09-29 21:27:18.671173278 2025/09/29 21:27:18 [error] 217#217: *7 auth request unexpected status: 502 while sending to client, client: 172.18.0.1, server: , request: "GET /api/stats HTTP/1.1", host: "localhost:5000"
2025-09-29 21:27:20.995239211 [2025-09-29 21:27:20] frigate.util.config INFO : Checking if frigate config needs migration...
2025-09-29 21:27:21.024307583 [2025-09-29 21:27:21] frigate.util.config INFO : frigate config does not need migration...
2025-09-29 21:27:21.106825715 [2025-09-29 21:27:21] frigate.app INFO : Starting Frigate (0.16.1-e664cb2)
2025-09-29 21:27:21.143668712 [2025-09-29 21:27:21] peewee_migrate.logs INFO : Starting migrations
2025-09-29 21:27:21.146842937 [2025-09-29 21:27:21] peewee_migrate.logs INFO : There is nothing to migrate
2025-09-29 21:27:21.212713186 [2025-09-29 21:27:21] frigate.app INFO : Recording process started: 391
2025-09-29 21:27:21.216429116 [2025-09-29 21:27:21] frigate.app INFO : Review process started: 404
2025-09-29 21:27:21.237324961 [2025-09-29 21:27:21] frigate.app INFO : go2rtc process pid: 128
2025-09-29 21:27:21.276050323 [2025-09-29 21:27:21] detector.cpu INFO : Starting detection process: 416
2025-09-29 21:27:21.281199428 [2025-09-29 21:27:21] frigate.detectors WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
2025-09-29 21:27:21.281681018 [2025-09-29 21:27:21] frigate.app INFO : Embedding process started: 419
2025-09-29 21:27:21.350670686 INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
2025-09-29 21:27:21.367716951 [2025-09-29 21:27:21] frigate.app INFO : Output process started: 454
2025-09-29 21:27:21.834181243 [2025-09-29 21:27:21] frigate.app INFO : Camera processor started for parkplatz: 477
2025-09-29 21:27:21.868607748 [2025-09-29 21:27:21] frigate.app INFO : Capture process started for parkplatz: 479
2025-09-29 21:27:22.239574365 [2025-09-29 21:27:22] frigate.api.fastapi_app INFO : Starting FastAPI app
2025-09-29 21:27:22.988897850 [2025-09-29 21:27:22] frigate.api.fastapi_app INFO : FastAPI started
2025-09-29 21:27:23.219987664 loading data from : /config/model_cache/facedet/landmarkdet.yaml
2025-09-29 21:27:25.160782551 INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
2025-09-29 21:28:50.601245992 172.18.0.1 - - [29/Sep/2025:21:28:50 +0200] "GET / HTTP/1.1" 200 2649 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:143.0) Gecko/20100101 Firefox/143.0" "-"
2025-09-29 21:28:51.102973878 172.18.0.1 - - [29/Sep/2025:21:28:51 +0200] "GET /images/apple-touch-icon.png HTTP/1.1" 200 4042 "http://localhost:5000/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:143.0) Gecko/20100101 Firefox/143.0" "-"
2025-09-29 21:28:51.196398250 172.18.0.1 - - [29/Sep/2025:21:28:51 +0200] "GET /api/config HTTP/1.1" 200 12991 "http://localhost:5000/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:143.0) Gecko/20100101 Firefox/143.0" "-"
2025-09-29 21:28:51.222901456 172.18.0.1 - - [29/Sep/2025:21:28:51 +0200] "GET /api/profile HTTP/1.1" 200 39 "http://localhost:5000/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:143.0) Gecko/20100101 Firefox/143.0" "-"
2025-09-29 21:28:51.234429125 172.18.0.1 - - [29/Sep/2025:21:28:51 +0200] "GET /api/profile HTTP/1.1" 200 39 "http://localhost:5000/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:143.0) Gecko/20100101 Firefox/143.0" "-"
2025-09-29 21:28:51.273322184 172.18.0.1 - - [29/Sep/2025:21:28:51 +0200] "GET /fonts/Inter-Regular.woff2 HTTP/1.1" 200 108488 "http://localhost:5000/assets/i18n-B4RQL4LC.css" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:143.0) Gecko/20100101 Firefox/143.0" "-"
2025-09-29 21:28:51.563569198 172.18.0.1 - - [29/Sep/2025:21:28:51 +0200] "GET /api/review?limit=10&severity=alert HTTP/1.1" 200 3612 "http://localhost:5000/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:143.0) Gecko/20100101 Firefox/143.0" "-"
2025-09-29 21:28:51.609651540 172.18.0.1 - - [29/Sep/2025:21:28:51 +0200] "GET /api/parkplatz/latest.webp?height=360&store=1&cache=1759173600 HTTP/1.1" 499 0 "http://localhost:5000/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:143.0) Gecko/20100101 Firefox/143.0" "-"
2025-09-29 21:28:51.807382204 172.18.0.1 - - [29/Sep/2025:21:28:51 +0200] "GET /api/parkplatz/latest.webp?height=357&store=1&cache=1759173600 HTTP/1.1" 200 14040 "http://localhost:5000/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:143.0) Gecko/20100101 Firefox/143.0" "-"
2025-09-29 21:28:51.978603187 172.18.0.1 - - [29/Sep/2025:21:28:51 +0200] "GET /api/parkplatz/latest.webp?height=357&cache=1759174131598 HTTP/1.1" 200 14028 "http://localhost:5000/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:143.0) Gecko/20100101 Firefox/143.0" "-"
2025-09-29 21:28:52.711613602 172.18.0.1 - - [29/Sep/2025:21:28:52 +0200] "GET /fonts/Inter-SemiBold.woff2 HTTP/1.1" 200 111588 "http://localhost:5000/assets/i18n-B4RQL4LC.css" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:143.0) Gecko/20100101 Firefox/143.0" "-"
2025-09-29 21:28:54.218392962 172.18.0.1 - - [29/Sep/2025:21:28:54 +0200] "GET /fonts/Inter-Medium.woff2 HTTP/1.1" 200 111380 "http://localhost:5000/assets/i18n-B4RQL4LC.css" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:143.0) Gecko/20100101 Firefox/143.0" "-"
2025-09-29 21:28:54.257354037 172.18.0.1 - - [29/Sep/2025:21:28:54 +0200] "GET /api/config HTTP/1.1" 200 12991 "http://localhost:5000/system" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:143.0) Gecko/20100101 Firefox/143.0" "-"Relevant go2rtc log outputnot sure where to find this.Frigate statsNo response Operating systemDebian Install methodDocker Compose docker-compose file or Docker CLI commandservices:
frigate:
container_name: frigate
image: ghcr.io/blakeblackshear/frigate:stable
restart: unless-stopped
privileged: true # required for hardware acceleration
shm_size: '512mb' # required for object detection
devices:
- /dev/bus/usb:/dev/bus/usb # required for USB Coral
- /dev/dri:/dev/dri # required for Intel QuickSync
volumes:
- /etc/localtime:/etc/localtime:ro
- ./config:/config
- /home/ubuntu/Documents/nvr:/media/frigate # path to store recordings and snapshots
- /home/ubuntu/Documents/nvr:/tmp/cache # path for temp files
ports:
- "5000:5000" # web interface
- "1935:1935" # RTMP server
networks:
- frigate-net
environment:
FRIGATE_TIMEZONE: "Europe/Berlin" # set to your timezone
networks:
frigate-net:
external: trueObject DetectorCPU (no coral) Screenshots of the Frigate UI's System metrics pages
Any other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Answered by
NickM-27
Sep 29, 2025
Replies: 1 comment 1 reply
-
|
Alerts have a default retention of 10 days and you didn't set that to 3 days in your config |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
code-creator-ai
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Alerts have a default retention of 10 days and you didn't set that to 3 days in your config