home-assistant-addons icon indicating copy to clipboard operation
home-assistant-addons copied to clipboard

Addon stops when connection/forwarding fails

Open ThomDietrich opened this issue 8 months ago • 3 comments

We had a power outage today. This lead to a weird constellation in which the autossh-addon wasn't able to connect and stopped after the run script was finished.

I assume there are similar causes for connection issues and I would like to ensure that the addon never stops trying to reconnect.

I see three options to fix this:

  1. Fix my specific issue by setting the following line to "no" - not sure what that will do exactly https://github.com/ThomDietrich/home-assistant-addons/blob/01dce2b79dda9e6488c66bec46826f52f6ff3f57/autossh/run.sh#L83
  2. Put the autossh command into an endless loop - that would certainly help
  3. Make use of supervisor watchdog "will restart the addon when it fails" - I don't know how it works and what fails means. Is it a simple exit 1?

Option 3 is my favorite overall.

What do you think?

ThomDietrich avatar Oct 27 '23 11:10 ThomDietrich