docs/6-TROUBLESHOOTING/index.md
Having issues? Use this guide to diagnose and fix problems.
Step 1: Identify your problem
Step 2: Find the right guide
Step 3: Follow the steps
→ Connection Issues — Frontend can't reach API
→ AI & Chat Issues — Wrong or missing API key
→ AI & Chat Issues — Model not configured
→ Connection Issues — Service not running or port wrong
→ Quick Fixes — Port conflict
→ Quick Fixes — File permissions issue
→ Quick Fixes — File format not supported
→ Quick Fixes — File too large or slow processing
When something isn't working:
docker psdocker compose logs api (or frontend, surrealdb)netstat -tlnp or lsof -i :5055curl http://localhost:5055/healthdocker inspect <container>docker compose restartIf you can't find the answer here:
Include:
docker compose logsTop 10 most common issues with 1-minute solutions.
Frontend can't reach API, network problems.
Chat not working, bad responses, slow performance.
Frequently asked questions about usage, costs, and best practices.
Service won't start?
# Check logs
docker compose logs
# Restart everything
docker compose restart
# Nuclear option: rebuild
docker compose down
docker compose up --build
Port conflict?
# Find what's using port 5055
lsof -i :5055
# Kill it or use different port
Can't connect?
# Test API directly
curl http://localhost:5055/health
# Should return: {"status":"ok"}
Slow performance?
# Check resource usage
docker stats
# Reduce concurrency in .env
SURREAL_COMMANDS_MAX_TASKS=2
High costs?
# Switch to cheaper model
# In Settings → Models → Choose gpt-4o-mini (OpenAI)
# Or use Ollama (free)
Before asking for help:
Then: