open-notebook/docs/troubleshooting/index.md
Luis Novo b7e656a319
Version 1 (#160)
New front-end
Launch Chat API
Manage Sources
Enable re-embedding of all contents
Sources can be added without a notebook now
Improved settings
Enable model selector on all chats
Background processing for better experience
Dark mode
Improved Notes

Improved Docs: 
- Remove all Streamlit references from documentation
- Update deployment guides with React frontend setup
- Fix Docker environment variables format (SURREAL_URL, SURREAL_PASSWORD)
- Update docker image tag from :latest to :v1-latest
- Change navigation references (Settings → Models to just Models)
- Update development setup to include frontend npm commands
- Add MIGRATION.md guide for users upgrading from Streamlit
- Update quick-start guide with correct environment variables
- Add port 5055 documentation for API access
- Update project structure to reflect frontend/ directory
- Remove outdated source-chat documentation files
2025-10-18 12:46:22 -03:00

4.2 KiB

Troubleshooting Guide

Welcome to the Open Notebook troubleshooting guide. This section provides comprehensive solutions for common issues, debugging techniques, and best practices for getting the most out of your Open Notebook installation.

📋 Quick Navigation

🔧 Common Issues

Frequently Asked Questions

🐛 Debugging and Analysis

🚨 Emergency Quick Fixes

Service Not Starting

# Check all services
make status

# Restart everything
make stop-all
make start-all

Database Connection Issues

# Restart database
docker compose restart surrealdb

# Check database logs
docker compose logs surrealdb

API Errors

# Check API logs
docker compose logs open_notebook

# Restart API only
pkill -f "run_api.py"
make api

Memory Issues

# Check resource usage
docker stats

# Increase Docker memory limit
# Docker Desktop → Settings → Resources → Memory

🔍 First Steps for Any Issue

  1. Check Service Status

    make status
    
  2. Review Recent Logs

    docker compose logs --tail=50 -f
    
  3. Verify Configuration

    # Check environment variables
    cat .env | grep -v "API_KEY"
    
    # For Docker
    cat docker.env | grep -v "API_KEY"
    
  4. Test Basic Connectivity

    # Database
    curl http://localhost:8000/health
    
    # API
    curl http://localhost:5055/health
    
    # UI
    curl http://localhost:8502/healthz
    

📞 Getting Help

Community Support

Before Asking for Help

  1. Check this troubleshooting guide
  2. Search existing GitHub issues
  3. Collect relevant logs and error messages
  4. Note your installation method and environment
  5. Include steps to reproduce the issue

Information to Include

  • Installation method (Docker/source)
  • Operating system and version
  • Error messages and logs
  • Configuration (without API keys)
  • Steps to reproduce the issue

🛠️ Advanced Troubleshooting

For complex issues that aren't covered in the basic guides:

  1. Enable Debug Logging

    # Add to .env or docker.env
    LOG_LEVEL=DEBUG
    
  2. Use Development Mode

    # For more detailed error information
    make dev
    
  3. Check System Resources

    # Monitor resource usage
    htop
    docker stats
    
  4. Test Individual Components

    # Test database connection
    uv run python -c "from open_notebook.database.repository import repo_query; import asyncio; print(asyncio.run(repo_query('SELECT * FROM system')))"
    
    # Test AI providers
    uv run python -c "from esperanto import AIFactory; model = AIFactory.create_language('openai', 'gpt-5-mini'); print(model.chat_complete([{'role': 'user', 'content': 'Hello'}]))"
    

This troubleshooting guide is continuously updated based on user feedback and common issues. If you encounter a problem not covered here, please contribute by opening an issue on GitHub.