Hi, looking for a quick and easy way to change storing to my NAS. I'm running ZM off of Debian/Linux 12 (Bookworm). I've managed to mount the SMB volume into files and make a camera point to the new NAS storage entry. In ZM Options, Storage, I've tried different combinations for the path and URL but events saving keeps reverting to local drive (var/cache/zoneminder/events). What am I doing wrong?
Tnx.
NAS Storage
Re: NAS Storage
Most likely it is permissions. Have you verified you can write to the NAS share?
What command are you using to mount the share?
What are the permissions on the share?
What command are you using to mount the share?
What are the permissions on the share?
Andy
o||||o
Ubuntu 22.04
ZM 1.36.33
E5-1650-v4 Xeon
16 GB RAM
6 cameras -> 54 FPS modect
o||||o
Ubuntu 22.04
ZM 1.36.33
E5-1650-v4 Xeon
16 GB RAM
6 cameras -> 54 FPS modect
Re: NAS Storage
I can write/save files onto the drive. Permissions on the folder in the nas are set to drwx---
Files browser gives me a location as:
/run/user/1000/gvfs/smb-share:server=dlbox.local,share=volume_1/zm
Files browser gives me a location as:
/run/user/1000/gvfs/smb-share:server=dlbox.local,share=volume_1/zm
Re: NAS Storage
SMB -- can cause trouble because the underlying file system/protocol mangles permissions in a very unhelpful way, or refuses to understand symbolic links.
The permissions d rwx --- --- means the user that owns the directory can enter the directory and read-write it.
No-one else can.
This may mean that the directory is owned by someone other than the ZM user -- i.e. no good
Try "ls -la" on the folder, to show the user/group information too. This might be instructive ...
Re: NAS Storage
I've given up on trying to connect my nas and instead connected a 1TB-USB drive to my machine running zoneminder. The mounting to Debian is easier (no smb to configure) and I installed Webmin to try and configure things using the gui (i'm not an advanced linux user).
In Zoneminder I added to add the new USB-drive as a new storage and once again it wrote all events to /var/cache/zonminder/events
I am not sure what to do inside Webmin as to create a new mount for zoneminder to chage it's event writing location.. I feel I am almost there..
In Zoneminder I added to add the new USB-drive as a new storage and once again it wrote all events to /var/cache/zonminder/events
I am not sure what to do inside Webmin as to create a new mount for zoneminder to chage it's event writing location.. I feel I am almost there..
-
- Posts: 1245
- Joined: Sat Aug 31, 2019 7:35 am
- Location: San Diego
Re: NAS Storage
Did you point the cameras at the new storage? The default is null, so you need to change it.
Re: NAS Storage
I finally got it to work using instructions here:
https://bkjaya.wordpress.com/2018/08/23 ... -computer/
I pointed the cameras at the new storage and the files are now showing up on the usb-drive. YaY! I probably have some more tweaking to do..
https://bkjaya.wordpress.com/2018/08/23 ... -computer/
I pointed the cameras at the new storage and the files are now showing up on the usb-drive. YaY! I probably have some more tweaking to do..
Re: NAS Storage
Spoke too soon, my USB-drive doesnt always mount after reboot..
-
- Posts: 1245
- Joined: Sat Aug 31, 2019 7:35 am
- Location: San Diego
Re: NAS Storage
If you aren't, use mount by uuid.