Page 1 of 1

Images not deleted when using filter Purge when disk full

Posted: Thu Feb 04, 2021 8:53 am
by kmg454
I am using a filter Purge when disk full, the filter is set to 50% and it works for many years. But after upgrading to version 1.35.16 the filter only clears the database entries but all the images still remain on disk. So Zoneminder is not recording anymore because when something is recorded the disk space reach always the 50% because all the older images are still on the disk and the filter is start and clears the database entries again. When i try to delete entries from the console screen it works so the permissions are OK

Re: Images not deleted when using filter Purge when disk full

Posted: Thu Feb 04, 2021 9:48 am
by dougmccrary
Recheck your filter. There may be some changes you need to make.

Re: Images not deleted when using filter Purge when disk full

Posted: Thu Feb 04, 2021 10:01 am
by kmg454
I checked the filter many times but can not find what is wrong.

It is set when disk percent is greater the 50 Purge all first 800 entries.

It is removing the entries but only from the database and not the images.

Re: Images not deleted when using filter Purge when disk full

Posted: Fri Feb 05, 2021 2:34 am
by dougmccrary
kmg454 wrote: Thu Feb 04, 2021 10:01 am
It is set when disk percent is greater the 50 Purge all first 800 entries.
Have you tried fewer than 800? That's a lot for one pass.
Any clues in zmfilter.log?

Re: Images not deleted when using filter Purge when disk full

Posted: Fri Feb 05, 2021 8:15 am
by kmg454
Just tried set to 200 entries but no difference. The entries are removed from the database but images still remains on disk

Re: Images not deleted when using filter Purge when disk full

Posted: Fri Feb 05, 2021 9:16 am
by dougmccrary
Emptied trash? (not sure what all you've done.)
How did you install, on what Linux system?
You speak of images - what all are you recording, and is anything being deleted from disk? Like .mp4 or just .jpg?

Re: Images not deleted when using filter Purge when disk full

Posted: Fri Feb 05, 2021 12:00 pm
by kmg454
The system is running on a Ubuntu 16.04 server for many years without any problem but after update to the 1.35.16 version the problem start.

Just tried to delete all the filters and setup them again, maybe this will help.

Re: Images not deleted when using filter Purge when disk full

Posted: Fri Feb 05, 2021 3:00 pm
by Magic919
Have you run zmaudit? Do you have fast deletes on?

Re: Images not deleted when using filter Purge when disk full

Posted: Sun Feb 07, 2021 5:32 pm
by bbunge
Older versions of Zoneminder ran zmaudit periodically to check and clean the database and stored events. While I have not done an update to an older running version of Zoneminder I do know that 1.35.x has RUN_AUDIT disabled by default. OPT_FAST_DELETE should be disabled.

You can clean out the old events by enabling RUN_AUDIT and waiting or you can run zmaudit.pl from a command terminal:
sudo /usr/bin/zmaudit.pl

Re: Images not deleted when using filter Purge when disk full

Posted: Mon Feb 08, 2021 8:11 am
by kmg454
.117947 zmaudit[4128].INF [main:199] [Auditing All Storage Areas]
Deleted 10 log table entries by time
Deleted 10 log table entries by time
Deleted 10 log table entries by time
Deleted 10 log table entries by time
Deleted 2 log table entries by time
Deleted 0 log table entries by time

This is also not deleting my images

But it seems renew all the the filters does the job