2026-02-11 06:15:54 +00:00
# Troubleshooting
2026-02-11 12:59:37 +00:00
This is the “symptom → checks → likely fixes” page.
2026-02-11 06:30:08 +00:00
2026-02-11 12:59:37 +00:00
For deeper playbooks, see:
2026-02-11 06:30:08 +00:00
- [Troubleshooting deep dive ](troubleshooting/README.md )
2026-02-11 06:15:54 +00:00
2026-02-11 12:59:37 +00:00
## Triage map
2026-02-11 06:15:54 +00:00
2026-02-11 12:59:37 +00:00
| Symptom | Fast checks | Likely fix |
|---|---|---|
| UI loads but API calls fail / Activity feed blank | Browser devtools shows `/api/v1/*` failures; check backend `/healthz` | Fix `NEXT_PUBLIC_API_URL` (must be browser-reachable) |
| UI redirects / Clerk errors | Is `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY` set? Are Clerk redirects correct? | Unset keys for local dev without Clerk; configure real keys for prod |
| Backend `/healthz` fails | Is backend container/process running? check backend logs | Fix crash loop: env vars, DB connectivity, migrations |
| Backend returns 5xx | Check DB connectivity (`DATABASE_URL` ), DB logs | Fix DB outage/misconfig; re-run migrations if needed |
| Browser shows CORS errors | Compare `CORS_ORIGINS` vs frontend origin | Add frontend origin to `CORS_ORIGINS` |
2026-02-11 06:15:54 +00:00
2026-02-11 12:59:37 +00:00
## Common checks
2026-02-11 06:15:54 +00:00
2026-02-11 12:59:37 +00:00
### 1) Verify backend health
2026-02-11 06:15:54 +00:00
2026-02-11 12:59:37 +00:00
```bash
curl -f http://localhost:8000/healthz
```
### 2) Verify frontend can reach backend
- Ensure `NEXT_PUBLIC_API_URL` matches the backend URL the browser can reach.
### 3) Check logs
```bash
docker compose -f compose.yml --env-file .env logs -f --tail=200 backend
```
2026-02-11 06:15:54 +00:00
## Next
2026-02-11 12:59:37 +00:00
If you hit a recurring incident, promote it from the deep-dive page into this triage map.