TrueNAS SCALE: Nextcloud App Crashes and Disappears on Install

Summary of the issue you are facing:
I’m trying to install Nextcloud (version v2.0.17 from the TrueNAS Apps catalog) on TrueNAS SCALE. The app briefly starts deploying but then immediately crashes and disappears from the app list. No Nextcloud logs or app-specific error messages are available in the UI.

Steps to replicate it :
In the TrueNAS SCALE web interface, navigate to the “Apps” page.

Go to “Available Applications,” find Nextcloud, and click to install.

The app begins to deploy, but the process fails while trying to download the Nextcloud Docker image.

The app then crashes and is completely removed from the app list.

I’ve confirmed that my storage pool, ssd_t500_pool, is online and has ample free space (approx. 895 GiB). Therefore, the issue is not related to insufficient storage.

Nextcloud AppData Storage (HTML, Custom Themes, Apps, etc.)
/mnt/ssd_t500_pool/NextCloud/data

Nextcloud User Data Storage
/mnt/mainpool/NextCloud/user_data

Nextcloud Postgres Data Storage
/mnt/ssd_t500_pool/NextCloud/Postgres

sky683@sky683-Nas:~$ ls -al /mnt/ssd_t500_pool/NextCloud/
total 26
drwxrwxrwx 4 apps apps 4 Aug 15 20:24 .
drwxrwxrwx 9 root root 9 Aug 15 18:02 …
drwx------ 19 netdata netdata 25 Aug 15 21:34 Postgres
drwxr-xr-x 16 www-data www-data 36 Aug 15 19:36 data

sky683@sky683-Nas:~$ ls -al /mnt/mainpool/NextCloud/
total 2
drwxrwxrwx 3 root root 3 Aug 15 20:22 .
drwxr-xr-x 4 root root 4 Aug 15 20:21 …
drwxr-xr-x 2 www-data www-data 3 Aug 15 20:26 user_data

[EFAULT] Failed ‘up’ action for ‘nextcloud’ app. Please check /var/log/app_lifecycle.log for more details

Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/middlewared/job.py”, line 515, in run
await self.future
File “/usr/lib/python3/dist-packages/middlewared/job.py”, line 562, in __run_body
rv = await self.middleware.run_in_thread(self.method, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/main.py”, line 627, in run_in_thread
return await self.run_in_executor(io_thread_pool_executor, method, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/main.py”, line 624, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/concurrent/futures/thread.py”, line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/service/crud_service.py”, line 294, in nf
rv = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/api/base/decorator.py”, line 101, in wrapped
result = func(*args)
^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/plugins/apps/crud.py”, line 148, in do_create
return self.create_internal(job, app_name, version, data[‘values’], complete_app_details)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/plugins/apps/crud.py”, line 193, in create_internal
raise e from None
File “/usr/lib/python3/dist-packages/middlewared/plugins/apps/crud.py”, line 186, in create_internal
compose_action(app_name, version, ‘up’, force_recreate=True, remove_orphans=True)
File “/usr/lib/python3/dist-packages/middlewared/plugins/apps/compose_utils.py”, line 61, in compose_action
raise CallError(err_msg)
middlewared.service_exception.CallError: [EFAULT] Failed ‘up’ action for ‘nextcloud’ app. Please check /var/log/app_lifecycle.log for more details

sky683@sky683-Nas:~$ sudo cat /var/log/app_lifecycle.log

[2025/08/15 21:34:52] (ERROR) app_lifecycle.compose_action():56 - Failed ‘up’ action for ‘nextcloud’ app: nextcloud Pulling \n redis Pulling \n imaginary Pulling \n postgres_upgrade Pulling \n cron Pulling \n permissions Pulling \n postgres Pulling \n nextcloud Warning pull access denied for ix-nextcloud, repository does not exist or may require ‘docker login’: denied: requested access to the resource is denied\n 396b1da7636e Pulling fs layer \n f5465e2fc020 Pulling fs layer \n c166c949e1c3 Pulling fs layer \n 7fa725c973af Pulling fs layer \n 1f6dfcaad4e9 Pulling fs layer \n b7a79609094c Pulling fs layer \n 901a9540064a Pulling fs layer \n 7fa725c973af Waiting \n 1f6dfcaad4e9 Waiting \n 085f0a899c07 Pulling fs layer \n 5d91a345d79a Pulling fs layer \n f7f2afaa1b41 Pulling fs layer \n 36b4e7f51364 Pulling fs layer \n 85558a023eea Pulling fs layer \n be9fdbdba096 Pulling fs layer \n ae28e2b99a62 Pulling fs layer \n 8376094dd794 Pulling fs layer \n 57912cc8ef5f Pulling fs layer \n 4f4fb700ef54 Pulling fs layer \n c5c53992e86d Pulling fs layer \n 5d3cb4ed1332 Pulling fs layer \n 8aee5fc71561 Pulling fs layer \n 85558a023eea Waiting \n 901a9540064a Waiting \n b7a79609094c Waiting \n 5d91a345d79a Waiting \n 085f0a899c07 Waiting \n be9fdbdba096 Waiting \n c5c53992e86d Waiting \n f7f2afaa1b41 Waiting \n 5d3cb4ed1332 Waiting \n ae28e2b99a62 Waiting \n 36b4e7f51364 Waiting \n 8aee5fc71561 Waiting \n 4f4fb700ef54 Waiting \n b1badc6e5066 Already exists \n 22383c31ab32 Pulling fs layer \n d5c0c3d82a8e Pulling fs layer \n aa4bee93aa9e Pulling fs layer \n 22383c31ab32 Waiting \n 4a5d1c2d0b73 Pulling fs layer \n 4f4fb700ef54 Pulling fs layer \n 6745442c27e1 Pulling fs layer \n 4a5d1c2d0b73 Waiting \n 4f4fb700ef54 Waiting \n aa4bee93aa9e Waiting \n f5465e2fc020 Downloading [========================================> ] 935B/1.166kB\n f5465e2fc020 Verifying Checksum \n 396b1da7636e Downloading [> ] 298.4kB/29.77MB\n c166c949e1c3 Downloading [> ] 67.34kB/6.437MB\n 396b1da7636e Downloading [====> ] 2.476MB/29.77MB\n cron Warning pull access denied for ix-nextcloud, repository does not exist or may require ‘docker login’: denied: requested access to the resource is denied\n c166c949e1c3 Downloading [=====> ] 724.4kB/6.437MB\n 396b1da7636e Downloading [========> ] 5.272MB/29.77MB\n c166c949e1c3 Downloading [============> ] 1.583MB/6.437MB\n 396b1da7636e Pulling fs layer \n f5465e2fc020 Pulling fs layer \n c166c949e1c3 Pulling fs layer \n 7fa725c973af Pulling fs layer \n 1f6dfcaad4e9 Pulling fs layer \n b7a79609094c Pulling fs layer \n 901a9540064a Pulling fs layer \n 085f0a899c07 Pulling fs layer \n 5d91a345d79a Pulling fs layer \n f7f2afaa1b41 Pulling fs layer \n 36b4e7f51364 Pulling fs layer \n 85558a023eea Pulling fs layer \n be9fdbdba096 Pulling fs layer \n ae28e2b99a62 Pulling fs layer \n ae28e2b99a62 Waiting \n 901a9540064a Waiting \n 396b1da7636e Downloading [========> ] 5.272MB/29.77MB\n f5465e2fc020 Download complete \n c166c949e1c3 Downloading [============> ] 1.583MB/6.437MB\n 7fa725c973af Waiting \n b7a79609094c Waiting \n 1f6dfcaad4e9 Waiting \n 085f0a899c07 Waiting \n 85558a023eea Waiting \n 36b4e7f51364 Waiting \n f7f2afaa1b41 Waiting \n 5d91a345d79a Waiting \n be9fdbdba096 Waiting \n 396b1da7636e Downloading [=============> ] 7.762MB/29.77MB\n 396b1da7636e Downloading [=============> ] 7.762MB/29.77MB\n bc0965b23a04 Pulling fs layer \n dcccf87d013d Pulling fs layer \n acee09de1c5d Pulling fs layer \n a576ef79af7e Pulling fs layer \n bc0965b23a04 Waiting \n dcccf87d013d Waiting \n a576ef79af7e Waiting \n acee09de1c5d Waiting \n c166c949e1c3 Downloading [======================> ] 2.896MB/6.437MB\n c166c949e1c3 Downloading [======================> ] 2.896MB/6.437MB\n 396b1da7636e Downloading [===============> ] 9.308MB/29.77MB\n 396b1da7636e Downloading [===============> ] 9.308MB/29.77MB\n c166c949e1c3 Downloading [============================> ] 3.682MB/6.437MB\n c166c949e1c3 Downloading [============================> ] 3.682MB/6.437MB\n 396b1da7636e Downloading [==================> ] 10.86MB/29.77MB\n 396b1da7636e Downloading [==================> ] 10.86MB/29.77MB\n c166c949e1c3 Downloading [==================================> ] 4.403MB/6.437MB\n c166c949e1c3 Downloading [==================================> ] 4.403MB/6.437MB\n 396b1da7636e Downloading [=====================> ] 12.72MB/29.77MB\n 396b1da7636e Downloading [=====================> ] 12.72MB/29.77MB\n c166c949e1c3 Downloading [=========================================> ] 5.352MB/6.437MB\n c166c949e1c3 Downloading [=========================================> ] 5.352MB/6.437MB\n 396b1da7636e Downloading [=======================> ] 14.26MB/29.77MB\n 396b1da7636e Downloading [=======================> ] 14.26MB/29.77MB\n 7fa725c973af Downloading [> ] 15.83kB/1.454MB\n 7fa725c973af Downloading [> ] 15.83kB/1.454MB\n c166c949e1c3 Downloading [==============================================> ] 6.027MB/6.437MB\n c166c949e1c3 Downloading [==============================================> ] 6.027MB/6.437MB\n c166c949e1c3 Verifying Checksum \n c166c949e1c3 Download complete \n c166c949e1c3 Verifying Checksum \n c166c949e1c3 Download complete \n 396b1da7636e Downloading [===========================> ] 16.1MB/29.77MB\n 396b1da7636e Downloading [===========================> ]…

looks like a permission issue. Make sure that user id 999 has write permissions on the postgres dataset. In truenas that uid is the user netdata.

Hi @LarsR ,
Thanks for your response
I’m not very familiar with Linux,
but based on the permissions, it should be writable.
Where should I make the changes?

Nextcloud Postgres Data Storage
/mnt/ssd_t500_pool/NextCloud/Postgres

drwxr-xr-x 5 root root 5 Aug 14 21:42 /mnt
drwxrwxrwx 9 root root 9 Aug 15 18:02 /mnt/ssd_t500_pool
drwxrwxrwx 4 apps apps 4 Aug 15 20:24 /mnt/ssd_t500_pool/NextCloud/
drwx------ 19 netdata netdata 25 Aug 15 21:55 /mnt/ssd_t500_pool/NextCloud/Postgres/

sky683@sky683-Nas:/mnt/ssd_t500_pool/NextCloud$ sudo ls -al /mnt/ssd_t500_pool/NextCloud/Postgres/
total 61
drwx------ 19 netdata netdata 25 Aug 15 21:55 .
drwxrwxrwx 4 apps apps 4 Aug 15 20:24 …
-rwx------ 1 netdata netdata 3 Aug 15 20:26 PG_VERSION
drwx------ 6 netdata netdata 6 Aug 15 20:26 base
drwx------ 2 netdata netdata 65 Aug 15 21:55 global
drwx------ 2 netdata netdata 2 Aug 15 20:26 pg_commit_ts
drwx------ 2 netdata netdata 2 Aug 15 20:26 pg_dynshmem
-rwx------ 1 netdata netdata 5743 Aug 15 20:26 pg_hba.conf
-rwx------ 1 netdata netdata 2640 Aug 15 20:26 pg_ident.conf
drwx------ 4 netdata netdata 5 Aug 15 21:55 pg_logical
drwx------ 4 netdata netdata 4 Aug 15 20:26 pg_multixact
drwx------ 2 netdata netdata 2 Aug 15 20:26 pg_notify
drwx------ 2 netdata netdata 2 Aug 15 20:26 pg_replslot
drwx------ 2 netdata netdata 2 Aug 15 20:26 pg_serial
drwx------ 2 netdata netdata 2 Aug 15 20:26 pg_snapshots
drwx------ 2 netdata netdata 3 Aug 15 21:55 pg_stat
drwx------ 2 netdata netdata 2 Aug 15 20:26 pg_stat_tmp
drwx------ 2 netdata netdata 3 Aug 15 20:26 pg_subtrans
drwx------ 2 netdata netdata 2 Aug 15 20:26 pg_tblspc
drwx------ 2 netdata netdata 2 Aug 15 20:26 pg_twophase
drwx------ 4 netdata netdata 5 Aug 15 20:26 pg_wal
drwx------ 2 netdata netdata 3 Aug 15 20:26 pg_xact
-rwx------ 1 netdata netdata 88 Aug 15 20:26 postgresql.auto.conf
-rwx------ 1 netdata netdata 30777 Aug 15 20:26 postgresql.conf
-rwx------ 1 netdata netdata 36 Aug 15 21:55 postmaster.opts