From aaa6a264bc96ac90221cf3b84f089b167cc3c687 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 3 Nov 2026 15:11:29 +0100 Subject: [PATCH] photoprism: probe health every 5s so startup is detected promptly (#3183) (#3188) With --interval=5m, Docker only probes every 5s during the 30s start period; if PhotoPrism opens its port after that window, the first successful probe comes 5 minutes later and Supervisor times out after 120s. The 5m interval was chosen for the old 'photoprism status' check; the curl check is cheap, so use the repo-standard 5s/25s values. Co-authored-by: BirdNET-Go Addon Builder Co-authored-by: Claude Opus 5.5 --- photoprism/CHANGELOG.md | 3 +++ photoprism/Dockerfile | 4 ++-- photoprism/config.yaml | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/photoprism/CHANGELOG.md b/photoprism/CHANGELOG.md index dde99e7c8f..c62f070000 100644 --- a/photoprism/CHANGELOG.md +++ b/photoprism/CHANGELOG.md @@ -1,3 +1,6 @@ +## 2026.10.29.2 (03-11-2026) +- Fix ~5 minute delay before Home Assistant reports the add-on as started: the healthcheck interval was 5 minutes, so when PhotoPrism took longer than the 30 s start period to open its port, the first successful probe came 5 minutes later. Use the standard 5 s interval now that the check is a cheap curl (#3183) + ## 2026.10.29.1 (03-11-2026) - Fix permanent unhealthy status by probing PhotoPrism's local HTTP port with curl instead of relying on `photoprism status`, which picks an unsuitable URL inside the healthcheck process (#3183) diff --git a/photoprism/Dockerfile b/photoprism/Dockerfile index 02c3d87adf..6ece46fb53 100644 --- a/photoprism/Dockerfile +++ b/photoprism/Dockerfile @@ -137,8 +137,8 @@ RUN \ ENV HEALTH_PORT="2341" \ HEALTH_URL="" HEALTHCHECK \ - --interval=5m \ + --interval=5s \ --retries=5 \ --start-period=30s \ - --timeout=60s \ + --timeout=25s \ CMD curl -A "HealthCheck: Docker/1.0" -s -o /dev/null "http://127.0.0.1:${HEALTH_PORT}${HEALTH_URL}" || exit 1 diff --git a/photoprism/config.yaml b/photoprism/config.yaml index 23af0fd9d3..a31785178e 100644 --- a/photoprism/config.yaml +++ b/photoprism/config.yaml @@ -131,5 +131,5 @@ services: slug: photoprism udev: true url: https://github.com/alexbelgium/hassio-addons -version: "2026.10.29.1" +version: "2026.10.29.2" video: true