Task 03 — The Flapping Stack
How to evaluate
csot challenge start -w week-02 -t 03
# SSH in with printed host, port, password
# cd ~/incident-03 — fix the stack on the VM
csot challenge verify
Edit files under ~/incident-03 on the VM, then docker compose up -d --build.
The API returns 500 on /api/users intermittently while /health is always OK.
Restarting app fixes it briefly.
What the grader checks (behavioural)
/healthreturns 2xx (3 pts)- 15 consecutive
GET /api/usersall return 200 (7 pts) - Data survives
docker compose restart app(4 pts)
Hints
docker compose ps,docker compose logs app dbdocker exec app getent hosts dbdocker network inspect- Redis warnings in logs are a red herring