TrueNAS SCALE: Nextcloud App Crashes and Disappears on Install

The Basics
Nextcloud Server version (e.g., 29.x.x):

  • N/A, installation failed. The version from the TrueNAS Apps catalog is v2.0.17.

Operating system and version (e.g., Ubuntu 24.04):

  • TrueNAS SCALE 25.04.2.1

Web server and version (e.g, Apache 2.4.25):

  • N/A (Docker container-based installation via TrueNAS)

Reverse proxy and version _(e.g. nginx 1.27.2)

  • N/A (TrueNAS handles this internally)

PHP version (e.g, 8.3):

  • N/A (bundled with Nextcloud container)

Is this the first time you’ve seen this error? (Yes / No):

  • Yes

When did this problem seem to first start?

  • On my first attempt to install the Nextcloud App on TrueNAS SCALE.

Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.):

  • TrueNAS Apps

Are you using CloudfIare, mod_security, or similar? (Yes / No)

  • using CloudfIare

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 (hint: details matter!):
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.

Log entries
Nextcloud
Since the application crashes and disappears, I can’t get any Nextcloud-specific logs. However, I extracted a log snippet from the TrueNAS Shell related to the app’s lifecycle, which appears to be the main error:

[2025/08/15 02:41:58] (ERROR) app_lifecycle.compose_action():56 - Failed ‘up’ action for ‘nextcloud’ app: 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
Web Browser
N/A (The issue is not related to a web interface operation)

Web server / Reverse Proxy
N/A

Configuration
Nextcloud
N/A (The app failed to install, so no configuration file is available)

Apps
N/A

Tips for increasing the likelihood of a response
I have attached the key error log showing an “access denied” error during the Docker image pull.

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.

As the app failed to start, no configuration files are available for review.

This is not a valid version number.

Please improve your topic and describe what you like to achieve.
Do you want to install nextcloud as a server?

1 Like

Hi @rakekniven
Yes, my goal is to install Nextcloud to use it as a self-hosted server
for file sharing and syncing on my TrueNAS SCALE system.

I also wanted to clarify the version number confusion you mentioned.
The version v2.0.17 is the version of the Nextcloud app listed in the TrueNAS Apps catalog,
not the official Nextcloud server version.

Could you please let me know where you are checking for version information?
It would be great to understand if I am looking in the wrong place.

Thanks for your help.

Add INFO


Add INFO

[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:/mnt/ssd_t500_pool$ sudo cat /var/log/app_lifecycle.log

[sudo] password for sky683:
[2025/08/15 19:47:31] (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-imaginary-1 Creating\n Container ix-nextcloud-imaginary-1 Created\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-cron-1 Created\n Container ix-nextcloud-imaginary-1 Starting\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-imaginary-1 Started\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-postgres_upgrade-1 Started\n Container ix-nextcloud-postgres_upgrade-1 Waiting\n Container ix-nextcloud-permissions-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-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 Error\ndependency failed to start: container ix-nextcloud-nextcloud-1 is unhealthy\n

1 Like

I have no experience with Nextcloud on TrueNAS, but I searched for the quoted string in the TrueNAS forums and found the following threads:

https://forums.truenas.com/t/nextcloud-installation-fails/46424

https://forums.truenas.com/t/cannot-install-nextcloud-app-from-listing-only-when-using-non-ix-paths/22732

After quickly skimming through the threads, it seems the issue might be related to incorrect ownership or permissions on the directories and/or datasets being used. If the solution in the linked threads doesn’t work for you, I’d suggest posting your issue in their forums as well.

1 Like

Thanks for the links! I appreciate you taking the time to search the forums for me.

I’ve already checked the permissions on my datasets
and made sure the ownership is correct for both the data and database paths.
However, the installation still fails.

The logs show the containers are created but immediately exit,
and there are no specific error messages in the container logs. I’m a bit stuck.

I will follow your suggestion and post my issue on the TrueNAS forums.

Thanks again for all your help!

1 Like

:frowning: I’m experiencing the same issue, since the last 2 Truenas Scale updates. I have posted SEVERAL TIMES (In the Nextcloud and Truenas Scale communities; on Facebook, Reddit, and every place I have thought of.), :enraged_face: and not a SINGLE reply/comment. :rofl: :thinking: :expressionless_face: but thousands of people saw them.

If you have problems, then no answers are no help.

We don’t have many posts here on the subject … apparently not many people use this combination.

@sku683 Can you leave a reference here to your posting at TrueNAS forum?

:thinking: What does your dataset structure look like, more specifically your permissions? I redid my permissions, and now I’m able to get Nextcloud running. I also used the following tutorial (as well as his external access video.) to set it up, and things are running well so far.

I tried creating a new instance with the same permissions, and it was successful. I’m guessing it might be because a new Nextcloud version was pushed to the TrueNAS app.

I can install and use it normally now, but I’m not sure how it works.

Unfortunately, the TrueNAS forum didn’t provide any effective solutions. I provided my relevant information but didn’t receive help.

Link:https://forums.truenas.com/t/truenas-scale-nextcloud-app-crashes-and-disappears-on-install/50328/7