Agent is unreachable
Symptoms: Admin overview shows “Agent unreachable”. API calls to create/delete databases fail.Database creation fails
Symptoms: “Agent responded with 500” or “INTERNAL_ERROR”. Common causes:- PostgreSQL is down:
sudo systemctl status postgresql - Disk full:
df -h - Database name already exists at the Postgres level but not in the app DB (orphaned)
PgBouncer connection refused
Symptoms: Clients can’t connect on port 6432.- PgBouncer config syntax error (check after agent edits)
- Max connections reached: connect to pgbouncer admin and run
SHOW POOLS;
Migration fails
Symptoms:drizzle-kit migrate errors.
Clerk webhook not firing
Symptoms: Users sign up but don’t appear in theusers table.
- Check
CLERK_WEBHOOK_SECRETis set in Vercel env vars - Verify webhook URL in Clerk dashboard points to
https://dbhost.app/api/webhooks/clerk - Check Clerk dashboard webhook logs for delivery failures
- The
ensureUser()function in the dashboard layout is a fallback — users are created on first page load even without webhooks
Admin link not showing
Symptoms: You signed in but don’t see “Admin” in the sidebar. Your user record needs theadmin role: