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 <addon-builder@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
authored and GitHub committed 2026-11-03 15:11:29 +01:00
1 parent a7596001be
commit aaa6a264bc
3 files changed
+6 -3

No files matched your search

+3
View File
@@ -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) ## 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) - 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)
+2 -2
View File
@@ -137,8 +137,8 @@ RUN \
ENV HEALTH_PORT="2341" \ ENV HEALTH_PORT="2341" \
HEALTH_URL="" HEALTH_URL=""
HEALTHCHECK \ HEALTHCHECK \
--interval=5m \ --interval=5s \
--retries=5 \ --retries=5 \
--start-period=30s \ --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 CMD curl -A "HealthCheck: Docker/1.0" -s -o /dev/null "http://127.0.0.1:${HEALTH_PORT}${HEALTH_URL}" || exit 1
+1 -1
View File
@@ -131,5 +131,5 @@ services:
slug: photoprism slug: photoprism
udev: true udev: true
url: https://github.com/alexbelgium/hassio-addons url: https://github.com/alexbelgium/hassio-addons
version: "2026.10.29.1" version: "2026.10.29.2"
video: true video: true