Slim README from 1576 to 200 lines. Focus on value prop (deterministic AI coding workflows), quickstart paths (AI-assisted, CLI, Web UI), and bundled workflow showcase. All reference content moved to dedicated docs: - docs/adapters/ — per-platform setup guides - docs/ai-assistants.md — Claude/Codex auth details - docs/database.md — SQLite/PostgreSQL guide + schema - docs/deployment.md — Docker + local dev setup - docs/commands-reference.md — all slash commands - docs/troubleshooting.md — common issues and fixes - docs/windows.md — Windows/WSL2 guide - docs/configuration.md — added streaming, concurrency, health endpoints
5.2 KiB
Troubleshooting
Common issues and their solutions when running Archon.
Bot Not Responding
Check if the application is running:
If running locally:
# Check the server process
curl http://localhost:3090/health
# Expected: {"status":"ok"}
If running via Docker:
docker compose ps
# Should show 'app' or 'app-with-db' with state 'Up'
Check application logs:
Local:
# Server logs are printed to stdout when running `bun run dev`
Docker:
docker compose logs -f app # If using --profile external-db
docker compose logs -f app-with-db # If using --profile with-db
Verify bot token:
# In your .env file
cat .env | grep TELEGRAM_BOT_TOKEN
Test with health check:
curl http://localhost:3090/health
# Expected: {"status":"ok"}
Database Connection Errors
Check database health:
curl http://localhost:3090/health/db
# Expected: {"status":"ok","database":"connected"}
For SQLite (default):
SQLite requires no setup. The database is created automatically at ~/.archon/archon.db. If you see errors, check that the ~/.archon/ directory exists and is writable.
For remote PostgreSQL:
# Verify DATABASE_URL
echo $DATABASE_URL
# Test connection directly
psql $DATABASE_URL -c "SELECT 1"
Verify tables exist (PostgreSQL):
psql $DATABASE_URL -c "\dt"
# Should show: remote_agent_codebases, remote_agent_conversations, remote_agent_sessions,
# remote_agent_isolation_environments, remote_agent_workflow_runs, remote_agent_workflow_events,
# remote_agent_messages
Clone Command Fails
Verify GitHub token:
cat .env | grep GH_TOKEN
# Should have both GH_TOKEN and GITHUB_TOKEN set
Test token validity:
# Test GitHub API access
curl -H "Authorization: token $GH_TOKEN" https://api.github.com/user
Check workspace permissions:
The workspace directory is ~/.archon/workspaces/ by default (or /.archon/workspaces/ in Docker). Make sure it exists and is writable.
Try manual clone:
git clone https://github.com/user/repo ~/.archon/workspaces/test-repo
GitHub Webhook Not Triggering
Verify webhook delivery:
- Go to your webhook settings in GitHub
- Click on the webhook
- Check "Recent Deliveries" tab
- Look for successful deliveries (green checkmark)
Check webhook secret:
cat .env | grep WEBHOOK_SECRET
# Must match exactly what you entered in GitHub
Verify ngrok is running (local dev):
# Check ngrok status
curl http://localhost:4040/api/tunnels
# Or visit http://localhost:4040 in browser
Check application logs for webhook processing:
Local:
# Look for GitHub-related log lines in server output
Docker:
docker compose logs -f app | grep GitHub # --profile external-db
docker compose logs -f app-with-db | grep GitHub # --profile with-db
TypeScript Compilation Errors
Clean and rebuild:
rm -rf dist node_modules
bun install
bun run build
Check for type errors:
bun run type-check
Port Conflicts
Check if port 3090 is already in use:
macOS/Linux:
lsof -i :3090
Windows:
netstat -ano | findstr :3090
You can override the port with the PORT environment variable:
PORT=4000 bun run dev
When running in a git worktree, Archon automatically allocates a unique port (3190-4089 range) so you don't need to worry about conflicts with the main instance.
Docker
These issues are specific to running Archon inside Docker containers.
Container Won't Start
Check logs for specific errors:
docker compose logs app # If using --profile external-db
docker compose logs app-with-db # If using --profile with-db
Verify environment variables:
# Check if .env is properly formatted (include your profile)
docker compose --profile external-db config # or --profile with-db
Rebuild without cache:
docker compose --profile external-db build --no-cache # or --profile with-db
docker compose --profile external-db up -d # or --profile with-db
Docker Database Issues
For local PostgreSQL (with-db profile):
# Check if postgres container is running
docker compose ps postgres
# Check postgres logs
docker compose logs -f postgres
# Test direct connection
docker compose exec postgres psql -U postgres -c "SELECT 1"
Verify tables exist (Docker PostgreSQL):
docker compose exec postgres psql -U postgres -d remote_coding_agent -c "\dt"
# Should show: remote_agent_codebases, remote_agent_conversations, remote_agent_sessions,
# remote_agent_isolation_environments, remote_agent_workflow_runs, remote_agent_workflow_events,
# remote_agent_messages
Docker Clone Issues
Check workspace permissions inside the container:
docker compose exec app ls -la /.archon/workspaces # --profile external-db
docker compose exec app-with-db ls -la /.archon/workspaces # --profile with-db
Try manual clone inside the container:
docker compose exec app git clone https://github.com/user/repo /.archon/workspaces/test-repo
# Or app-with-db if using --profile with-db