Immich Setup Fails - [EFAULT] Failed 'up' action for 'immich' app. Please check /var/log/app_lifecycle.log for more details

Hi!
I have installed dozens of apps, with no major problems.
Immich however, is failing at setup no matter what i tried.
I used any combination of settings, from default to custom in many differrent combinations.
Setup always ends with this message:

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

Under more info:

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 599, 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 596, 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 96, 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 ‘immich’ app. Please check /var/log/app_lifecycle.log for more details

The logfile mentioned is attached to this post.

What is the problem here?
app_lifecycle.log.txt (407.4 KB)

I can’t offer any help, but I have had almost exactly the same problem with a different app, Tdarr, which I’ve tried to install several times over about four months on Scale 24.04, 24.10 and 25.04, each time failing with almost exactly the same error messages as you report here, other than the app names and some line numbers. I’ve posted a thread about it here.

1 Like

Thanks man.
Lets hope someone here can help us. I have no clue what else i could try, other than start from scratch with a new TrueNAS install.

It seems like the postgres container is having some issues. Saying that it was already created. This is the first time you have installed immich right?

What are the permissions on the dataset for postgres?

1 Like

Hi, thanks for answering!
I tired installing it many times over the last weeks, but all tries never went beyond the error during setup AFAIK.
I checked with Portainer, and the only Postgres Containers are for other apps like Joplin etc.
I used the default in the setup for the Postgres container, the iX Volume without specifiying a custom path.
I tried a custom path before without luck, and tried both “netdata” and “root” as owners, even with permissions allowing everyone access to read and write the dataset.
Thanks again and a great evening!