csot/contest

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)

  • /health returns 2xx (3 pts)
  • 15 consecutive GET /api/users all return 200 (7 pts)
  • Data survives docker compose restart app (4 pts)

Hints

  • docker compose ps, docker compose logs app db
  • docker exec app getent hosts db
  • docker network inspect
  • Redis warnings in logs are a red herring

Points: 14

Other tasks