frigate: [Config Support]: snapshot retention not working

Describe the problem you are having

I’m sure there is an obvious answer to this but I’m all out of search terms to enlighten me…

I have snapshot retention set to 20 yet my media/frigate/clips folder is full of old snapshots from 2022

Version

0.11.1-2EADA21

Frigate config file

snapshots:
  enabled: True
  timestamp: False
  bounding_box: True
  crop: False
  retain:
    default: 20

Relevant log output

na

Frigate stats

No response

Operating system

HassOS

Install method

HassOS Addon

Coral version

M.2

Any other information that may be helpful

No response

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 18 (1 by maintainers)

Most upvoted comments

I had to step away from this for a bit for some work-related things but catching up:

I’ve deployed this tool as a CronJob in my Kubernetes cluster and gave it the same network-shared mount that the other container uses. It was able to successfully delete all of the files without a single problem. I have strong reasoning to believe it isn’t related to file permissions (as I can read & write without issues). I also exec’d into the frigate container and ran rm <filename> and it completes perfectly fine.

I think this clip cleanup routine in Frigate needs to be double checked and there needs to be additional debugging involved to raise awareness for when a clip fails to delete.

After letting my tool finish, these were the results:

image

That’s a lot of data just sitting around. I wonder how many other people have the same issue and are unaware because they haven’t checked or don’t see anything in the logs.