From 7b38ea63efe59d62f2b70f5fb0439c1c85c177b9 Mon Sep 17 00:00:00 2001 From: Frank Date: Fri, 28 Aug 2026 03:42:28 -0700 Subject: [PATCH] =?UTF-8?q?authentik:=20quote-free=20health=20probes=20?= =?UTF-8?q?=E2=80=94=20v1=20quadlet=20generator=20space-splits=20HealthCmd?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Verified live on dankclaw: the podman 5.x v1 quadlet generator splits HealthCmd values on spaces into the container healthcheck argv array, so quoted probes (sh -c "pg_isready ...") arrive mangled and every probe exits 127 — postgres read 'unhealthy' with the database actually up. Probe forms now use only space-free argv tokens: pg_isready passes its args directly; the server probe runs manage.py check --database default (verified exit-0 standalone in the image). --- dankclaw/authentik/quadlet/authentik-server.container | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dankclaw/authentik/quadlet/authentik-server.container b/dankclaw/authentik/quadlet/authentik-server.container index 12692cb..1e53480 100644 --- a/dankclaw/authentik/quadlet/authentik-server.container +++ b/dankclaw/authentik/quadlet/authentik-server.container @@ -29,11 +29,11 @@ Environment=AUTHENTIK_POSTGRESQL__USER=authentik Environment=AUTHENTIK_POSTGRESQL__PASSWORD=${AUTHENTIK_PG_PASS} Environment=AUTHENTIK_SECRET_KEY=${AUTHENTIK_SECRET_KEY} PublishPort=127.0.0.1:9000:9000 -HealthCmd=python -c "import urllib.request;urllib.request.urlopen('http://localhost:9000/-/health/')" -HealthInterval=30s -HealthTimeout=10s -HealthRetries=5 -HealthStartPeriod=30s +# Probe must contain no quotes: this host's quadlet v1 generator space-splits +# HealthCmd into the healthcheck argv array, and quoted probes arrive mangled +# (verified live 2026-08-28). `python /manage.py check --database default` +# exits nonzero iff Django (incl. the DB connection) cannot serve. +HealthCmd=python /manage.py check --database default [Service] EnvironmentFile=/home/dank/serverAppConfigs/dankclaw/.env