truenas / charts

TrueNAS SCALE Apps Catalogs & Charts
BSD 3-Clause "New" or "Revised" License
301 stars 290 forks source link

Home Assistant App Version: 2024.5.5 stuck deploying #2544

Closed sync-by-unito[bot] closed 3 months ago

sync-by-unito[bot] commented 4 months ago

Trying to install and configure app but it doesn’t deploy.

┆Attachments: Screenshot from 2024-06-07 08-45-19.png | Screenshot from 2024-06-07 08-48-01.png

sync-by-unito[bot] commented 4 months ago

➤ Bug Clerk commented:

Thank you for submitting this TrueNAS Bug Report! So that we can quickly investigate your issue, please attach a Debug file and any other information related to this issue through our secure and private upload service below. Debug files can be generated in the UI by navigating to System > Advanced > Save Debug.

https://ixsystems.atlassian.net/servicedesk/customer/portal/15/group/37/create/153

sync-by-unito[bot] commented 4 months ago

➤ Michelle Johnson commented:

Thank you for your report, Kuru!

First, have you cleared the browser cache? Sometimes a hard reset of the cache clears it to show the actual status. Right click on the screen and select Inspect. This opens a side panel. With the panel open, right click on the browser refresh icon and select Hard Reset. If doesn’t clear the issue, check to see if you have the log icon for pod logs.

On the Installed applications screen, select the row for Home Assistant, locate the Workloads widget and look for the View Logs icon. If not present, the app has not deployed. If present, try to open it to check for any issues preventing it from fully deploying.

sync-by-unito[bot] commented 4 months ago

➤ Kuru commented:

Michelle Johnson

One container doesn’t have a log, the 2nd one shows the following.

2024-06-06 01:04:58.364792-04:00chmod: changing permissions of '/var/lib/postgresql/data': Operation not permitted 2024-06-06 01:04:58.384186-04:00The files belonging to this database system will be owned by user "postgres". 2024-06-06 01:04:58.384224-04:00This user must also own the server process. 2024-06-06 01:04:58.384232-04:002024-06-06T01:04:58.384232014-04:00 2024-06-06 01:04:58.384243-04:00The database cluster will be initialized with locale "en_US.utf8". 2024-06-06 01:04:58.384249-04:00The default database encoding has accordingly been set to "UTF8". 2024-06-06 01:04:58.384265-04:00The default text search configuration will be set to "english". 2024-06-06 01:04:58.384270-04:002024-06-06T01:04:58.384270871-04:00 2024-06-06 01:04:58.384275-04:00Data page checksums are disabled. 2024-06-06 01:04:58.384285-04:002024-06-06T01:04:58.384285523-04:00 2024-06-06 01:04:58.384369-04:00initdb: error: could not change permissions of directory "/var/lib/postgresql/data": Operation not permitted 2024-06-06 01:04:58.385027-04:00fixing permissions on existing directory /var/lib/postgresql/data ...

sync-by-unito[bot] commented 4 months ago

➤ Michelle Johnson commented:

Thank you for your response, Kuru!

Your issue ticket is in the queue for review. An Engineering representative will update with further details or questions in the near future.

sync-by-unito[bot] commented 4 months ago

➤ Stavros Kois commented:

Hello Kuru .

I take that you have setup Postgres Data to use a Host Path. You have to make sure the user/group 999:999 have read and write access on that directory.

(Note that on the host 999 might not appear as postgres user, but this is the ID the postgres container is using).

Let me know if this solved your issue.

Thanks

sync-by-unito[bot] commented 4 months ago

➤ Kuru commented:

Attached is a screenshot of the permission for the folder. It looks like the Netdata/user 999 was already part of the permission structure of that folder.

That permission was automatically added when i install the app.

!Screenshot from 2024-06-07 08-48-01.png|width=1628,height=111,alt="Screenshot from 2024-06-07 08-48-01.png"!

!Screenshot from 2024-06-07 08-45-19.png|width=1569,height=468,alt="Screenshot from 2024-06-07 08-45-19.png"!

sync-by-unito[bot] commented 4 months ago

➤ Kuru commented:

In the user list ud 999 is netdata not postgres.

After checking this the app is still being blocked from deploying.

sync-by-unito[bot] commented 4 months ago

➤ Stavros Kois commented:

Please check the logs again.

Also share the output of

ls -la /mnt/Wading/Home-Assistant

Thanks