Events on DB issues ZM 1.30.4

Forum for questions and support relating to the 1.30.x releases only.
Locked
Litvakas
Posts: 7
Joined: Sun Jan 22, 2017 9:45 pm

Events on DB issues ZM 1.30.4

Post by Litvakas »

Hi,

A little bit of background - had some issues with disk space, when ZM events filled it up fully, I had to delete ZM events manually to clear it up. But i think that because i have deleted them manually in folder /var/cache/zoneminder/events and then recreating the folder itself I probably destroyed some symbolic links. Now ZM creates and saves events which i am able to see at ZM UI, but i cannot completely delete them. When i delete them in ZM UI they disappear and i see 0 events, but actual event files are still present in /var/cache/zoneminder/events and they are taking space, while in ZM UI i can see that there are 0 events, but disk load has not decreased either.

Moreover in logs i am receiving this error:
2018-01-29 14:05:03.661575 web_php 1543 ERR Cannot write to content dirs('events','images'). Check that these exist and are owned by the web account user /usr/share/zoneminder/www/index.php

My first though that this might have to do something with symbolic links, so i have tried this (http://zoneminder.readthedocs.io/en/sta ... untu-16-04):

chmod 740 /etc/zm/zm.conf
chown root:www-data /etc/zm/zm.conf
chown -R www-data:www-data /usr/share/zoneminder/

But this did not helped me, maybe you could suggest any ideas?

Thanks,
rockedge
Posts: 1198
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: Events on DB issues ZM 1.30.4

Post by rockedge »

have you forgotten this very important command?

Code: Select all

chown -R www-data:www-data /var/cache/zoneminder
/var/cache/zoneminder/events
/var/cache/zoneminder/images
/var/cache/zoneminder/temp
Litvakas
Posts: 7
Joined: Sun Jan 22, 2017 9:45 pm

Re: Events on DB issues ZM 1.30.4

Post by Litvakas »

Silly me... Highly thankful! Seems to have worked :)

Thanks,
rockedge
Posts: 1198
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: Events on DB issues ZM 1.30.4

Post by rockedge »

:D
Locked