mirror of
https://github.com/lfnovo/open-notebook.git
synced 2026-05-02 13:20:30 +00:00
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
4.2 KiB
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
-
Check Service Status
make status -
Review Recent Logs
docker compose logs --tail=50 -f -
Verify Configuration
# Check environment variables cat .env | grep -v "API_KEY" # For Docker cat docker.env | grep -v "API_KEY" -
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
- Discord: https://discord.gg/37XJPXfz2w
- GitHub Issues: https://github.com/lfnovo/open-notebook/issues
- Installation Assistant: ChatGPT Assistant
Before Asking for Help
- Check this troubleshooting guide
- Search existing GitHub issues
- Collect relevant logs and error messages
- Note your installation method and environment
- 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:
-
Enable Debug Logging
# Add to .env or docker.env LOG_LEVEL=DEBUG -
Use Development Mode
# For more detailed error information make dev -
Check System Resources
# Monitor resource usage htop docker stats -
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'}]))"
📚 Related Documentation
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.