bluecherrydvr / bluecherry-apps

Bluecherry surveillance system (server application)
http://www.bluecherrydvr.com
GNU General Public License v2.0
217 stars 68 forks source link

Specified directory "..." exists, but is not writable See Note 2. #620

Open curtishall opened 1 year ago

curtishall commented 1 year ago

When adding any storage, even the default /var/lib/bluecherry/recordings this error is shown:

Specified directory "/var/lib/bluecherry/recordings" exists, but is not writable See Note 2.

The output of the check_dir_permission.sh shows -wrx, so it should be writeable...however the PHP code indicates it is not.

Output of check_dir_permissions.sh:

www-data@2639774e211f:~$ /usr/share/bluecherry/scripts/check_dir_permission.sh /media/test
-wrx

Function:

https://github.com/bluecherrydvr/bluecherry-apps/blob/592e8757efe484722f5ed5c948e8c8d1d17c61ce/www/ajax/storagecheck.php#L38C7-L40C10