Images not deleted when using filter Purge when disk full
Images not deleted when using filter Purge when disk full
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
-
- Posts: 1336
- Joined: Sat Aug 31, 2019 7:35 am
- Location: San Diego
Re: Images not deleted when using filter Purge when disk full
Recheck your filter. There may be some changes you need to make.
Re: Images not deleted when using filter Purge when disk full
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.
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.
-
- Posts: 1336
- Joined: Sat Aug 31, 2019 7:35 am
- Location: San Diego
Re: Images not deleted when using filter Purge when disk full
Just tried set to 200 entries but no difference. The entries are removed from the database but images still remains on disk
-
- Posts: 1336
- Joined: Sat Aug 31, 2019 7:35 am
- Location: San Diego
Re: Images not deleted when using filter Purge when disk full
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?
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
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.
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
Have you run zmaudit? Do you have fast deletes on?
-
Re: Images not deleted when using filter Purge when disk full
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
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
.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
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