Often get empty "New Event", zero length

Forum for questions and support relating to the 1.30.x releases only.
Post Reply
User avatar
joseph85750
Posts: 35
Joined: Mon Aug 05, 2013 3:32 pm

Often get empty "New Event", zero length

Post by joseph85750 » Sun Mar 04, 2018 5:35 pm

I just set up Zoneminder 1.30.4 and everything seems to be working pretty good.
But I'll frequently get events: "New Event", which never get assigned an index/value, and has zero length. They seem to occur right before a legitimate event occurs, but often the legitimate event will never show up. I've attached a screenshot of the Events page as well as the log entries right at the time of this issue, which I think are related.

zm-empty-event.png
zm-empty-event.png (49.71 KiB) Viewed 2000 times

Anyone know what might be causing this?

Thanks!

rockedge
Posts: 1098
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA
Contact:

Re: Often get empty "New Event", zero length

Post by rockedge » Sun Mar 04, 2018 5:40 pm

your /var/cache/zoneminder directory with the /events, /images and /temp folders has the correct ownership, permissions and exist?

User avatar
joseph85750
Posts: 35
Joined: Mon Aug 05, 2013 3:32 pm

Re: Often get empty "New Event", zero length

Post by joseph85750 » Sun Mar 04, 2018 5:53 pm

Yes, and the files are written there with no issue most of the time. I just get the above issue at random times.

rockedge
Posts: 1098
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA
Contact:

Re: Often get empty "New Event", zero length

Post by rockedge » Sun Mar 04, 2018 7:03 pm

I have seen this error on occasion as well, at random times and mostly with Debian 9 installations, but in some Ubuntu variations also. I can not pinpoint the exact fix or if there even is one at the moment. I will see if I can create the error again!

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

Re: Often get empty "New Event", zero length

Post by iconnor » Sun Mar 04, 2018 7:40 pm

I am aware of several issues with saving events. I think you will find errors in your logs that will pinpoint the problem.

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

Re: Often get empty "New Event", zero length

Post by iconnor » Sun Mar 04, 2018 7:41 pm

Ah that was dumb of me, you showed the logs that show the problem.

Could be a bad symlink from /usr/share/zoneminder/www/events to /var/cache/zoneminder/events, or permissions.

User avatar
joseph85750
Posts: 35
Joined: Mon Aug 05, 2013 3:32 pm

Re: Often get empty "New Event", zero length

Post by joseph85750 » Sun Mar 04, 2018 9:50 pm

iconnor wrote:
Sun Mar 04, 2018 7:41 pm
Ah that was dumb of me, you showed the logs that show the problem.

Could be a bad symlink from /usr/share/zoneminder/www/events to /var/cache/zoneminder/events, or permissions.
If it was a directory permission issue, wouldn't it always fail? The fact that it usually works fine, but then-- usually when there are no existing events already listed-- it will occur. Then, the next events will create images normally.
Not sure how it could be a permission issue based on this observation.

User avatar
joseph85750
Posts: 35
Joined: Mon Aug 05, 2013 3:32 pm

Re: Often get empty "New Event", zero length

Post by joseph85750 » Sun Mar 04, 2018 9:54 pm

rockedge wrote:
Sun Mar 04, 2018 7:03 pm
I have seen this error on occasion as well, at random times and mostly with Debian 9 installations, but in some Ubuntu variations also. I can not pinpoint the exact fix or if there even is one at the moment. I will see if I can create the error again!
Interesting observation. Prior to this occurring, I was running on CentOS and never had this happen. I first saw it when I was trying to run Zoneminder on a Raspberry Pi (Debian). I just thought it was due to the fact that the RP didn't have enough horsepower, and would have this issue as well as a few others. But now I'm running on a laptop with more power, and this: Ubuntu 16.04.4 LTS (GNU/Linux 4.4.0-116-generic x86_64). Perhaps it is something with Debian based distros..

rockedge
Posts: 1098
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA
Contact:

Re: Often get empty "New Event", zero length

Post by rockedge » Mon Mar 05, 2018 1:23 am

with the Ubuntu based distros the error was a directory ownership / permissions issue. The Debian 9 installs run and stream but have these nagging small problems that do not show up in other OS-ZM combinations.

montagdude
Posts: 61
Joined: Fri Nov 10, 2017 6:05 pm

Re: Often get empty "New Event", zero length

Post by montagdude » Mon Mar 05, 2018 1:31 am

I get them sometimes here on Slackware 14.2, but only when ZoneMinder is being shut down just as an event is starting, which I think is expected. That doesn't sound like the issue you are experiencing.

User avatar
joseph85750
Posts: 35
Joined: Mon Aug 05, 2013 3:32 pm

Re: Often get empty "New Event", zero length

Post by joseph85750 » Mon Mar 05, 2018 4:27 pm

To test permissions, yesterday I did:

# cd /var/cache
# chmod -R 777 zoneminder

This morning, I saw the error again, immediately followed by a successful Event.

Zm-event-error.png
Zm-event-error.png (63.18 KiB) Viewed 1961 times

Is it possible that if the full directory doesn't exist when an event occurs, this error results? For example, the following is a directory where images for 2018.03.05 06:35:16 would get stored after the directory is created:

/var/cache/zoneminder/events/Back/18/03/05/06/35/16

Is there a different process which creates the directory? It seems the error doesn't occur if the full directory already exists.

bbunge
Posts: 2430
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Often get empty "New Event", zero length

Post by bbunge » Tue Mar 06, 2018 12:45 am

Fix Permissions

chown -R www-data:www-data /usr/share/zoneminder/

rockedge
Posts: 1098
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA
Contact:

Re: Often get empty "New Event", zero length

Post by rockedge » Tue Mar 06, 2018 1:08 am

it does appear that the /events directory is not writable at that moment....partition not mounted or some symlink problem between the monitor events as a name or as id #. I seem to recall not to long ago a thread dealing with something of that sort...... I am just throwing out some ideas.....

User avatar
joseph85750
Posts: 35
Joined: Mon Aug 05, 2013 3:32 pm

Re: Often get empty "New Event", zero length

Post by joseph85750 » Tue Mar 06, 2018 10:01 pm

bbunge wrote:
Tue Mar 06, 2018 12:45 am
Fix Permissions

chown -R www-data:www-data /usr/share/zoneminder/
Already determined it's not permissions, at least not on the directories mentioned, as mentioned earlier in the thread.
Also, please note, the Events get created just fine most of the time. It's just the very first image/event at a particular time seems to have the issue.

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

Re: Often get empty "New Event", zero length

Post by knight-of-ni » Thu Mar 08, 2018 3:49 pm

We need to get a better understanding of your complete setup.

Can you provide the following data?
- total number of active cameras in your system
- resolution and framerate of each camera
- what cpu is in the machine and what is the average system load?
- How big is your ramdisk /dev/shm and how full is it?
- verify max fps fields & analysis fields under each monitor config are blank for now.
- Please show an entire page of unedited, unfiltered log entries showing all events prior to and just after the error shows up.
- Describe the disk you are writing events to and its filesystem. Is this the local disk, an external drive, or network fileshare?

In another thread you mentioned you are using an older Dell laptop. Recommend you scan the entire disk for bad sectors. A failing disk can cause the symptoms you have described.
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/

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests