Home Assistant install Failed

Trying to install home assistant and just get this and no idea what it means, anyone else help, doing it from the apps section, made a new dataset for home assistant with apps preset and changed directories to point to that and ticked automatic permisions.

I do have adguard installed too.

Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/middlewared/job.py”, line 509, in run
await self.future
File “/usr/lib/python3/dist-packages/middlewared/job.py”, line 556, in __run_body
rv = await self.middleware.run_in_thread(self.method, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/main.py”, line 1367, 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 1364, 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 ‘home-assistant’ app, please check /var/log/app_lifecycle.log for more details

1 Like

Run cat /var/log/app_lifecycle.log and post the results

In a shell??? just tried that and says no such file or directory found

sorry, typo cat /var/log/app_lifecycle.log

now says permission denied but logged in as truenas admin so don’t understand why I don’t have permission

sudo cat /var/log/app_lifecycle.log

ok here it is

[2025/01/06 14:41:39] (ERROR) app_lifecycle.compose_action():56 - Failed ‘up’ action for ‘home-assistant’ app: Network ix-home-assistant_default Creating
Network ix-home-assistant_default Created
Container ix-home-assistant-permissions-1 Creating
Container ix-home-assistant-init-1 Creating
Container ix-home-assistant-postgres_upgrade-1 Creating
time=“2025-01-06T14:41:35Z” level=warning msg=“config uid, gid and mode are not supported, they will be ignored”
time=“2025-01-06T14:41:35Z” level=warning msg=“config uid, gid and mode are not supported, they will be ignored”
time=“2025-01-06T14:41:35Z” level=warning msg=“config uid, gid and mode are not supported, they will be ignored”
time=“2025-01-06T14:41:35Z” level=warning msg=“config uid, gid and mode are not supported, they will be ignored”
Container ix-home-assistant-postgres_upgrade-1 Created
Container ix-home-assistant-permissions-1 Created
Container ix-home-assistant-postgres-1 Creating
Container ix-home-assistant-init-1 Created
Container ix-home-assistant-postgres-1 Created
Container ix-home-assistant-home-assistant-1 Creating
Container ix-home-assistant-home-assistant-1 Created
Container ix-home-assistant-permissions-1 Starting
Container ix-home-assistant-postgres_upgrade-1 Starting
Container ix-home-assistant-init-1 Starting
Container ix-home-assistant-permissions-1 Started
Container ix-home-assistant-init-1 Started
Container ix-home-assistant-postgres_upgrade-1 Started
Container ix-home-assistant-permissions-1 Waiting
Container ix-home-assistant-postgres_upgrade-1 Waiting
Container ix-home-assistant-permissions-1 Exited
Container ix-home-assistant-postgres_upgrade-1 Exited
Container ix-home-assistant-postgres-1 Starting
Container ix-home-assistant-postgres-1 Started
Container ix-home-assistant-permissions-1 Waiting
Container ix-home-assistant-postgres-1 Waiting
Container ix-home-assistant-init-1 Waiting
Container ix-home-assistant-init-1 Exited
Container ix-home-assistant-permissions-1 Exited
Container ix-home-assistant-postgres-1 Error
dependency failed to start: container ix-home-assistant-postgres-1 is unhealthy

Ok so it’s most likely a permissions issue with your postgres dataset, though you say you used automatic permissions, which should have taken care of that.

Lets take a step back, you say

Do you mean one single dataset? The Home Assistant config requires three (config, media, postgres) if you’re using host paths for all three.

Just one under the pool, create a separate datasheet for each one then, I give that a go.

Installed using 3 separate sub datasets but still having problems with it running, even the radio browser wont run, says it can’t connect to the radio browser API, maybe it AdGuard but switched protection off and still wont do it

If anyone else has this issue and stumbles upon it, the database permissions apparently need netdata/docker permissions and not apps, i checked the box to automatically apply permissions and it worked after getting the same error as above.

1 Like