Nextcloud App Not Working After TrueNAS Scale Update 24.10

Hello TrueNAS community,

After updating my TrueNAS Scale installation, my Nextcloud app has stopped functioning. I receive the following error when trying to start the app:

Traceback (most recent call last):  
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 488, in run  
    await self.future  
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 535, in __run_body  
    rv = await self.middleware.run_in_thread(self.method, *args)  
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1364, 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 1361, 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/schema/processor.py", line 183, in nf  
    return func(*args, **kwargs)  
           ^^^^^^^^^^^^^^^^^^^^^  
  File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 55, in nf  
    res = f(*args, **kwargs)  
          ^^^^^^^^^^^^^^^^^^  
  File "/usr/lib/python3/dist-packages/middlewared/plugins/apps/app_scale.py", line 51, in start  
    compose_action(app_name, app_config['version'], 'up', force_recreate=True, remove_orphans=True)  
  File "/usr/lib/python3/dist-packages/middlewared/plugins/apps/compose_utils.py", line 57, in compose_action  
    raise CallError(  
middlewared.service_exception.CallError: [EFAULT] Failed 'up' action for 'nextcloud' app, please check /var/log/app_lifecycle.log for more details  

I’ve checked the suggested /var/log/app_lifecycle.log file but haven’t been able to pinpoint the issue.

Could someone guide me on how to resolve this error or suggest additional steps I can take to debug and fix this?

Any assistance would be greatly appreciated. Thanks in advance!

Look at the “Old Storage Structure” setting in the Nextcloud app. Essentially, they now use 3 datasets to be used for host path and they pulled the “data” folder with the user stuff out into it’s own dataset. At least, that’s what I remember. Nextcloud migrated terribly and I myself decided to just scrap the whole thing, “rsync -r” my files into an SMB share dataset, and start over. You can find the data and move in all out by using tmux to get a session started in “TrueNAS > System/Settings > Shell”, then rsync copy everything out into an SMB share dataset (easy to set up in TrueNAS). I gave up and I’m disappointed the Nextcloud docs aren’t accounting for the crazy amount of issues after migration. You’ll have to know Linux command line though and be able to ls and cd your way around to find where your files are.