Page 2 of 2

Posted: Wed Jun 23, 2010 8:05 pm
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

Posted: Wed Jun 30, 2010 4:20 pm
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?

Posted: Wed Jun 30, 2010 5:52 pm
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!

Posted: Wed Jun 30, 2010 6:06 pm
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]

Posted: Wed Jun 30, 2010 6:09 pm
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.

Posted: Wed Jun 30, 2010 6:10 pm
by zoned
Cool, can you give some details, would be a huge help, already spent hours. Code examples?

Thanks!

Posted: Wed Jun 30, 2010 6:16 pm
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

Posted: Wed Jun 30, 2010 6:23 pm
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

Posted: Wed Jun 30, 2010 8:06 pm
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.

Posted: Mon Jul 12, 2010 5:46 pm
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.

Posted: Mon Jul 12, 2010 5:55 pm
by moorsey
no problem! Glad it's sorted