Images not deleted when using filter Purge when disk full

Previous development branch now released as 1.36
Locked
kmg454
Posts: 58
Joined: Tue Apr 11, 2017 7:43 am

Images not deleted when using filter Purge when disk full

Post 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
dougmccrary
Posts: 1210
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

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

Post by dougmccrary »

Recheck your filter. There may be some changes you need to make.
kmg454
Posts: 58
Joined: Tue Apr 11, 2017 7:43 am

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

Post 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.
dougmccrary
Posts: 1210
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

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

Post 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?
kmg454
Posts: 58
Joined: Tue Apr 11, 2017 7:43 am

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

Post by kmg454 »

Just tried set to 200 entries but no difference. The entries are removed from the database but images still remains on disk
dougmccrary
Posts: 1210
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

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

Post 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?
kmg454
Posts: 58
Joined: Tue Apr 11, 2017 7:43 am

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

Post 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.
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

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

Post by Magic919 »

Have you run zmaudit? Do you have fast deletes on?
-
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

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

Post 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
kmg454
Posts: 58
Joined: Tue Apr 11, 2017 7:43 am

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

Post 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
Locked