Task 09 — Exec Rescue (Five Bugs)
How to evaluate
csot challenge start -w week-02 -t 09
# SSH in with printed host, port, password
# cd ~/incident-09 — fix the stack on the VM
csot challenge verify
Fix inside the running container via SSH (docker exec). No image rebuild.
Production freeze: no image rebuild. Fix the running container from inside
with an idempotent fix.sh.
Bugs stacked in the container:
1. Stale /tmp/app.lock
2. /app/data owned by root (app runs as uid 10001)
3. .runtime.env has API_MODE=dev
4. Broken config.json symlink
5. Missing internal.api in /etc/hosts
What the grader checks
fix.shexits 0 and starts the app (5 pts)GET /health→ 200 (5 pts)POST /api/heartbeat→ 201/200 (4 pts)