Home Assistant Re-Install Failed

I’m a novice at best with TrueNas so apologies in advance.

Home Assistant failed to deploy after applying the update, restarts of the server failed to address the issue. Roll back of the update also failed to deploy.

I subsequently deleted the app in an attempt to start fresh but the install fails. I saw some references to pulling the image manually, which was successful and I can see it in the images but beyond that don’t know what to do next.

This is the error message I receive from the jobs screen when installing the app;
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 ‘home-assistant’ app. Please check /var/log/app_lifecycle.log for more details

Any help would be greatly appreciated!

1 Like

Few things i have attempted:
/var/log/app_lifecycle.log has the following error;
container ix-home-assistant-postgres-1 is unhealthy

installation selecting either ix-volume (original) or host volume (automatic permisions) gives the same error, as does a rollback of snapshots i have of the home-asssistant postgres folder.

I can’t figure out how to get into ix-apps to delete any redundant data that may be interfering. is there a function in truenas to clean redundant files/folders/cache ect?

I’ve tried giving netdata and docker, user and group access to the host folders i made and no change.

I really want to avoid a fresh install of the OS/Pools as i’ll need to redo my adguard and plex servers.

Solution if anyone comes across it. I suspect it is the latter of the two below;

I created separate host folders for config, media and postgres. Each with app owner.

I deleted any images in ‘Manage Container Images’ that mentioned postgres.

1 Like

I have the exact same error but i dont understand your fix.
edit: found the manage container images and deleted 2 items related to postgres. no change though. what does “each with app owner” mean? i always had 3 dedicated folders. :S

p.s was working for fine days, and then boom cant deploy anymore after a reboot.

In my situation I had ixvolumes initially and created new host folders the permissions for the postgres folder are here:

The permissions were automatically created on my install and the other two folders differ. The red line is my username.

I also deleted all the images that had postgres in the name, I am fairly confident that i had tried the folder permisions previously.

Hi. This did not work for me. What did end up working was changing Postgres image to 17 in the App config.