Common Issues
Find solutions to frequently encountered problems when developing with and running the Nadoo AI platform.Port already in use (3000, 8000)
Port already in use (3000, 8000)
Symptom: The frontend or backend fails to start with an Then restart the service:
EADDRINUSE or Address already in use error.Solution: Identify and terminate the process occupying the port.Docker not running
Docker not running
Symptom: Commands fail with If Docker is not running:
Cannot connect to the Docker daemon or docker: command not found.Solution: Verify that Docker is installed and the daemon is running.- macOS / Windows: Open Docker Desktop and wait for it to fully start (the whale icon should be steady, not animating).
- Linux: Start the Docker daemon with
sudo systemctl start docker.
Nadoo AI requires Docker Engine 20.10+ and Docker Compose V2.
Python package installation errors
Python package installation errors
Symptom: Errors like After installing build tools, retry the installation:
Failed building wheel, error: command 'gcc' failed, or missing headers during pip install.Solution: Install the required build tools for your operating system.- macOS
- Ubuntu / Debian
- Windows
Database migration errors
Database migration errors
Symptom: Errors related to missing tables, columns, or Alembic revision conflicts when starting the backend.Solution: Run the Alembic migration to bring the database schema up to date.If you encounter a revision conflict:
Redis connection refused
Redis connection refused
Symptom: Verify the Redis connection URL in your
ConnectionRefusedError: [Errno 111] Connection refused or Error 61 connecting to localhost:6379.Solution: Redis is required for task queuing, caching, and real-time features. Check that the Redis container is running..env file:Frontend build errors
Frontend build errors
Symptom: If the error persists, clear the Next.js cache:
Module not found, Cannot resolve dependency, or other build failures when starting the Next.js frontend.Solution: Clean and reinstall dependencies.Nadoo AI requires Node.js 18+ and npm 9+. Check your version with
node --version and npm --version.AI provider API key errors
AI provider API key errors
Symptom:
AuthenticationError, Invalid API key, or 401 Unauthorized when the AI agent attempts to call a model.Solution:- Check your
.envfile for the correct environment variable:
- Verify the key is valid by testing it directly:
- Restart the backend after changing environment variables:
CORS errors
CORS errors
Symptom: Browser console shows Restart the backend after updating:
Access to fetch at 'http://localhost:8000/...' from origin 'http://localhost:3000' has been blocked by CORS policy.Solution: Ensure the frontend origin is listed in the backend’s CORS configuration.In your .env file:WebSocket connection fails
WebSocket connection fails
Symptom: Chat messages do not stream in real time, the connection indicator shows “disconnected”, or the browser console shows WebSocket errors.Solution:
- Ensure the backend is running and accessible:
- Check WebSocket proxy settings. If you are using a reverse proxy (Nginx, Caddy, Traefik), ensure it is configured to proxy WebSocket connections:
- Check the WebSocket URL in your frontend environment:
- Firewall and network: Ensure port 8000 is open and WebSocket traffic is not being blocked by a corporate firewall or VPN.
Debugging Techniques
Enable Debug Logging
Set the log level toDEBUG for more detailed output from the backend:
Inspect Docker Containers
Check Database State
Getting Help
If you are still stuck after trying the solutions above:Check GitHub Issues
Search GitHub Issues for similar problems and existing solutions.
Ask the Community
Join our Discord and describe your issue in the support channel.
Next Steps
FAQ
Frequently asked questions about the platform
Self-Hosting Guide
Deployment and configuration reference
Environment Variables
Complete list of configuration options
Core Concepts
Core concepts for building with Nadoo AI