Installing nextcloud 31.0.8 (app catalog 2.0.23) in truenas scale 25.04.2.3

hi, i fight with this for so many days, i see people configuring ownership of apps datasets for www-data uid 33, and group, but after more than a week searching, i found this page

https : / apps. truenas. com / resources / deploy-nextcloud /

when explain the correct users for the datasets.

but even doing a new fresh install, erasing the image from apps, and giving ownership to apps, or www-data never finish start nexcloud giving errors like,

can’t read /var/html/data/occ
or
cant have permissions of /var/html/config/config.php

i dont know whats permission really they need, or users, only start when ix-volumens are used, anyone have a tree permission logic for this to work?

any help is apreciated.

i have root dataset in my case is nfstest because is a testing truenas deploy owner user and group, not changeable from GUI

i have dockers-and-vm dataset below with owner user and group www-data (trying with apps? or root? or add permissions for this users in ACLs?)

next the nextcloud folder dataset i have owner of apps, root, and www-data, but always give similar errors.

and inside the 3 folder appdata userdata and dbdata i used before, now try it with html, data, and postgres_data, and automatic permission for postgres_data and owner for html and data, apps user and group, after www-data owner but always end can’t read occ, or don’t have permission.
how i can solve this?

Usually nextcloud should need permissions for 568 (apps) for data storage and 999 (netdata) for postgres database permissions.