From cf78ab2f8e616921ad47431a5b1eb94d86c2f1fe Mon Sep 17 00:00:00 2001 From: Marcel Date: Fri, 15 May 2026 17:37:15 +0200 Subject: [PATCH] fix(staging): correct backend healthcheck port and OTel endpoint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two bugs introduced when the management port was split from the app port: 1. Backend healthcheck hit localhost:8080/actuator/health (app port) — actuator is on management.server.port=8081, so every probe got a 404 from the main MVC dispatcher, marking the container permanently unhealthy. Fix: change the probe to localhost:8081. 2. OTEL_EXPORTER_OTLP_ENDPOINT was not set in .env.staging, so the exporter fell back to http://localhost:4317 (the CI-safe default) instead of http://tempo:4317 (the in-network Tempo service). Fix: inject the correct endpoint in the nightly env-file generation step. Co-Authored-By: Claude Sonnet 4.6 --- .gitea/workflows/nightly.yml | 1 + docker-compose.prod.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/nightly.yml b/.gitea/workflows/nightly.yml index 81cf885c..face210c 100644 --- a/.gitea/workflows/nightly.yml +++ b/.gitea/workflows/nightly.yml @@ -85,6 +85,7 @@ jobs: GLITCHTIP_SECRET_KEY=${{ secrets.GLITCHTIP_SECRET_KEY }} GLITCHTIP_DOMAIN=https://glitchtip.archiv.raddatz.cloud SENTRY_DSN=${{ secrets.SENTRY_DSN }} + OTEL_EXPORTER_OTLP_ENDPOINT=http://tempo:4317 EOF - name: Verify backend /import:ro mount is wired diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index b677d11e..28abaec5 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -216,7 +216,7 @@ services: networks: - archiv-net healthcheck: - test: ["CMD-SHELL", "wget -qO- http://localhost:8080/actuator/health | grep -q UP || exit 1"] + test: ["CMD-SHELL", "wget -qO- http://localhost:8081/actuator/health | grep -q UP || exit 1"] interval: 15s timeout: 5s retries: 10