packages/kilo-docs/pages/code-with-ai/gastown/troubleshooting.md
Gas Town is a complex system with multiple agents, containers, and external integrations. When things go wrong, this guide helps you diagnose and fix common issues.
Symptom: Beads stay in open status. No agents transition to working.
Common causes:
| Cause | Fix |
|---|---|
| All polecats at max dispatch attempts | Ask the Mayor: "Reset agent dispatch attempts" |
| Reconciler paused (draining) | Wait for drain to complete |
| No available polecats | Check max_polecats_per_rig — you may need to increase it |
Quick fix: Ask the Mayor: "Why aren't beads getting picked up?" — it can diagnose and often resolve the issue.
Symptom: The container status shows errors or stays in "starting" indefinitely.
Common causes:
Fix:
Symptom: Agents can't clone, push, or fetch. Errors mention "authentication failed" or "permission denied".
Common causes:
| Cause | Fix |
|---|---|
| GitHub App uninstalled | Reinstall at github.com/apps/kilo-code |
| PAT expired or revoked | Generate a new token and update in Settings → Git & Authentication |
| Repository visibility changed | Ensure the GitHub App has access to the repo |
| Org SSO not authorized | Authorize the token for your organization's SSO |
Diagnosis: The Mayor may report "git credential refresh failed: no_installation_found" — this definitively means the GitHub App needs to be reinstalled.
Symptom: A bead cycles between in_review and in_progress repeatedly, or MR beads keep failing.
Common causes:
Fix:
{% callout type="info" %} Beads automatically escalate after 3 failed review cycles. If a bead is genuinely stuck in a loop, it will eventually fail and notify you rather than running forever. {% /callout %}
Symptom: Messages to the Mayor don't get responses, or the Mayor says it's "unauthenticated".
Common causes:
Fix:
Symptom: A convoy shows open but no beads are being dispatched, or it never reaches "landed".
Common causes:
Fix:
Symptom: An agent shows as working but hasn't produced output for 20+ minutes.
Common causes:
Fix:
openSymptom: Many beads ending in failed status.
Common causes:
Fix:
If you can't resolve an issue: