Often get empty "New Event", zero length
- joseph85750
- Posts: 38
- Joined: Mon Aug 05, 2013 3:32 pm
Often get empty "New Event", zero length
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.
Anyone know what might be causing this?
Thanks!
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.
Anyone know what might be causing this?
Thanks!
"~heart~ Sticker" fixer:
http://microflush.org/stuff/stickers/heartFix.html
http://microflush.org/stuff/stickers/heartFix.html
Re: Often get empty "New Event", zero length
your /var/cache/zoneminder directory with the /events, /images and /temp folders has the correct ownership, permissions and exist?
- joseph85750
- Posts: 38
- Joined: Mon Aug 05, 2013 3:32 pm
Re: Often get empty "New Event", zero length
Yes, and the files are written there with no issue most of the time. I just get the above issue at random times.
"~heart~ Sticker" fixer:
http://microflush.org/stuff/stickers/heartFix.html
http://microflush.org/stuff/stickers/heartFix.html
Re: Often get empty "New Event", zero length
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!
Re: Often get empty "New Event", zero length
I am aware of several issues with saving events. I think you will find errors in your logs that will pinpoint the problem.
Re: Often get empty "New Event", zero length
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.
Could be a bad symlink from /usr/share/zoneminder/www/events to /var/cache/zoneminder/events, or permissions.
- joseph85750
- Posts: 38
- Joined: Mon Aug 05, 2013 3:32 pm
Re: Often get empty "New Event", zero length
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.
"~heart~ Sticker" fixer:
http://microflush.org/stuff/stickers/heartFix.html
http://microflush.org/stuff/stickers/heartFix.html
- joseph85750
- Posts: 38
- Joined: Mon Aug 05, 2013 3:32 pm
Re: Often get empty "New Event", zero length
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..
"~heart~ Sticker" fixer:
http://microflush.org/stuff/stickers/heartFix.html
http://microflush.org/stuff/stickers/heartFix.html
Re: Often get empty "New Event", zero length
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.
-
- Posts: 91
- Joined: Fri Nov 10, 2017 6:05 pm
Re: Often get empty "New Event", zero length
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.
- joseph85750
- Posts: 38
- Joined: Mon Aug 05, 2013 3:32 pm
Re: Often get empty "New Event", zero length
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.
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.
# cd /var/cache
# chmod -R 777 zoneminder
This morning, I saw the error again, immediately followed by a successful Event.
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.
"~heart~ Sticker" fixer:
http://microflush.org/stuff/stickers/heartFix.html
http://microflush.org/stuff/stickers/heartFix.html
Re: Often get empty "New Event", zero length
Fix Permissions
chown -R www-data:www-data /usr/share/zoneminder/
chown -R www-data:www-data /usr/share/zoneminder/
Re: Often get empty "New Event", zero length
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.....
- joseph85750
- Posts: 38
- Joined: Mon Aug 05, 2013 3:32 pm
Re: Often get empty "New Event", zero length
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.
"~heart~ Sticker" fixer:
http://microflush.org/stuff/stickers/heartFix.html
http://microflush.org/stuff/stickers/heartFix.html
- knight-of-ni
- Posts: 2406
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: Often get empty "New Event", zero length
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.
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/
All of these can be found at https://zoneminder.blogspot.com/