ZM 1.24.1 Ubuntu 9.10 No Events Being Stored
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
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
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!
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!
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.
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]
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.
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.
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
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