Skip to main content

Troubleshooting

Process and boot​

SymptomCauseFix
exits at boot: DATABASE_URL is requiredthe only runtime is real Postgresset DATABASE_URL (chart: database.url or database.existingSecret)
exits at boot: KAFKA_BROKERS is requiredsame rule for Kafkaset KAFKA_BROKERS (chart: kafka.brokers)
exits at boot naming a *_CONSUMER_GROUP variableone of the eleven pinned group ids is missing (fail-closed by design)set all eleven — see Configuration; never rename one in a running environment
CrashLoop with run migrations errormigrations could not run; behind PgBouncer the session-scoped advisory lock cannot passset MIGRATIONS_DATABASE_URL to a direct DSN
helm render fails naming a valuethe chart refuses a render without a database source / brokers / with a *_MODE envsupply the named value; there are no modes to enable

Readiness​

SymptomCauseFix
/readyz 503 dependency-unavailable naming postgresPostgres unreachablecheck the DSN / the secret; liveness stays 200, so the pod is not killed
/readyz 503 naming kafkano broker answered a metadata requestcheck KAFKA_BROKERS; a topic missing is never a readiness failure — only broker reachability is
/readyz 503 {"status":"not_ready"} without dependenciesthe drain gate: shutdown flipped itexpected during rollovers; traffic drains for SHUTDOWN_DRAIN_DELAY (default 5 s)
consumer retry logs for one topic, readiness finethe topic's producer has not written yet / topic absentnothing to fix here; the producer owns topic creation

"No case opened"​

SymptomCauseFix
fact consumed, no case, WARN no policy declared for the source typethe source type has no declared ExceptionPolicy — the most common gap; the fact is committed past, not dead-letteredPUT /exception-policies/{sourceType} with severity/queue/slaMinutes; re-fire the fact (new CloudEvents id) to open the case
two anomalies became one casesame dedup key (source_type, source_subject, site_id) — by designthat is the design: one case per problem; occurrence_count says how often
auto-resolve did not firecorrelated fact arrived outside within_minutes of last_seen_at (edge inclusive), or the orders do not match (correlation is order-level), or no auto_resolve on the policycheck the current policy of the case's source type (GET /exception-policies/{sourceType}): AutoResolveOnCorrelation reads the latest declared version at correlation time, not the version the case opened under, so a later version without an auto_resolve rule stops closing cases that are already open; resolve manually in doubt
resolved case received the fact again, stayed resolveda fact after resolution touches (occurrence + 1) and never reopens — v1 has no reopenby design; open questions belong on a new incident

REST errors​

Status / slugCauseFix
405 method-not-allowed on POST /exceptionsby design: every case starts from a consumed factproduce the fact on its topic (Quickstart)
400 idempotency-key-requireda write without the headersend Idempotency-Key on every POST and on PUT policy
409 idempotency-key-reusedsame key replayed with a different method, path or bodythe first answer is the stored one (an exact repeat carries Idempotency-Replayed: true); use a new key only for a new intent
400 malformed-request-bodybad JSON, unknown field, trailing data — strict by design; also a NUL bytesend exactly the contract's body
409 case-already-resolvedresolve (or a state change) on a terminal caseresolution is terminal; a recurring problem is a touch, reopen is not in v1
409 concurrent-modificationtwo writers raced the aggregate versionre-read the case, reapply the intent
503 dependency-unavailablePostgres failed during the requestcheck the database; the write was not applied

Kafka and the outbox​

SymptomCauseFix
messages pile up in <topic>.dlqpayloads that can never apply (see Runbook)read the x-dlq-* headers; fix producer/policy, then replay — the id ledger makes it safe
events on the wire stoprelay excluded a poison row after OUTBOX_MAX_ATTEMPTS (default 20) attempts, or Kafka was down through the budgetthe row is parked in the DLQ, not lost; after the fix, republish from the outbox payload
duplicate events on the wire after a crashthe relay republishes an uncertain batch — byte-identically, same CloudEvents idnothing to fix: consumers dedupe on id
consumer group re-reads the topic from the starta group id was renamedrestore the previous *_CONSUMER_GROUP value