Problem adding storage
Posted: Fri Sep 06, 2019 10:52 am
Hi everyone
I’m here to ask for help.
I state that I am not very familiar with ubuntu but I am learning.
Hardware :
-Pentium G5400
-Asus PRIME H310M-C/CSM
-8Gb RAM
-SSD for boot and program
-HDD 2TB for data
-Intel EXPI9301CT for extra ethernet
-4x IPCAM020B from comelit
Software :
-Ubuntu 19.04
-Gnome 3.32.1
-Zoneminder 1.32.3
5 years ago i bought a NVR system with 4 cameras, recently the NVR recorder stop working. Because i have a pc that i don’t use, i add few part to it and i decide to use that like NVR.
I install Ubuntu, after that i install Zoneminder using the official guide following step by step the instruction.
In a day i figured out how to properly connect and view camera on Zoneminder and now it works fine; the program show correctly all four camera and the motions detect works great.
Now the next step is to save the data on the 2tb hdd, with have 2 partition one of 15 gb for the motion detect, and the remaining space for continuous record.
The 15 gb partition in sync with google drive to store on cloud the data, so if someone get in my house and steal the pc the events from motion detect are also on the cloud so I can get them from there.
/dev/sdb1 /media/nvr/DATA 2TB-15gb for continuous records
/dev/sdb2 /media/nvr/Cloud 15gb for motion detects events
All partition are ext4.
I try to follow the instruction of the official guide to set the new storage but it doesn’t work.
I follow the guide for both partition
sudo chown -R ww-data:ww-data /dev/sdb1
same for the second partition
and i add a file .conf in etc/zm/conf.d call myconf.conf which contain
ZM_DIR_EVENTS = /media/nvr/DATA
ZM_DIR_EVENTS = /media/nvr/Cloud
In Option -> Storage I set :
Name : Cloud
Path : /media/nvr/Cloud
Url :
Server : Remote/no specific server
Type : Local
Scheme : midium
StorageDoDelete : Yes
and the same for the other partition (with different path and name but with the same scheme)
In Option -> Storage diskspace say 0B of 0B so i think there is something wrong…
also in the Log there are 2 warning and 1 error for each partition :
ERR :
web_php
Path media/nvr/DATA does not exist
/user/share/zoneminder/www/index.php
WAR :
web_php
Cannot write to content dire (‘media/nvr/DATA; media/nvr/DATA’). check that these exist and are owned by the way account user
/user/share/zoneminder/www/index.php
WAR :
web_php
Storage::disk_usage_percent: path ‘media/nvr/DATA does not exist.
/user/share/zoneminder/www/index.php
The only think i sure is the existence of the path because if i put the path on the terminal it work.
I think the problem is the second part of “check that these exist and are owned by the way account user”.
But i don know i to figured out.
Someone have same ideas ?
Thanks
I’m here to ask for help.
I state that I am not very familiar with ubuntu but I am learning.
Hardware :
-Pentium G5400
-Asus PRIME H310M-C/CSM
-8Gb RAM
-SSD for boot and program
-HDD 2TB for data
-Intel EXPI9301CT for extra ethernet
-4x IPCAM020B from comelit
Software :
-Ubuntu 19.04
-Gnome 3.32.1
-Zoneminder 1.32.3
5 years ago i bought a NVR system with 4 cameras, recently the NVR recorder stop working. Because i have a pc that i don’t use, i add few part to it and i decide to use that like NVR.
I install Ubuntu, after that i install Zoneminder using the official guide following step by step the instruction.
In a day i figured out how to properly connect and view camera on Zoneminder and now it works fine; the program show correctly all four camera and the motions detect works great.
Now the next step is to save the data on the 2tb hdd, with have 2 partition one of 15 gb for the motion detect, and the remaining space for continuous record.
The 15 gb partition in sync with google drive to store on cloud the data, so if someone get in my house and steal the pc the events from motion detect are also on the cloud so I can get them from there.
/dev/sdb1 /media/nvr/DATA 2TB-15gb for continuous records
/dev/sdb2 /media/nvr/Cloud 15gb for motion detects events
All partition are ext4.
I try to follow the instruction of the official guide to set the new storage but it doesn’t work.
I follow the guide for both partition
sudo chown -R ww-data:ww-data /dev/sdb1
same for the second partition
and i add a file .conf in etc/zm/conf.d call myconf.conf which contain
ZM_DIR_EVENTS = /media/nvr/DATA
ZM_DIR_EVENTS = /media/nvr/Cloud
In Option -> Storage I set :
Name : Cloud
Path : /media/nvr/Cloud
Url :
Server : Remote/no specific server
Type : Local
Scheme : midium
StorageDoDelete : Yes
and the same for the other partition (with different path and name but with the same scheme)
In Option -> Storage diskspace say 0B of 0B so i think there is something wrong…
also in the Log there are 2 warning and 1 error for each partition :
ERR :
web_php
Path media/nvr/DATA does not exist
/user/share/zoneminder/www/index.php
WAR :
web_php
Cannot write to content dire (‘media/nvr/DATA; media/nvr/DATA’). check that these exist and are owned by the way account user
/user/share/zoneminder/www/index.php
WAR :
web_php
Storage::disk_usage_percent: path ‘media/nvr/DATA does not exist.
/user/share/zoneminder/www/index.php
The only think i sure is the existence of the path because if i put the path on the terminal it work.
I think the problem is the second part of “check that these exist and are owned by the way account user”.
But i don know i to figured out.
Someone have same ideas ?
Thanks