asterisk-hass-addons icon indicating copy to clipboard operation
asterisk-hass-addons copied to clipboard

Addon watchdog

Open chrodriguez opened this issue 11 months ago • 3 comments

Hello, I've been using this addon for six months and it works great. Sometimes when homeassistant machine restarts, asterisk addon remains stopped. But, I've configured:

image

This watchdog setting makes me go and read Home Assistant add-on configuration, and I've detected that this entry is not configured in asterisk/config.yaml. May be I'm wrong, but it may be helpful to add something like:

watchdog: tcp://[HOST]:5060

Thanks in advance

chrodriguez avatar Mar 13 '24 12:03 chrodriguez

That's a great idea. Feel free to contribute as a PR. The most difficult part is testing, I suppose.

felipecrs avatar Mar 13 '24 13:03 felipecrs

I don't know why it doesn't say it on the docs already, but the watchdog option is obsolete.

The watchdog option in the GUI (should) simply restarts the add-on when it crashes and stops. No idea why you are having problems though. Do you see any related errors / warnings in the supervisor logs?

TECH7Fox avatar Jul 10 '24 18:07 TECH7Fox

@TECH7Fox we could still add a HEALTHCHECK though, to detect situations where the add-on is stuck.

Example:

  • https://github.com/hassio-addons/addon-vscode/pull/665

felipecrs avatar Jul 10 '24 18:07 felipecrs