Difficulty with sync_recordings and DB errors #12921
ediguidedog
started this conversation in
General
Replies: 1 comment 5 replies
-
Right, exactly as the error says there are too many recordings so it is not safe for Frigate to delete them. Honestly why not just delete everything including the DB to start over? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm having a bit of a clean up on my test box running V14.0 and I've deleted a few days worth of recordings (20GB or so) from the Media/recordings/folder.
I've also added sync_recordings: True into the config file and restarted.
The storage page is still showing the space as occupied and the logs show the following two entries
Deleting 11143 recording DB entries with missing files
Deleting 0.771089% of recordings DB entries, could be due to configuration error. Aborting...
Apart from that it's all working and new events are being created and I can manually delete them from the GUI.
IS this a known issue?
Update: I tried the same on another copy I have that was built from scratch (as opposed from being migrated from v12) and it works fine. The new working version was created with exactly the same dockercompose.yaml file and config.yml taken from the failing one. Leading me to believe both files are OK. Destroying and recreating the failing docker container makes no difference and it still gives the same errors on startup. It's really not that important and I'm happy to trash the whole thing and recreate as it seems to be an oddity with my DB but just wondered if its something you want to investigate.
Update2:
I think it's something to do with the number of deletions required. When I earlier said it worked on the other system that was when I deleted a few hundred files. I went back and deleted a similar number to my test box (10K plus) and I got the same error there
Beta Was this translation helpful? Give feedback.
All reactions