No such file or directory for events
-
- Posts: 6
- Joined: Sat Apr 11, 2020 11:10 pm
No such file or directory for events
Newbie here. I am trying to record events on a separate drive from my boot drive. I can navigate to the directory I am trying to store the events in from the terminal in ubuntu. In the ZM logs I get an error no such file or directory for the same storage path. Is there a permission issue if so would that come up in the log? Events store on my local drive no problem. ZM 1.34.9 on ubuntu server 18.04
Re: No such file or directory for events
Is your "separate drive" attached to your Zoneminder server or is it a NAS/remote device? Whichever it is you need to have the drive mounted in the file system with www-data permissions. If the drive is remote it needs to have a "nix" file system not NTFS or FAT.
I have been setting up systems with two drives. One small SSD for the OS and database and a large ( 1TB or more) conventional hard drive for event storage. On Ubuntu/Debian I do a manual drive setup, the SSD formatted to ext4 as "/" and the 1 TB formated to ext4 as /zmstore. Setting up this way mounts the 1 TB in the file system and I can add a storage directory (/zmstore/events) and assign ownership to www-data. Then it is easy to add the /zmstore/events to the Zoneminder storage.
If you have to mount a remote device I recommend using a systemd mount. See: https://wiki.zoneminder.com/Common_Issu ... ive_or_NAS
I have been setting up systems with two drives. One small SSD for the OS and database and a large ( 1TB or more) conventional hard drive for event storage. On Ubuntu/Debian I do a manual drive setup, the SSD formatted to ext4 as "/" and the 1 TB formated to ext4 as /zmstore. Setting up this way mounts the 1 TB in the file system and I can add a storage directory (/zmstore/events) and assign ownership to www-data. Then it is easy to add the /zmstore/events to the Zoneminder storage.
If you have to mount a remote device I recommend using a systemd mount. See: https://wiki.zoneminder.com/Common_Issu ... ive_or_NAS
-
- Posts: 6
- Joined: Sat Apr 11, 2020 11:10 pm
Re: No such file or directory for events
It is a separate drive connected to my server same setup as yours.
-
- Posts: 6
- Joined: Sat Apr 11, 2020 11:10 pm
Re: No such file or directory for events
Got it working with setup same as yours. I am using webmin, used that to chage directory permission because I don't know how to do it from terminal.