Cleanup fails 3.1.13

Disk cleanup seems to fail after updating to server 3.1.13 and fills storage disk

Aug 13 00:13:02 cottage bc-server[3990501]: E(4/cam4): No free storage locations for new recordings!
Aug 13 00:13:02 cottage bc-server[3990501]: E(4/cam4): Cannot start recording!
Aug 13 00:13:04 cottage bc-server[3990501]: I(): Storage path /home/budg/NVR needs cleanup: 100.0% > 94.0%
Aug 13 00:13:04 cottage bc-server[3990501]: I(): Storage path /home/budg/NVR requires cleanup: 100.0% >= 94.0%
Aug 13 00:13:04 cottage bc-server[3990501]: I(): Storage path /home/budg/NVR needs cleanup: 100.0% > 94.0%
Aug 13 00:13:04 cottage bc-server[3990501]: I(): Starting optimized cleanup process
Aug 13 00:13:04 cottage bc-server[3990501]: I(): Initial storage usage: 100.0%
Aug 13 00:13:04 cottage bc-server[3990501]: I(): Target storage threshold: 93.0%
Aug 13 00:13:04 cottage bc-server[3990501]: I(): Processing batch of 176 files
Aug 13 00:13:04 cottage bc-server[3990501]: I(): No more files to delete, stopping cleanup
Aug 13 00:13:04 cottage bc-server[3990501]: I(): No files needed to be deleted
Aug 13 00:13:05 cottage bc-server[3990501]: I(): Optimized cleanup completed successfully
Aug 13 00:13:05 cottage bc-server[3990501]: E(1/cam1): No free storage locations for new recordings!

any ideas?

I had the same symptoms when my recording file storage on the disk became out of sync with the files the database expected to be there. When that happened I got the same symptoms in the log and my disk filled. I resolved it by deleting any recordings I didn’t want then used the following mysql command to purge the database records for the physically deleted files:

I use the commands:
mysql bluecherry
delete from Media where filepath like ‘/var/lib/bluecherry/recordings/2025/0x/yy%’;

After that was done, bluecherrydvr was properly managing disk space.

Missed the line where 0x is the month and yy is the day. If you want to clear out all file handles for a specific date you can just move the % up further in the string and drop the other match characters. you still need the ‘;’ after the % to close the mysql command.

Which distribution are you using? Are you willing to test the latest beta release?

Thanks ecalp_smot deleting the entries in the Media DB seems to have fixed the issue.

Curtis im runing debian bullseye, im more than happy to test the beta

Thanks Anthony

1 Like

You can try this package:

http://lizard.bluecherry.net/~curt/releases/3.1.14/1c4c91209a99747536e9787c653795696de323b1/bullseye/bluecherry_3.1.14_amd64.deb