Troubleshooting¶
Common issues and solutions.
Services Not Starting¶
Check Docker Services¶
All services should show "Up": - api - web - db (PostgreSQL) - redis - mailpit
Restart Services¶
View Logs¶
# All services
docker compose logs -f
# Specific service
docker compose logs -f api
docker compose logs -f web
Cannot Log In¶
Demo Mode Not Working¶
- Verify demo mode enabled:
Should show: AUTH_MODE_DEMO=true (or empty in development)
-
Check API logs:
-
Verify database seeded:
Should show 4 demo users.
OAuth Not Working¶
-
Verify OAuth configuration in
.env: -
Check OAuth callback URL matches GitHub/Google OAuth app settings
-
Verify environment is production:
No Data / Empty Dashboard¶
Reseed Database¶
This creates: - 50 users - 2 teams - 36 questions - 12 weeks of pulse data
Verify Seed Data¶
Expected output: - Users: 50 - Teams: 2 - Questions: 36 - Pulse responses: 800+
Database Connection Errors¶
PostgreSQL Not Accessible¶
-
Check PostgreSQL running:
-
Test connection:
-
Verify DATABASE_URL in
.env:
Run Migrations¶
Redis Connection Errors¶
-
Check Redis running:
-
Test connection:
Expected: PONG
- Verify REDIS_URL in
.env:
Port Conflicts¶
Port Already in Use¶
If ports 3000, 5173, 5432, 6379, or 8025 are in use:
-
Find process using port:
-
Kill process:
-
Or change ports in
docker-compose.yaml:
Email Not Sending¶
Check Email Configuration¶
Test with Mailpit (Development)¶
- Access Mailpit:
http://localhost:8025 - Check emails in Mailpit inbox
- Verify SMTP settings:
Production Email Issues¶
- Verify credentials for SMTP or Resend
- Check email queue:
- Admin → Email Queue
- View logs:
Permission Errors¶
Cannot Answer Questions¶
- Verify role:
- Admin → Users → [Your User]
-
Check team memberships and roles
-
Required role: Moderator, Admin, or Owner
Cannot Access Admin Panel¶
- Required role: Admin or Owner
- Verify in database:
Performance Issues¶
Slow Search¶
Full-text search requires GIN indexes:
Verify indexes:
Should show question_search_idx (GIN index).
High Memory Usage¶
-
Check Docker resource limits:
-
Increase Docker memory (Docker Desktop → Settings → Resources)
-
Reduce worker processes in production
Frontend Not Loading¶
White Screen / Blank Page¶
-
Check frontend logs:
-
Verify API accessible:
-
Check CORS settings in
.env:
401 Unauthorized Errors¶
- Clear cookies: Browser DevTools → Application → Cookies → Clear
- Log out and back in
- Verify session secrets in
.envare set
Pre-Flight Check Failures¶
Run diagnostics:
This checks: - Docker services - Database connectivity - API health - Frontend accessibility - Authentication flow - Seed data integrity
Exit code 0 = all checks passed
Exit code 1 = see output for failed checks
Still Having Issues?¶
-
Check logs:
-
Verify environment variables:
-
Reset everything:
-
Open an issue: GitHub Issues
Include: - Error messages - Docker logs - Environment (OS, Docker version) - Steps to reproduce