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
/healthreachable on the compose network (3 pts)GET /api/usersreturns 200 with acountfield (8 pts)appanddbshare a Docker network (3 pts)
Fixing only REDIS_HOST is not enough.