How to add local storage in VM Appliance


I am trying to add a local folder /media/test in Nextcloud but unable to (red circle with the Exclamation mark). Already run chown and chmod.

drwxrwx— 2 www-data www-data 4096 Jan 28 14:57 test

log file has the following error.

Error PHP stat(): stat failed for /media/test/ at /var/www/html/lib/private/Files/Storage/Local.php#142

How can I get it to work?


Verison running: 14.0.6-0 with virtualbox


sudo chmod 775 /media/test

Tried that, even tried 777 still the same result.

Do I need to edit some docker file to get it to work? I am new to docker setup.

The error in log is stat(): stat failed for /media/test/data/ at /var/www/html/lib/private/Files/Storage/Local.php#142

But that folder does not exist in system.
www-data@nas-001:/$ ls /var/www/html/lib
ls: cannot access ‘/var/www/html/lib’: No such file or directory