homebox: healthcheck must GET, not HEAD (--spider hit a 405)
With the image and the pepper fixed, homebox still sat unhealthy. The probe's own exit code was 8 (server error response) and homebox's log shows exactly why: method=HEAD path=/api/v1/status status=405 method=GET path=/api/v1/status status=200 'wget --spider' issues a HEAD request; homebox's status endpoint only implements GET. Switched to 'wget -q -O /dev/null' (a real GET). NOTE: 24 templates use --spider. The rest validated green, so their endpoints do answer HEAD -- but this is a latent trap worth a convention note (see the campaign doc). Campaign 7 catalog sweep. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Nn3VgQk9iwEGgyx6QJ2NvE
This commit is contained in:
@@ -29,7 +29,10 @@ services:
|
|||||||
limits:
|
limits:
|
||||||
memory: 256M
|
memory: 256M
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:7745/api/v1/status"]
|
# NEM --spider: az HEAD kérést küld, amire a homebox /api/v1/status
|
||||||
|
# 405-tel válaszol (GET-re viszont 200). A próba emiatt hibázott,
|
||||||
|
# a konténer unhealthy lett, a Traefik pedig 404-et adott.
|
||||||
|
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:7745/api/v1/status"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|||||||
Reference in New Issue
Block a user