NextCloud New Install Failed Install - Permissions?

Trying to install a new install of next cloud on pool of disks (not ix-applications) using a dataset designated for applications. The install always fails at the Postgres-upgrade step. Logs don’t show anything other than that step failing. I’m assuming it’s permissions. But what permission does the dataset need for applications to use it to install? I tried the automatic permissions and that didn’t work

Postgres needs permission for user id 999, which in truenas is the buildin user called “netdata”. Add the netdata user to the postgres dataset ACL list.

Should I create all 3 data sets beforehand? Or have the install do it?

I usually create my datasets and set the acls before i install the apps. Databases and Configs on an ssd pool and Datastorage on my hdd pool.
I created one Parent Dataset called apps. Inside that is a Dataset for each app. Inside the nextcloud Dataset i have a folder called nextcloud_config, nextcloud_db and nextcloud_redis. On my Hdd Pool is a Dataset called Nextcloud_Data.
If you ever wonder whcih user need permissions for an app theres a “run as” context tile in the apps catalogue, that lists the permission the app runs as.

Hmm. Still getting the Postgres error. What are you ACL permissions exactly on the database dataset? I’ve tried the ones mentioned and it still doesn’t work

My permissions won’t be helpful for you… I do not use the buildin truenas apps. All my apps are deployed via my own compose file in a debian lxc.
When i’m back home from work i’ll set up a test installation of the truenas app, but i can only report back in around 2-3 hours.

Ok i created a test installation of nextcloud. I created the dataset beforehand and added the permissions, but also got a permission error for the postgress db, eventhough i set permissions for user netdata. I then checked the “automatic permission” checkbox at the end of the storage setup section and it deployed and is up and running.
Edit: Here’s a screenshot of the Dataset permissions and fixed typos

1 Like