Nextcloud install hanging in deployment

Hello,

im not that very firm in truenas apps and i tried to install nextcloud
2.0.15 and 2.0.23 on truenas scale Dragonfish-24.04.2.5, i watched the installation video from randyisanerd but the deployment is still on going for 12 hours and i always get

“Saw completed job: nextcloud-nextcloud-cron-29550990, status: Failed”

“Job has reached the specified backoff limit”

and i dont see any created cronjobs truenas system > advanced

can someone please help how i can fix that issue?

I believe the apps from 24.04 are no longer maintained, since truenas moved away from the kubernetes backend to a docker based backend. I don’t know if the old kubernetes apps catalogue is still active or if it was archived…

The nextcloud cronjobs are not listed in the truenas webui since they run inside the container.

If you don’t run any other app i’d suggest you update your system from 24.04 to 24.10 and then 25.04 before attempting to install any apps.

If you already have apps installed, you have a bigger problem. There was a migration deadline for the kubernetes apps (june 1st 2025), which you’ve obviously missed and now there’s no more automatic app migration. You’d have to re-instlal all your apps…

But we may need more information to determine the best way forward…

1 Like

thank you, i just switched in that order an im now on fangtooth 25.04.2.6 and i gave it a try again but it seems still be missing something …

Failure occurred while installing ‘nextcloud’, cleaning up

[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

check the logfile with

sudo cat /var/log/app_lifecycle.log

I suspect the postgres db installation fails because you don’t have the correct permissions set

1 Like

thank you very much, its running now.

i was using the shell before and with ls i could not even see a var directory so i was confused but your command worked and yes there was an issue with permission updating the database. therefor i just created a smb share to delete everything inside the folders from the tries before and now swoosh it got deployed within seconds.

was just confused why permissions issues because i set it up like in the video and i also checked “Automatic Permissions”.

but thank you so far i now i can tinker further :slight_smile: