Skip to main content

Common failures

Each section is one symptom and what causes it. If none matches, read the stack's state first: troubleshooting. The open problems with symptoms that mislead are in known issues.

A service is unhealthy but the data is landing​

Symptom: docker compose ps shows a DFE service unhealthy or perpetually starting, docker inspect reports Health check exceeded timeout and yet events are flowing through that very service. Curl its port from inside the container and the connection is accepted instantly and then never answered: not refused, not reset, just silent. /livez and /metrics behave the same way, which rules out the readiness logic.

That is Tokio worker-thread starvation, caused by the CPU ceiling. available_parallelism() reads the cgroup quota and floors it, so a ceiling under 2.0 gives the service one worker thread, and a Kafka loop holding that thread leaves the HTTP server task unscheduled.

docker inspect --format '{{.HostConfig.NanoCpus}}' dfe-archiver # 1500000000 = 1.5

Put DFE_SERVICE_CPUS back to 2.0 or above and recreate the service. To confirm the diagnosis without touching the ceiling, set TOKIO_WORKER_THREADS=4 in env/<service>.env and recreate. If it answers, it was starvation and not a shortage of CPU.

make check-compose blocks a sub-2.0 ceiling on any service that gates on /readyz, so this should only reach you via a hand-edited override.

The self test fails on the console login​

make post logs in as admin with DFE_ENGINE_AUTH_LOCAL_ADMIN_PASSWORD from env/engine.env, the same value make creds prints. A 401 here means the running engine holds a different password from the one in env/engine.env: a rotation applied to the store alone, say. Pass the current one on the command line, since the shell environment beats env/engine.env:

DFE_ENGINE_AUTH_LOCAL_ADMIN_PASSWORD='the rotated password' make post

The self test fails on self-telemetry​

On a profile running the collector, make post claims the dfe.otel_* tables have rows newer than five minutes. Two distinct failures:

"no dfe table could be read" means nothing could read the otel tables. dfe-engine creates them from dfe-schemas at startup, and the collector runs with create_schema: false, so read the engine's health first, then whether the collector reaches ClickHouse:

docker compose logs otel-collector
docker compose exec clickhouse sh -c 'clickhouse-client --password "$CLICKHOUSE_PASSWORD" --query "SHOW TABLES FROM dfe LIKE '"'"'otel%'"'"'"'

"no rows newer than" means the tables exist and nothing is arriving, so nothing is exporting. Check that the endpoint reached the containers and that the engine is on the OTel backend:

docker compose exec dfe-engine printenv OTEL_EXPORTER_OTLP_ENDPOINT
docker compose logs dfe-engine | grep "Metrics initialized"

backend=prometheus on that last line means it is not pushing. Drop the DFE_ENGINE_API_METRICS_BACKEND line from env/engine.env, then make up.

Every DFE app the profile runs should appear. A service that is running but missing from the results IS a fault. The Rust services push whenever their OTEL_EXPORTER_OTLP_ENDPOINT is set, so check that env on the absent container the same way. Which components push and since when is in observability.md.

port is already allocated​

Usually something holding the broker's host port 19092. The broker's in-network listener 9092 is not published, so a Kafka on the host's 9092 is not the cause. The stack and the e2e harness reach the broker over the Docker network alias kafka:9092, so any free host port works:

make test-e2e KAFKA_PLAINTEXT_HOST_PORT=29192

Note the argument position: if that key is live in your .env, the VAR=x make ... form will not take. See the shadowing issue.

The gRPC-only tests need no broker at all:

make test-e2e E2E_TESTS="simple-receiver-to-loader-grpc rules-and-hunts"

Check for a stray container from a previous profile before assuming the port belongs to something else.

Compose will not start: is missing a value​

The stack is unpinned. Image versions come from the DFE stack SSoT, not from defaults, so there is no silent latest fallback:

make stack VERSION=X.Y.Z

make check-hardfail asserts this property holds. It runs compose with nothing set and needs it to fail for the right reason, then reads every image: directly and needs it to resolve to a digest, because compose aborts on the first missing variable and that run alone would miss a second.

PyYAML is not installed in this interpreter​

The e2e harness declares PyYAML and Playwright inline (PEP 723), locked in scripts/test_e2e.py.lock. make test-e2e runs it through uv, which installs them. A bare python3 scripts/test_e2e.py skips that step:

make test-e2e
uv run --locked --script scripts/test_e2e.py # the same, without make

The lockfile at uv.lock needs to be updated from either means a pin in the script moved without its lock: run uv lock --script scripts/test_e2e.py and commit both.

The power-on self test (scripts/post.py) has no such dependency: it is stdlib-only and works on a bare machine.