[Solved] New Storage issue

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
User avatar
swolsen
Posts: 31
Joined: Sat Mar 20, 2021 9:39 pm
Location: Schenectady, NY, USA

[Solved] New Storage issue

Post by swolsen »

Bought a 2TB hard drive, formatted it ext4, mounted it at /mnt/Storage_A, created folders /zoneminder/events. Cannot get ZoneMinder to access that area to store events.

web_php.log keeps posting

03/20/21 17:53:28.438922 web_php[7819].WAR [192.168.54.88] [Storage::disk_usage_percent: path /mnt/Storage_A/zoneminder/events does not exist] at /usr/share/zoneminder/www/includes/Storage.php line 74
03/20/21 17:53:28.512576 web_php[7819].ERR [192.168.54.88] [Path /mnt/Storage_A/zoneminder/events does not exist.] at /usr/share/zoneminder/www/includes/Storage.php line 112

owner and group are set to www-data with read/write and file create/delete for /mnt/Storage_A/zoneminder/events
Last edited by swolsen on Sun Apr 11, 2021 5:59 pm, edited 1 time in total.
User avatar
burger
Posts: 390
Joined: Mon May 11, 2020 4:32 pm

Re: New Storage issue

Post by burger »

There is no need to create the /zoneminder/events folder.

In fact, the paths don't look like that at all in custom storage (with default settings). See what one of my folders (/videos/One_10tb/) looks like:

Code: Select all

/videos/
├── One_10tb
│   ├── 10
│   │   ├── 2020-11-13
│   │   │   ├── 4263714
│   │   │   │   ├── 4263714-video.mp4
│   │   │   │   ├── alarm.jpg
│   │   │   │   └── snapshot.jpg
https://wiki.zoneminder.com/Using_a_ded ... Hard_Drive
fastest way to test streams:
ffmpeg -i rtsp://<user>:<pass>@<ipaddress>:554/path ./output.mp4 (if terminal only)
ffplay rtsp://<user>:<pass>@<ipaddress>:554/path (gui)
find paths on ispydb or in zm hcl

If you are new to security software, read:
https://wiki.zoneminder.com/Dummies_Guide
User avatar
swolsen
Posts: 31
Joined: Sat Mar 20, 2021 9:39 pm
Location: Schenectady, NY, USA

Re: New Storage issue

Post by swolsen »

Actually on my system ZoneMinder set the default events storage to be

/var/cache/zoneminder/events

owner = www-data with read/write and file create/delete access
group = www-data with read/write and file create/delete access

and that works.

I'm just trying to get it to point to a larger drive and that does not work.

Already used that method (Options -> Storage) to point to the larger drive and just get the errors of it not being there or permission denied.

Permission as I have stated is correct to that folder.

/mnt/Storage_A/zoneminder/events

owner = www-data with read/write and file create/delete access
group = www-data with read/write and file create/delete access
User avatar
swolsen
Posts: 31
Joined: Sat Mar 20, 2021 9:39 pm
Location: Schenectady, NY, USA

Re: New Storage issue

Post by swolsen »

Ok problem has been resolved. Although I had permissions correct on folders zoneminder and events I neglected to have read and execute on folder Storage_A for all
Post Reply