csot/contest

Task 04 — Misleading Redis Error

How to evaluate

csot challenge start -w week-02 -t 04
# SSH in with printed host, port, password
# cd ~/incident-04 — fix the stack on the VM
csot challenge verify

Edit files under ~/incident-04 on the VM, then docker compose up -d --build.

Logs scream Redis. The team is debugging Redis. Redis is innocent.

ERROR: could not connect to redis at 127.0.0.1:6379: connection refused
FATAL: request handler failed

/api/users returns 500. Fix the stack so the API can reach Postgres and is reachable on the Docker network.

What the grader checks

  • /health reachable on the compose network (3 pts)
  • GET /api/users returns 200 with a count field (8 pts)
  • app and db share a Docker network (3 pts)

Fixing only REDIS_HOST is not enough.

Points: 14

Other tasks