ZM 1.24.1 Ubuntu 9.10 No Events Being Stored

Forum for questions and support relating to the 1.24.x releases only.
moorsey
Posts: 53
Joined: Sun Jan 03, 2010 8:56 am

Post by moorsey »

FYI, just fixed this here:

http://www.zoneminder.com/forums/viewtopic.php?p=62804

Many thanks to marcio

I had overlooked the permissions at the top level of my new drive and ran the following suggested by marcio:

chmod 777 /media/zoneminder
chmod 777 /media/zoneminder/zoneminder
chmod 777 /media/zoneminder/zoneminder/events

zoneminder is the name I gave the drive mounted in media and also the name of the folder which holds the events images and temp folders.

I have already ran that command on all of the events, but hadn't done so at a higher level
zoned
Posts: 10
Joined: Fri Jun 18, 2010 1:23 am

Post by zoned »

I am getting Signal 6 as well - events with no frames. Using network share for storage. Worked fine when files were local. Is there a definitive walkthrough for configuring ZM to capture events to a network share?
moorsey
Posts: 53
Joined: Sun Jan 03, 2010 8:56 am

Post by moorsey »

Am going to write mine up and get it on here ASAP.

Would recommend you just check your permissions on the network share, as above.

Zoneminder needs the right access, not just in the folder it is writing events to, but all the way to the top level, AFAIK

So, start at the folder your share is mounted to

chmod 777 /media/network_share

then any folder within that, done to the events folder

chmod 777 /media/network_share/zoneminder

chmod 777 /media/network_share/zoneminder/events

That worked for me!
zoned
Posts: 10
Joined: Fri Jun 18, 2010 1:23 am

Post by zoned »

Done. I am getting buffer overrun errors since I moved it to cifs/smbfs. It was working fine locally, but then I mapped /mnt/cam in fstab and updated the Options page with the new paths (images, audio and video). Also, I didn't move a database, not sure where that it is.

I tried lowering fps, quality, raising buffer, still same issues. Getting 0 frame events.

Code: Select all

Jun 30 14:02:47 intranet zma_m2[6384]: INF [Monitor-2: 179 - Gone into alarm state]
Jun 30 14:02:47 intranet zma_m2[6384]: INF [Got signal 6 (Aborted), exiting and forcing backtrace]
Jun 30 14:02:47 intranet zma_m2[6384]: INF [Backtrace complete, please execute the following command for more information]
Jun 30 14:02:47 intranet zma_m2[6384]: INF [addr2line -e /usr/local/bin/zma(__gxx_personality_v0+0x2ed) 0xb77e9424 0xb77e9424 0xb7202640 0xb7204018 0x8054ab8 0x805ab8d 0x806f299 0x804c012 0xb71ed455 0x804bcb1]
Jun 30 14:02:49 intranet zmc_m2[3374]: WAR [Buffer overrun at index 19, image 66939, slow down capture, speed up analysis or increase ring buffer size]
Jun 30 14:02:51 intranet zmc_m2[3374]: WAR [Buffer overrun at index 19, image 66979, slow down capture, speed up analysis or increase ring buffer size]
Jun 30 14:02:51 intranet zmc_m2[3374]: WAR [Last image read from shared memory 4 seconds ago, zma may have gone away]
moorsey
Posts: 53
Joined: Sun Jan 03, 2010 8:56 am

Post by moorsey »

The think not to do is change the paths at all in the config, put those back to what they were.

Instead, create symlinks where the events path etc used to be to point to your new share. That way, the config will look in the same place, but the symlinks will map across to the new location. Have read this in a few places, ZM doesn't seem to link having its config changed.
zoned
Posts: 10
Joined: Fri Jun 18, 2010 1:23 am

Post by zoned »

Cool, can you give some details, would be a huge help, already spent hours. Code examples?

Thanks!
moorsey
Posts: 53
Joined: Sun Jan 03, 2010 8:56 am

Post by moorsey »

Sure, for example:

ln -s /media/zoneminder/zoneminder/events /var/cache/zoneminder
ln -s /media/zoneminder/zoneminder/temp /var/cache/zoneminder
ln -s /media/zoneminder/zoneminder/images /var/cache/zoneminder

The original folders are in /var/cache/zoneminder (which I assume you already moved to your new share?) So when the folders are gone, run the above (replacing the media link of course) to map across. I moved all 3 folders, but only the events one is required really.

My alternative directory is /media/zoneminder/zoneminder, so just replace this with yours in the link above!

Hope that works
zoned
Posts: 10
Joined: Fri Jun 18, 2010 1:23 am

Post by zoned »

Hmmm... I have no /var/cache/zoneminder, and it looks like the previous directories were

/var/www/zm/events
/var/www/zm/images
/var/www/zm/sounds
moorsey
Posts: 53
Joined: Sun Jan 03, 2010 8:56 am

Post by moorsey »

I have nothing in /var/www, so I guess this depends on the distro. Where ever you moved the folders from to your share is where the symlinks should go. Just make sure the events folder is moved before creating the symlink.
zoned
Posts: 10
Joined: Fri Jun 18, 2010 1:23 am

Post by zoned »

I decided to rebuild using centos 5.5 x64 and put the events, images, tmp on an iscsi target, using your ln examples, and it works fine. Thanks for the help. If anyone wants details, feel free to ask / pm me.
moorsey
Posts: 53
Joined: Sun Jan 03, 2010 8:56 am

Post by moorsey »

no problem! Glad it's sorted
Locked