HELP PLEASE - TruenasSCALE 25.04.0 and Nextcloud App Version: 31.0.4 Version: 1.6.23 WILL NOT INSTALL!

HELP PLEASE! I am loosing what hair I don’t have.

I have been trying for three days to install Nextcloud and failing miserably.
I have followed the instructions (as shown in the latest truenas documentation)

NOTHING seems to work ending with the often found in this forum (but not with this combo as far as I can see) error of:
[EFAULT] Failed ‘up’ action for ‘nextcloud’ app. Please check /var/log/app_lifecycle.log for more details

My var log app_lifecycle.log looks like this. To me it reads that th general nextcloud container is failing to start but I cannot see why.

[2025/05/07 11:46:01] (ERROR) app_lifecycle.compose_action():56 - Failed ‘up’ action for ‘nextcloud’ app: Network ix-nextcloud_default Creating\n Network ix-nextcloud_default Created\n Container ix-nextcloud-permissions-1 Creating\n Container ix-nextcloud-permissions-1 Created\n Container ix-nextcloud-redis-1 Creating\n Container ix-nextcloud-postgres_upgrade-1 Creating\n Container ix-nextcloud-redis-1 Created\n Container ix-nextcloud-postgres_upgrade-1 Created\n Container ix-nextcloud-postgres-1 Creating\n Container ix-nextcloud-postgres-1 Created\n Container ix-nextcloud-nextcloud-1 Creating\n Container ix-nextcloud-nextcloud-1 Created\n Container ix-nextcloud-nginx-1 Creating\n Container ix-nextcloud-imaginary-1 Creating\n Container ix-nextcloud-cron-1 Creating\n Container ix-nextcloud-imaginary-1 Created\n Container ix-nextcloud-nginx-1 Created\n Container ix-nextcloud-cron-1 Created\n Container ix-nextcloud-permissions-1 Starting\n Container ix-nextcloud-permissions-1 Started\n Container ix-nextcloud-permissions-1 Waiting\n Container ix-nextcloud-permissions-1 Waiting\n Container ix-nextcloud-permissions-1 Exited\n Container ix-nextcloud-postgres_upgrade-1 Starting\n Container ix-nextcloud-permissions-1 Exited\n Container ix-nextcloud-redis-1 Starting\n Container ix-nextcloud-redis-1 Started\n Container ix-nextcloud-postgres_upgrade-1 Started\n Container ix-nextcloud-postgres_upgrade-1 Waiting\n Container ix-nextcloud-permissions-1 Waiting\n Container ix-nextcloud-permissions-1 Exited\n Container ix-nextcloud-postgres_upgrade-1 Exited\n Container ix-nextcloud-postgres-1 Starting\n Container ix-nextcloud-postgres-1 Started\n Container ix-nextcloud-postgres-1 Waiting\n Container ix-nextcloud-redis-1 Waiting\n Container ix-nextcloud-permissions-1 Waiting\n Container ix-nextcloud-permissions-1 Exited\n Container ix-nextcloud-redis-1 Healthy\n Container ix-nextcloud-postgres-1 Healthy\n Container ix-nextcloud-nextcloud-1 Starting\n Container ix-nextcloud-nextcloud-1 Started\n Container ix-nextcloud-nextcloud-1 Waiting\n Container ix-nextcloud-nextcloud-1 Waiting\n Container ix-nextcloud-nextcloud-1 Waiting\n Container ix-nextcloud-nextcloud-1 Error\n Container ix-nextcloud-nextcloud-1 Error\n Container ix-nextcloud-nextcloud-1 Error\ndependency failed to start: container ix-nextcloud-nextcloud-1 is unhealthy\n
[2025/05/07 11:46:35] (ERROR) app_lifecycle.compose_action():56 - Failed ‘up’ action for ‘nextcloud’ app: Network ix-nextcloud_default Creating\n Network ix-nextcloud_default Created\n Container ix-nextcloud-permissions-1 Creating\n Container ix-nextcloud-permissions-1 Created\n Container ix-nextcloud-redis-1 Creating\n Container ix-nextcloud-postgres_upgrade-1 Creating\n Container ix-nextcloud-redis-1 Created\n Container ix-nextcloud-postgres_upgrade-1 Created\n Container ix-nextcloud-postgres-1 Creating\n Container ix-nextcloud-postgres-1 Created\n Container ix-nextcloud-nextcloud-1 Creating\n Container ix-nextcloud-nextcloud-1 Created\n Container ix-nextcloud-cron-1 Creating\n Container ix-nextcloud-nginx-1 Creating\n Container ix-nextcloud-imaginary-1 Creating\n Container ix-nextcloud-imaginary-1 Created\n Container ix-nextcloud-nginx-1 Created\n Container ix-nextcloud-cron-1 Created\n Container ix-nextcloud-permissions-1 Starting\n Container ix-nextcloud-permissions-1 Started\n Container ix-nextcloud-permissions-1 Waiting\n Container ix-nextcloud-permissions-1 Waiting\n Container ix-nextcloud-permissions-1 Exited\n Container ix-nextcloud-redis-1 Starting\n Container ix-nextcloud-permissions-1 Exited\n Container ix-nextcloud-postgres_upgrade-1 Starting\n Container ix-nextcloud-postgres_upgrade-1 Started\n Container ix-nextcloud-permissions-1 Waiting\n Container ix-nextcloud-postgres_upgrade-1 Waiting\n Container ix-nextcloud-redis-1 Started\n Container ix-nextcloud-permissions-1 Exited\n Container ix-nextcloud-postgres_upgrade-1 Exited\n Container ix-nextcloud-postgres-1 Starting\n Container ix-nextcloud-postgres-1 Started\n Container ix-nextcloud-redis-1 Waiting\n Container ix-nextcloud-permissions-1 Waiting\n Container ix-nextcloud-postgres-1 Waiting\n Container ix-nextcloud-permissions-1 Exited\n Container ix-nextcloud-redis-1 Healthy\n Container ix-nextcloud-postgres-1 Healthy\n Container ix-nextcloud-nextcloud-1 Starting\n Container ix-nextcloud-nextcloud-1 Started\n Container ix-nextcloud-nextcloud-1 Waiting\n Container ix-nextcloud-nextcloud-1 Waiting\n Container ix-nextcloud-nextcloud-1 Waiting\n Container ix-nextcloud-nextcloud-1 Error\n Container ix-nextcloud-nextcloud-1 Error\n Container ix-nextcloud-nextcloud-1 Error\ndependency failed to start: container ix-nextcloud-nextcloud-1 is unhealthy\n
[2025/05/07 11:58:54] (ERROR) app_lifecycle.compose_action():56 - Failed ‘up’ action for ‘nextcloud’ app: Network ix-nextcloud_default Creating\n Network ix-nextcloud_default Created\n Container ix-nextcloud-permissions-1 Creating\n Container ix-nextcloud-permissions-1 Created\n Container ix-nextcloud-redis-1 Creating\n Container ix-nextcloud-postgres_upgrade-1 Creating\n Container ix-nextcloud-redis-1 Created\n Container ix-nextcloud-postgres_upgrade-1 Created\n Container ix-nextcloud-postgres-1 Creating\n Container ix-nextcloud-postgres-1 Created\n Container ix-nextcloud-nextcloud-1 Creating\n Container ix-nextcloud-nextcloud-1 Created\n Container ix-nextcloud-imaginary-1 Creating\n Container ix-nextcloud-cron-1 Creating\n Container ix-nextcloud-imaginary-1 Created\n Container ix-nextcloud-cron-1 Created\n Container ix-nextcloud-permissions-1 Starting\n Container ix-nextcloud-permissions-1 Started\n Container ix-nextcloud-permissions-1 Waiting\n Container ix-nextcloud-permissions-1 Waiting\n Container ix-nextcloud-permissions-1 Exited\n Container ix-nextcloud-postgres_upgrade-1 Starting\n Container ix-nextcloud-permissions-1 Exited\n Container ix-nextcloud-redis-1 Starting\n Container ix-nextcloud-redis-1 Started\n Container ix-nextcloud-postgres_upgrade-1 Started\n Container ix-nextcloud-permissions-1 Waiting\n Container ix-nextcloud-postgres_upgrade-1 Waiting\n Container ix-nextcloud-permissions-1 Exited\n Container ix-nextcloud-postgres_upgrade-1 service “postgres_upgrade” didn’t complete successfully: exit 1\nservice “postgres_upgrade” didn’t complete successfully: exit 1\n

Things I have tried

  • whacking all my datasets and rebuilding (and under different names)
  • trying to find the /mnt/.ix-apps/app_mounts/nextcloud directory and changing permissions (as suggested elsewhere in this forum) but that directory doesn’t even exist
  • I’ve tried chmod -R 777 /mnt/Applications/Nextcloud to try and see if it is a permissions problem
  • I’ve tried the same chmod -R 777 /mnt/.ix-apps/app_mounts and app_configs
  • I’ve tried postgress 13 & 17 both

NOTHING works. Any and all advice is greatly welcome system

It’s to 99% a permission issue for the Postgress database

1 Like

You can use the Automatic Permissions option for postgres host paths, as described in https://apps.truenas.com/getting-started/app-storage/#postgres-datasets or Nextcloud Deployment | TrueNAS Apps Market.

Thanks all for the thoughts. I assumed it was a permission problem but I don’t know how to fix it. Thoughts? I have used the automatic permissions and have had no luck

If I remember correctly specific users have to own the datasets not just have access to them. The netdata user owns the database dataset and www-data owns all the others. Not sure if this is still the case, but it was for me awhile ago.

I would suggest creating a new dataset for the postgres storage using the generic preset. Do nothing else to this dataset. Then try using the Automatic Permissions option to mount this dataset as a host path in the app wizard.

Well I had high hopes for this approach but sadly still getting a postgress installation failure… I’m about to give up on this

Does anyone know if there are other log files to investigate to get more specifics on why the failure… These are rather vague

So… I GOT IT TO INSTALL

The secret was to ensure that the dataset was owned by 999:999 (Owner:
netdata ; Group: docker)

Now I’m stuck on the webUI install defining the database. I put in the postgres DB password I defined and I get a permission denied again. Anybody think this could be because I created the dataset as generic instead of app?

OK I’m back to epic failure… turns out I was stuck in deploying for hours.
So I thought… I know how to install this now so I deleted the app and the datasets and tried from scratch… now I get the failure

[2025/05/08 16:10:45] (ERROR) app_lifecycle.compose_action():56 - Failed ‘up’ action for ‘nextcloud’ app: Network ix-nextcloud_default Creating\n Network ix-nextcloud_default Created\n Container ix-nextcloud-permissions-1 Creating\n Container ix-nextcloud-permissions-1 Created\n Container ix-nextcloud-redis-1 Creating\n Container ix-nextcloud-postgres_upgrade-1 Creating\n Container ix-nextcloud-redis-1 Created\n Container ix-nextcloud-postgres_upgrade-1 Created\n Container ix-nextcloud-postgres-1 Creating\n Container ix-nextcloud-postgres-1 Created\n Container ix-nextcloud-nextcloud-1 Creating\n Container ix-nextcloud-nextcloud-1 Created\n Container ix-nextcloud-imaginary-1 Creating\n Container ix-nextcloud-cron-1 Creating\n Container ix-nextcloud-nginx-1 Creating\n Container ix-nextcloud-imaginary-1 Created\n Container ix-nextcloud-nginx-1 Created\n Container ix-nextcloud-cron-1 Created\n Container ix-nextcloud-permissions-1 Starting\n Container ix-nextcloud-permissions-1 Started\n Container ix-nextcloud-permissions-1 Waiting\n Container ix-nextcloud-permissions-1 Waiting\n Container ix-nextcloud-permissions-1 Exited\n Container ix-nextcloud-permissions-1 Exited\n Container ix-nextcloud-postgres_upgrade-1 Starting\n Container ix-nextcloud-redis-1 Starting\n Container ix-nextcloud-redis-1 Started\n Container ix-nextcloud-postgres_upgrade-1 Started\n Container ix-nextcloud-postgres_upgrade-1 Waiting\n Container ix-nextcloud-permissions-1 Waiting\n Container ix-nextcloud-permissions-1 Exited\n Container ix-nextcloud-postgres_upgrade-1 Exited\n Container ix-nextcloud-postgres-1 Starting\n Container ix-nextcloud-postgres-1 Started\n Container ix-nextcloud-permissions-1 Waiting\n Container ix-nextcloud-postgres-1 Waiting\n Container ix-nextcloud-redis-1 Waiting\n Container ix-nextcloud-permissions-1 Exited\n Container ix-nextcloud-redis-1 Healthy\n Container ix-nextcloud-postgres-1 Healthy\n Container ix-nextcloud-nextcloud-1 Starting\n Container ix-nextcloud-nextcloud-1 Started\n Container ix-nextcloud-nextcloud-1 Waiting\n Container ix-nextcloud-nextcloud-1 Waiting\n Container ix-nextcloud-nextcloud-1 Waiting\n Container ix-nextcloud-nextcloud-1 Error\n Container ix-nextcloud-nextcloud-1 Error\n Container ix-nextcloud-nextcloud-1 Error\ndependency failed to start: container ix-nextcloud-nextcloud-1 is unhealthy\n

looks like something in the nextcloud container is bad… should I whack that dataset too.

I should mention that I modified
/mnt/Applications to be owned by www-data:www-data
/mnt/Nextcloud to be owned by www-data:www-data (only after getting this error the first time)
my dataset directory to be owned by www-data:www-data

As you can see I’m grasping at straws as there seems to be no good log for me to find out what really is happening (or not)

Thanks in advance for the ideas, I truly appreciate you all.

again… but this time its a different one

Only postgres needs 999:999 ownership. You can see required permissions in the Run As Context on the App Discover screen

My suggestion would be to start from scratch, follow this procedure closely, and see where that gets you.

Well… what finally worked to bring up the UI was to NOT create the datasets ahead of time and create them through the app wizard with the two ACL’s specified in the doc you pointed me to.

NOW I CANNOT LOG IN WITH ANY USER… I don’t even know where to start on this. I tried logging into the postgres container and su’ing to the postgres user to use psql to find the users configured in postgres database. However I cannot seem to su to that user as I do not know the password to the postgres user it seems.

This is as far as I’ve been able to make it.

P.S. Thanks for sticking with me DjP-iX it is helping immensely.

I should mention it seems strange to me that I don’t have any of the users that I would expect to see in the Credentials–>Users UI section. I only have the following:

Well, I have NO IDEA why but I went back in and enabled the certificate in the app wizard to a self signed cert I created through the UI and now I can log in with my userid… don’t know if anything else is wrong yet but so far I think this solved it.

If you’re handy with Linux you can make your life easier… with a little extra work up front.

Create a Debian Linux VM in TN and install Portainer on it. You’ll only need to allocate about 5GB ram to the VM for hundreds of dockers. Then get the docker compose file for Nextcloud and get it installed. It runs flawlessly, you never have to worry about TN upgrades affecting your apps, and you have far more control over every aspect of NextCloud and any other containers.