alexbelgium / hassio-addons

My homeassistant addons
MIT License
1.35k stars 193 forks source link

✨ [REQUEST] Photoprism watchdog config #1427

Open richard-scott opened 2 weeks ago

richard-scott commented 2 weeks ago

Checked

Which addon?

Photoprism

Is your feature request related to a problem? Please describe

Since the last release or two, having the watchdog setting enabled for the Add-on causes HA to restart the addon seemingly at random.

Describe the solution you'd like

Please can you add a watchdog URL to the config to properly configure this element as I have no idea what it is checking when you do not configure this. Maybe also it would be worth reaching upstream to find out what the default is. I have looked here and can't see it sets a default.

richard-scott commented 2 weeks ago

I've reported this upstream here, as the default location that the watchdog checks is not documented.

alexbelgium commented 2 weeks ago

Hi, thanks for reporting. My healthcheck is simply : https://github.com/alexbelgium/hassio-addons/blob/692137463e0432445129b680c910e62734c20ecf/photoprism/Dockerfile#L126

If the line is already included upstream, I'll simply remove it ; and the upstream instruction will take precedence

EDIT : I read your message much much too quickly - the answer is that the watchdog looks for the HEALTHCHECK property of the Dockerfile if it is not set explicitely otherwise

EDIT 2 : the solution is probably to actually increase the timeout

alexbelgium commented 2 weeks ago

Well the healthcheck was more flexible for me (and the watchdog element did not exist when I created it) as you can define the start time, the number of retries, ... But it my solution just pushed now (increase timeout) doesn't work I'll try this :-)