Cannot acces storage
Posted: Fri Dec 24, 2021 3:04 pm
Hello all,
Think I did something stupid, thing is I spend all day trying to find whats wrong. But I can not figure out what it is.
For some reason I cant store images on a local flash card.
Hardware setup and OS
Hardware: I use a SBC (single board computer) Odroid N2+ (something like a Raspberry Pi)
OS: Ubuntu 20.04.3 LTS
Zoneminder is version v1.32
I get the following errors and warnings shown in the log:
line 160:
Storage::disk_usage_percent: path /home/odroid/Documents/Link_to_events does not exist /usr/share/zoneminder/www/includes/Storage.php
line 169:
Cannot write to content dirs('/media/odroid/128G_Flash/ZoneMinder/events','/var/cache/zoneminder/images'). Check that these exist and are owned by the web account user /usr/share/zoneminder/www/index.php
line 181:
Path /home/odroid/Documents/Link_to_events does not exist. /usr/share/zoneminder/www/includes/Storage.php
line 198:
Path /home/odroid/Documents/Link_to_events does not exist. /usr/share/zoneminder/www/includes/Storage.php
I did check the target folder (with command ls -l in the console) and it seems the folder is owned by user www-data
drwxrwxr-x 2 www-data www-data 4096 Dec 24 14:21 events
also did check zm.conf
-rwxr----- 1 root www-data 1817 Sep 17 11:09 zm.conf
and for the folder images:
drwxr-xr-x 2 www-data www-data 4096 Feb 25 2020 images
I did also check the zm.conf and it shows:
# Username and group that web daemon (httpd/apache) runs as
ZM_WEB_USER=www-data
ZM_WEB_GROUP=www-data
ZoneMinder database user is not www-data but that should be okay ?
In the last attempt I changed the location to a link to the flash disk I first tried to access the directory directly but without any success
I hope you can help me I dont know what to change to make it work
Think I did something stupid, thing is I spend all day trying to find whats wrong. But I can not figure out what it is.
For some reason I cant store images on a local flash card.
Hardware setup and OS
Hardware: I use a SBC (single board computer) Odroid N2+ (something like a Raspberry Pi)
OS: Ubuntu 20.04.3 LTS
Zoneminder is version v1.32
I get the following errors and warnings shown in the log:
line 160:
Storage::disk_usage_percent: path /home/odroid/Documents/Link_to_events does not exist /usr/share/zoneminder/www/includes/Storage.php
line 169:
Cannot write to content dirs('/media/odroid/128G_Flash/ZoneMinder/events','/var/cache/zoneminder/images'). Check that these exist and are owned by the web account user /usr/share/zoneminder/www/index.php
line 181:
Path /home/odroid/Documents/Link_to_events does not exist. /usr/share/zoneminder/www/includes/Storage.php
line 198:
Path /home/odroid/Documents/Link_to_events does not exist. /usr/share/zoneminder/www/includes/Storage.php
I did check the target folder (with command ls -l in the console) and it seems the folder is owned by user www-data
drwxrwxr-x 2 www-data www-data 4096 Dec 24 14:21 events
also did check zm.conf
-rwxr----- 1 root www-data 1817 Sep 17 11:09 zm.conf
and for the folder images:
drwxr-xr-x 2 www-data www-data 4096 Feb 25 2020 images
I did also check the zm.conf and it shows:
# Username and group that web daemon (httpd/apache) runs as
ZM_WEB_USER=www-data
ZM_WEB_GROUP=www-data
ZoneMinder database user is not www-data but that should be okay ?
In the last attempt I changed the location to a link to the flash disk I first tried to access the directory directly but without any success
I hope you can help me I dont know what to change to make it work