NextCloud plugin - "This operation is forbidden" when trying to access external storage

Joined
Dec 26, 2021
Messages
20
So, I just installed the latest NextCloud for TrueNAS plugin (version 23.0.3). In the jail I mounted 3 datasets to /mnt/Media, /mnt/Backup, and /mnt/NextCloud. I moved the data directory for NextCloud to /mnt/NextCloud and that works great. In order to get NextCloud to be happy with the new data directory, I had to allow full control to the www user in the dataset ACL.

Now, to the other datasets, I also gave the www user full control. Then, I went to the NextCloud settings and added the datasets as external storage, like so:
1649519980411.png


The folders are visible in the interface:
1649520065681.png


However, whenever I click on either of the folders, I immediately get redirected to the 'Home' directory in NextCloud with an error message at the top right that reads "This operation is forbidden". The logs show this:
1649520200772.png
I'm quite clueless at this point especially since the www user has full access to both of these datasets. Does anyone have any clues?
 
Joined
Dec 26, 2021
Messages
20
I actually managed to pinpoint the problem. It turns out that while the owner of the data directory was something other than www, the subdirectories were owned by www from when I copied it over from the original data directory. Once I recursively changed the owner to something other than www, it broke. Recursively changing the owner to www across each of the datasets is what fixed the issue.
 
Top