Disk filling up

Forum for questions and support relating to 1.33.x development only.
Locked
bignellrp
Posts: 19
Joined: Sun Dec 22, 2019 12:37 pm

Disk filling up

Post by bignellrp »

I tried -3 days and delete all events but the disk continues to fill up. I keep having to manually go and delete the events folders from the server. The filter finds events and seems to be clearing from the dB but I’m not sure it’s deleting them from the server.

I tried -1 days and it’s the same.
Attachments
ABEDBC50-70A2-4EF5-858F-CC5C0CD3CE1F.jpeg
ABEDBC50-70A2-4EF5-858F-CC5C0CD3CE1F.jpeg (422.13 KiB) Viewed 5023 times
lbm
Posts: 87
Joined: Mon Mar 26, 2018 7:44 pm

Re: Disk filling up

Post by lbm »

Is your question, why the disk fills up, or if the filter is not working ?

I have mine set to "-N day" NOT "-n days" , not sure if this makes a difference.
Secondly, I have mine set to "alarm frames, less than or equal to"

Image
bignellrp
Posts: 19
Joined: Sun Dec 22, 2019 12:37 pm

Re: Disk filling up

Post by bignellrp »

I tried day and days its still not deleting them from the disk so its filling up.

If i set to alarm frames i get zero matches.

Upgraded to 1.34 but still the same.

As you can see there are folders more than 3 days old containing events.

Could it be permissions? www-data
Attachments
2020-01-22 17_20_36-ZM - Event Filter.png
2020-01-22 17_20_36-ZM - Event Filter.png (51.06 KiB) Viewed 4992 times
bignellrp
Posts: 19
Joined: Sun Dec 22, 2019 12:37 pm

Re: Disk filling up

Post by bignellrp »

Ok, i think i may have solved this although its not tested until the 2 days go past.

I moved one of the cameras to different storage and noticed that after 2 days the delete seemed to be working.

The difference was the new storage folder had symlinks for the name of the camera

e.g

Kitchen -> /home/username/zm/events/7

In the original folder these were missing. I think i may have deleted them by mistake when i was manually clearing the old olds when my original filter didnt work.

When i had fixed the filter syntax the filter couldnt delete the old data and only cleared the db entry for the event.

I'll confirm after 2 days if indeed the problem is resolved.
User avatar
iconnor
Posts: 2862
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Disk filling up

Post by iconnor »

If the filter is only deleting the db entry then you have Options -> System -> OPT_FAST_DELETE checked. Uncheck it.

You probably do not want the filter to run concurrently.
The symlinks don't matter, they are for silly humans to use, ZM doesn't use them.
bignellrp
Posts: 19
Joined: Sun Dec 22, 2019 12:37 pm

Re: Disk filling up

Post by bignellrp »

I checked that checkbox and fast delete is not selected and if symlinks make no difference maybe I have a different issue.

Like I said the other storage areas seem to be working so I have moved to them for now. I will let you know how I get on after 2 days.

Ps I have unchecked run concurrently. Out of interest what does that do?
Attachments
D1A710E8-82E8-4DA1-96AB-C8DA545C4C7D.jpeg
D1A710E8-82E8-4DA1-96AB-C8DA545C4C7D.jpeg (332.51 KiB) Viewed 4956 times
Locked