hassio-addons / addon-appdaemon

AppDaemon4 - Home Assistant Community Add-ons
https://addons.community
MIT License
151 stars 47 forks source link

The AppDaemon addon fails to start without an internet connection #235

Closed chatziko closed 1 year ago

chatziko commented 1 year ago

Problem/Motivation

Appdaemon is vital for my HA setup, most automations depend on it. A fully functional system without internet connection is also vital (that's why we use HA and not a cloud solution).

The problem is that the AppDaemon addon (re-)installs all configured alpine/python packages on every restart. So, if internet goes down, and the HA server restarts for any reason, AppDaemon will fail to start, causing chaos.

Is there any workaround for this? (apart from not using alpine/python packages, not really a solution).

Proposed changes

I'm not sure how feasible this is given the way addons work, but packages should be installed only when the container is created (after an update), or when the list is modified, and not on every single restart.

Another possibility could be to cache all downloaded packages, but it should done in a way that allows fully reinstalling without an internet connection.

tjorim commented 1 year ago

Duplicate of https://github.com/hassio-addons/addon-appdaemon/issues/212.

chatziko commented 1 year ago

Sorry I missed it.

Does HA always recreate the docker container of all addons on every restart? Seems strange, cause the core HA container is only re-created on updates (manual changes are preserved until the next update).

chatziko commented 1 year ago

If anyone wants to test, #237 addresses this issues by adding the option to cache packages.

github-actions[bot] commented 1 year ago

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!