Problems with mounted dir in AIO

Hello, new to nextcloud. It was very easy to get up an running, ty!! I’m running AIO via docker on an ubuntu server.

I want to access existing server files via NC. I’ve mounted them and if I bash into nextcloud-aio-mastercontainer, I can view the files and folders. Same if I ls as www-data on my server’s shell. In nextcloud’s admin config (gui), I successfully added it as a local external storage.

But, when I try to view the files via Files (or any other app), the mounted folder is there but has no contents.

Can you tell me what I am missing? Again this is latest ubuntu server, latest NC version, and NC has permissions for the files.

I get the following errors in the log:

**PHP**:
opendir(/media/wdblack/shared/): Failed to open directory: Permission denied at /var/www/html/lib/private/Files/Storage/Local.php#164 
**webdav**:
ServiceUnavailable Directory listing failed

Figured it out. Permissions, of course. When I set everything to 775 this all worked. I had added www-data to a custom group for file ownership (so that programs can access the data too)…guess I need to retrace my steps. Thank you to whomever is reading this.

1 Like