Nextcloud does not start and cannot reinstall after Electric Eel update

After installing Electric Eel release version Nextcloud would not start. Tried to reinstall it and keep getting the same error. Even tried deleting the images and dataset to see if it would help. Still same issue. Here is the top part of the /var/log/app_lifecycle.log file with the error.

2024/10/30 11:25:21] (ERROR) app_lifecycle.compose_action():56 - Failed ‘up’ action for ‘nextcloud’ app: redis Pulling
cron Pulling
nextcloud Pulling
permissions Pulling
postgres Pulling
cron Error pull access denied for ix-nextcloud, repository does not exist or may require ‘docker login’: denied: requested access to the resource is denied
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

Any suggestions? Or by chance is this something being looked into with the application image and i should just try again in a few days.

1 Like

For the record i can deploy other applications without a issue per testing I’ve done.

After upgrading from Dragonfish, all my apps work except Nextcloud. But I have a different error message than yours.

Container ix-nextcloud-postgres-1 Healthy
Container ix-nextcloud-redis-1 Healthy
Container ix-nextcloud-nextcloud-1 Starting
Container ix-nextcloud-nextcloud-1 Started
Container ix-nextcloud-nextcloud-1 Waiting
Container ix-nextcloud-nextcloud-1 Waiting
Container ix-nextcloud-nextcloud-1 Error
Container ix-nextcloud-nextcloud-1 Error
dependency failed to start: container ix-nextcloud-nextcloud-1 is unhealthy

I am using Host Path.

Using host path as well here.

Did you delete the Nextcloud app and try and re-deploy it? I’m a little scared to try it but might have no choice.

Indeed I did. I also removed the dataset folder I created and tried to redeploy from scratch. I didn’t have much inside it and was tinkering more.

having the same issue with nextcloud and tailscale after updating to EE

I too just upgraded to Truenas 24.10 and my Nextcloud app did not start post update.

I am using Host Path and experience the same error log in /var/log/app_lifecycle.log.

When I checked the log for the NextCloud container the log was reporting an invalid data directory.
image

2024-10-31 04:39:50.519938+00:00Your data directory is invalid.
2024-10-31 04:39:50.520002+00:00Ensure there is a file called ".ncdata" in the root of the data directory. It should have the content: "# Nextcloud data directory"

I was able to fix by editing my container configuration.

Under the “Storage Configuration” > “Nextcloud User Data Storage” > Host Path*

I had to append /data to the existing hostpath.

EDIT:
I highlighted the checkbox “Old Storage Structure” to callout that my config already had that checked and my fix may only apply to those with that setting. YMMV, sample size of one on this possible fix.

2 Likes

Tried to reinstall again using the same settings you mention and still the same thing via the app_lifecycle.log

Starts off with the installation and gets to 80% and this kicks out a popup of failed with this additional information under the expansion.

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/service/crud_service.py”, line 268, in nf
rv = 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/schema/processor.py”, line 183, in nf
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/plugins/apps/crud.py”, line 203, 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 248, in create_internal
raise e from None
File “/usr/lib/python3/dist-packages/middlewared/plugins/apps/crud.py”, line 241, 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 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

Ugh. I see now. I was pointing to the dataset, but should have gone one level deeper to point to the data folder.
Unfortunately I deleted the app and trying to re-install it but it’s failing to install now! Render templates are not good. I think the Docker compose doesn’t like my configs.

hmmm So I deleted the data and such, finally got the install working and im at the login screen…but it will NOT allow me to login? I know what the admin username and password is I can physically look at it and change it but will not allow me to login at all!

Same here on my TrueNAS.
After deleting datasets and seting up new ones, I installed nextcloud
and get to the login screen, but can’t login.
I also tried User: admin and ncadmin / PW: admin and nextcloud
I can’t get in

does it just say invalid login? really no other info on it at all?

Yes, just like you has typed something wrong.
And you have the password forgotten button.

yup, but the forgot password doesnt do anything for me…

and I straight up copied the username and password directly from my server Config—no go.

Same here. I guess forget password sends an e-mail, but since there is no e-mail deposited, you do not get this mail.

ditto…oaky…well I guess its f’d …lol

this worked for me to get back up and running, tho i cant seem to be able to upgrade. good enough start tho to be able to deploy again and access web ui

Just got an app update to 1.4.1
Still can’t login.

So I’ve deleted the root datasets for App_configs/Nextcloud_database and Nextcloud_data - recreated them from scratch.

Reinstalled Collabora successfully.
Attempted to install Nextcloud again using all the basic default with hosted paths. Still craps out at 80%.

/var/logs/app_lifecycle.log returns the following: (note the items i’ve highligted in bold below)
2024/10/30 11:25:21] (ERROR) app_lifecycle.compose_action():56 - Failed ‘up’ action for ‘nextcloud’ app: redis Pulling
cron Pulling
nextcloud Pulling
permissions Pulling
postgres Pulling
cron Error pull access denied for ix-nextcloud, repository does not exist or may require ‘docker login’: denied: requested access to the resource is denied

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

Appears the image is none existent or been disabled due the docker login denied error. If i goto manage container images ix-nextcloud has some long jacked up name of the following:
ix-nextcloud:30.0.1_90cfe2e93908023302c2ea87d27b33180746b9ffdfbb7ed6ac92c36042cf7dbe

Even tried to manually pull the image with and without my docker credentials and same thing.

Wish someone from IX-Systems would chime in on the post to confirm or deny.