fix(ci): staging failure dump includes Traefik's ACME log lines and the certificate names it holds #101
Loading…
Reference in a new issue
No description provided.
Delete branch "jfraeys/fix/staging-diag-traefik-acme"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Staging run 291 (commit
1e9a895) failed at 'headscale : Wait for Traefik's real certificate': 40 retries over about 7 minutes andvpn.jfraeys.comnever appeared in Traefik's acme.json. Earlier green runs (377, 557, 280) got that certificate in about 20 seconds. The failure dump showed Traefik healthy but nothing about ACME, and the nodes are destroyed afterwards, so the cause cannot be read from the log.What I could rule out from outside: the Cloudflare zone holds no leftover
_acme-challenge.vpnrecord (names and counts only), and thevpnA/AAAA records are DNS-only as expected. The cause is still unknown (candidate: a transient Let's Encrypt staging or Cloudflare API problem; a re-run, task 612, was already in progress).This makes the next occurrence self-explanatory. The dump now starts with Traefik's last 40 ACME/certificate/DNS/error log lines and the certificate names it holds from acme.json (names only, never certificate or key content); the Docker journal part is cut from 30 to 12 lines (it was mostly sbJoin noise) and the output window grows from 80 to 140 lines.
Tested: sh -n on the generated diagnostics script, its Python part against a fake acme.json (prints only names), shellcheck -S error clean (docker). Not exercised on a real node: that needs a failing deploy.
🤖 Generated with Claude Code