Page 1 of 1

zoneminder - null events

Posted: Thu Nov 10, 2016 2:28 pm
by mattionline
Hello,

currently none of my events are saved.
The name is always "New Event" with a duration of 00:00:00.

How is it possible to fix this?

Disk Space is free

root@homeserver:/var/cache/zoneminder# ls -la
total 20
drwxr-xr-x 5 www-data www-data 4096 Aug 5 18:07 .
drwxr-xr-x 16 root root 4096 Oct 25 21:21 ..
drwxr-xr-x 5 www-data www-data 4096 Aug 27 12:03 events
drwxr-xr-x 2 www-data www-data 4096 Jul 29 15:25 images
drwxr-xr-x 2 www-data www-data 4096 Sep 1 09:58 temp

Logs:

Nov 10 15:24:12 homeserver zma_m2[15681]: WAR [Error stat'ing events/2/16, may be fatal. error is Permission denied]
Nov 10 15:24:12 homeserver zma_m2[15681]: WAR [Error stat'ing events/2/16/11, may be fatal. error is Permission denied]
Nov 10 15:24:12 homeserver zma_m2[15681]: WAR [Error stat'ing events/2/16/11/10, may be fatal. error is Permission denied]
Nov 10 15:24:12 homeserver zma_m2[15681]: WAR [Error stat'ing events/2/16/11/10/15, may be fatal. error is Permission denied]
Nov 10 15:24:12 homeserver zma_m2[15681]: WAR [Error stat'ing events/2/16/11/10/15/24, may be fatal. error is Permission denied]
Nov 10 15:24:12 homeserver zma_m2[15681]: WAR [Error stat'ing events/2/16/11/10/15/24/03, may be fatal. error is Permission denied]
Nov 10 15:24:13 homeserver zma_m2[15681]: FAT [Can't symlink events/2/16/11/10/.26400 -> events/2/16/11/10/15/24/03: Permission denied]

Re: zoneminder - null events

Posted: Thu Nov 10, 2016 2:44 pm
by mattionline
Solution: (maybe someone needs this)

I figured out that somehow zoneminder was running two times.
When i stopped it with /etc/init.d/, with systemctl and also killed all processes from zoneminder i could start it again and now the events are getting saved correctly.

I have removed the autostart with update-rc.d and configured it with systemctl enable

Re: zoneminder - null events

Posted: Fri Nov 11, 2016 11:13 pm
by knight-of-ni
A specific answer is going to depend entirely on what distro you are running and where you installed zoneminder from.

Generally, if your machine is running systemd then you should have a zoneminder.service file. It is under /usr/lib/systemd/system/ on my centos machine, but the location may be different for different distros. This should be the only thing used to start/strop/restart zoneminder via the systemctl command. Try to avoid using the old service command even if you have it. If you do have a zoneminder service file, then you should not have a legacy zoneminder sys v init script under /etc/init.d. As you discovered that's asking for trouble. Verify the sys v init file is not a leftover from an older version of zoneminder. I'd delete it and just use the zoneminder.service file (assuming you have one).

Re: zoneminder - null events

Posted: Sat Nov 12, 2016 9:28 am
by mattionline
Thank you very much!

I have deleted the old init script /etc/init.d/zoneminder.
Now i just use systemctl (/lib/systemd/system/zoneminder.service)