New install of Home-Assistant App on Scale 24.10.
When specifying a pre-created dataset for postgres database: /mnt/SSD/Data/HomeAssistant/HomeAssistant-postgres
App install fails with - /var/log/app_lifecycle.log:
…
Container ix-home-assistant-postgres_upgrade-1 service “postgres_upgrade” didn’t complete successfully: exit 1
service “postgres_upgrade” didn’t complete successfully: exit 1
Solution:
The pre-created postgres dataset/directory is not writable by the App postgres user.
During App install, Postgres user = UID-999/GID-999
(from Truenas SSH):
root@truenas# ls -l /mnt/SSD/Data/HomeAssistant/HomeAssistant-postgres
total 17
drwxr-xr-x 2 root root 2 Dec 12 18:54 .
drwxr-xr-x 4 root root 4 Dec 12 18:54 …
root@truenas# chown 999:999 /mnt/SSD/Data/HomeAssistant/HomeAssistant-postgres
root@truenas# ls -l /mnt/SSD/Data/HomeAssistant/HomeAssistant-postgres
total 17
drwxr-xr-x 2 netdata docker 2 Dec 12 18:54 .
drwxr-xr-x 4 root root 4 Dec 12 18:54 …