Update Diskspace for events

Previous development branch now released as 1.36
Locked
Cramac1
Posts: 111
Joined: Wed Aug 29, 2018 11:29 am

Update Diskspace for events

Post by Cramac1 »

Hello.
there are three servers, updated to the latest version. And on one server it stopped updating the size of the recording file.
Where to look?
events.png
events.png (241.45 KiB) Viewed 7946 times
User avatar
iconnor
Posts: 2881
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Update Diskspace for events

Post by iconnor »

The logs?
Cramac1
Posts: 111
Joined: Wed Aug 29, 2018 11:29 am

Re: Update Diskspace for events

Post by Cramac1 »

the log is empty. Tell me who is responsible for this, otherwise they made edits to the zmaudit and zmfilter
Cramac1
Posts: 111
Joined: Wed Aug 29, 2018 11:29 am

Re: Update Diskspace for events

Post by Cramac1 »

update to 1.35.6~20200925151411-bionic

everything is back
goatman64
Posts: 31
Joined: Wed Oct 21, 2015 7:41 pm

Re: Update Diskspace for events

Post by goatman64 »

I had a similar problem and updated to the most current 1.35.6 without resolution. I updated to 1.35.7 and still have the same issue. What am I missing here? There are two filters in the standard build ... PurgeWhenFull and UpdateDiskSpace. Why is there a filter to update disk space?
zm-filter-sql.PNG
zm-filter-sql.PNG (4.89 KiB) Viewed 7803 times
From the sql error you can see the where clause isn't correct.

(E.Archived = '0' and >= '95')

It is missing the Diskspace reference

??
User avatar
iconnor
Posts: 2881
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Update Diskspace for events

Post by iconnor »

I thought I fixed that several days ago. We are up to 1.35.8 now...
goatman64
Posts: 31
Joined: Wed Oct 21, 2015 7:41 pm

Re: Update Diskspace for events

Post by goatman64 »

Will apply 1.35.8 and test.

Thanks
goatman64
Posts: 31
Joined: Wed Oct 21, 2015 7:41 pm

Re: Update Diskspace for events

Post by goatman64 »

One more thing .. can you explain the relationship between the disk space metric and the UpdateDiskSpace filter?

Thanks
User avatar
iconnor
Posts: 2881
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Update Diskspace for events

Post by iconnor »

The Update Disk Space filter updates the db entry....

It is too resource intensive to constantly query the fs for this, so we do it once in the background.
goatman64
Posts: 31
Joined: Wed Oct 21, 2015 7:41 pm

Re: Update Diskspace for events

Post by goatman64 »

I jumped to 1.35.9 but continue to see no function from the purge filter. I enabled debug and ran the exposed sql. The events diskspace column is null.

Is it the diskspace filter that is supposed to update this column?

Any help appreciated
goatman64
Posts: 31
Joined: Wed Oct 21, 2015 7:41 pm

Re: Update Diskspace for events

Post by goatman64 »

I'm going to jump to Ubuntu 20.04 and redo my zoneminder install. Something is jacked in my filters.
martinvandiest
Posts: 2
Joined: Thu Mar 18, 2021 5:17 pm

Re: Update Diskspace for events

Post by martinvandiest »

Related?

v1.34.23

I have just resized my storage partition and it is reflected in fdisk but I need to tell zoneminder that the disk space has increased. Zoneminder still shows the pre-rezize value.

How do I get ZM to refresh that value?
dougmccrary
Posts: 1175
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Update Diskspace for events

Post by dougmccrary »

Rebooting seems to work here.
martinvandiest
Posts: 2
Joined: Thu Mar 18, 2021 5:17 pm

Re: Update Diskspace for events

Post by martinvandiest »

The partition change wasn't reflected with df, I neglected to resize2fs after rezizepart... that fixed it.
Locked