zoneminder - null events

Forum for questions and support relating to the 1.30.x releases only.
Post Reply
mattionline
Posts: 53
Joined: Thu Jun 18, 2015 7:27 pm
Location: AccountKiller
Contact:

zoneminder - null events

Post by mattionline » Thu Nov 10, 2016 2:28 pm

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]

mattionline
Posts: 53
Joined: Thu Jun 18, 2015 7:27 pm
Location: AccountKiller
Contact:

Re: zoneminder - null events

Post by mattionline » Thu Nov 10, 2016 2:44 pm

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

User avatar
knight-of-ni
Posts: 2228
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: zoneminder - null events

Post by knight-of-ni » Fri Nov 11, 2016 11:13 pm

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).
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/

mattionline
Posts: 53
Joined: Thu Jun 18, 2015 7:27 pm
Location: AccountKiller
Contact:

Re: zoneminder - null events

Post by mattionline » Sat Nov 12, 2016 9:28 am

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)

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests