Troubleshooting¶
Indexing Issues¶
Index hangs on "Doc Generation"¶
Symptom: Progress bar stalls at Stage 6, no forward movement for >5 minutes.
Causes & Fixes:
-
Anthropic rate limit — reduce concurrency:
-
API key invalid or quota exhausted — verify:
-
Use
--no-docsto skip generation entirely:
ModuleNotFoundError on startup¶
Ensure you installed into the correct Python environment:
If using a virtual environment, activate it first:
"Index inconsistent" in repobrain status¶
Symptom:
Fix: Re-index from scratch:
To find the repo ID:
Tree-sitter parse errors for some files¶
Some files may fail to parse (unsupported language or syntax error). repobrain falls back to regex parsing for these. Check logs:
PR Review Issues¶
repobrain review returns empty transitive list¶
Cause: Graph was built without those files (filtered by language or failed to parse).
Fix: Re-index with verbose logging to check coverage:
PR number not found¶
repobrain review requires a GitHub remote. Ensure your repo has a remote named origin:
Webhook Issues¶
400 responses from webhook endpoint¶
Almost always an HMAC signature mismatch. Verify:
1. REPOMIND_WEBHOOK_SECRET matches the secret configured in GitHub Settings → Webhooks
2. GitHub is sending Content-Type: application/json (not application/x-www-form-urlencoded)
Test locally with:
Performance Issues¶
Indexing takes >10 minutes for a 500-file repo¶
Default concurrency may be too low. Tune:
For repos with very large files (>500 KB), embedding may be slow. Skip large files:
Getting Help¶
- GitHub Issues: github.com/pinexai/repobrain/issues
- Enable debug logs:
REPOMIND_LOG_LEVEL=DEBUG repobrain <command> 2>&1 | tee repobrain-debug.log - Include the debug log when filing issues