home-assistant / home-assistant/supervisor

Add a healthcheck to Supervisor and have a listener trigger a rebuild if it becomes unhealthy

Open
#6,444 2 comments 1 reaction 0 assignees View on GitHub
auto-closed
Dominant language
Python
Stars
2.2k
Forks
806
Avg merge
1d 6h
Merged PRs (30d)
55

Description

### Description

If Supervisor had a healthcheck in its image then a listener could trigger a rebuild if it became unhealthy automatically. This would help users in situations like #6331 (and the other issues linked from that one) for example without resorting to drastic measures like a reinstall or using the host shell to manually remove the container.

Observer and OS Agent both have access to the docker socket and so could be the listener here that triggers the rebuild. OS Agent also has sentry access I believe so it could possibly report any info it could collect on Supervisor first to help us debug how Supervisor got into a stalled state in the first place and stop that from happening. Though the particular linked issue doesn't seem to have any useful information available unfortunately so I'm not sure how helpful this would be.

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reviewing how the Supervisor image currently runs and how Observer or OS Agent accesses the Docker socket and handles rebuilds. No file or test is identified in the issue; the work is complete when an unhealthy Supervisor is detected, a listener safely triggers its rebuild, and the relevant diagnostic behavior is agreed and tested.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
devops, infrastructure
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.