no more events/images saved if I use a dedicated partition

Forum for questions and support relating to the 1.24.x releases only.
Locked
Ciano
Posts: 8
Joined: Fri Oct 17, 2008 1:31 pm

no more events/images saved if I use a dedicated partition

Post by Ciano »

Hi to all,

I'm running ZM 1.24.2 on an Ubuntu 10.04.3 "dedicated VM" installed from repository, with a couple of intellinet camera and everithing works fine except that if i try to use a dedicated storage (NAS with samba sharing) ZM cannot stop saving events/images.

i've tried to follow the instrution founded in the wiki at this address http://www.zoneminder.com/wiki/index.ph ... Hard_Drive ...and i've done some mess, but i can't understand where's the error.

i've mounted the shared storage, putting this line in my fstab:

Code: Select all

//sharing.address/sharename /media/netDsk4Rec smbfs credentials=/home/myUsr/.credentilsFile,uid=myUsr 0 0
after that i've created the 2 symbolic link as described in the wiki, and I think these are fine
(note that now i've resetted the original link to have ZM work fine again the one to consider are the _new one):

Code: Select all

lrwxrwxrwx 1 root root    28 2012-02-14 17:21 events -> /var/cache/zoneminder/events
lrwxrwxrwx 1 root root    24 2012-02-17 15:41 events_new -> /media/netDsk4Rec/events
lrwxrwxrwx 1 root root    28 2012-02-14 17:21 images -> /var/cache/zoneminder/images
lrwxrwxrwx 1 root root    24 2012-02-17 15:42 images_new -> /media/netDsk4Rec/images
but if I start ZM with this config it stops saving events.
So, first of all i've thought that was a permission problem, and i've checked them, and here is the thing that i can't understand.
Trying to make a "sudo chmod/chown" on the new events/images folders (the ones on the NAS) i didn't get any error, even with -v it tell's me everithing is ok, but checking the results with an "ls" i've seen that in real everithing reguarding the permissions/owners remain the same.
It seems that I can create files/folders on that storage but i cannot change their "proprieties".

I cannot understand where i've done the mess, but think that is a permission problem,so i'm here to serch for help/hints cause serching around i cannot find the information that i need (or i've found them but i haven't understood the right thing)

I'm not so skilled in linux system and in ZM (and also my english is not the best :lol: ), so i hope to have given all the information needed.

Thanks in advance for help
Last edited by Ciano on Mon Feb 20, 2012 9:00 am, edited 1 time in total.
zSeries
Posts: 30
Joined: Thu Aug 18, 2011 12:43 pm

Re: no more events/images saved if I use a dedicated partiti

Post by zSeries »

You may need

//sharing.address/sharename /media.....
Ciano
Posts: 8
Joined: Fri Oct 17, 2008 1:31 pm

Re: no more events/images saved if I use a dedicated partiti

Post by Ciano »

Sorry, probabily i've given a bad explanation, I'm already using //sharing.address/sharename in fstab

if i can give more infos, please tell me.


----------[UPDATE]----------


I've created a custom group in which i've inserted my user, and www-data (that checking the permission on /var/cache/zoneminder/images & events i think that is the one that needs the permission to write events/images) and tried to mount specifing GID=myCustomGroup, but with this config myUser (that's part of the custom groud) I don't have write permission on the mounted device, so I've "solved" the problem mounting the NAS sharing specifing UID=www-data and all works fine in ZM, however in this way i cannot manage the files in that partition from my VM through the GUI.

when i find a complete solution I'll post it here.
Locked