Skip to main content

Installation Problems

Problem: Missing required dependencies when running make check or make dev.Solution:macOS:
Linux (Ubuntu/Debian):
Windows:
Problem: Errors like ModuleNotFoundError or Python 3.12+ required.Solution:DeerFlow requires Python 3.12 or higher. Install using uv:
If you still encounter issues:
Problem: Cannot connect to the Docker daemon when using Docker sandbox mode.Solution:
  1. Start Docker Desktop:
    • macOS/Windows: Launch Docker Desktop application
    • Verify it’s running: Look for Docker icon in system tray
  2. Check Docker daemon:
  3. Restart Docker service (Linux):
  4. Add user to docker group (Linux):

Configuration Errors

Problem: Configuration file not found error when starting services.Solution:The configuration file must be in the project root directory, not the backend directory.
  1. Create config from example:
  2. Verify location:
  3. Alternative: Set environment variable:
Configuration file search order:
  1. DEER_FLOW_CONFIG_PATH environment variable
  2. backend/config.yaml (current directory)
  3. deer-flow/config.yaml (parent directory - recommended)
Problem: Invalid API key or Authentication failed errors when making LLM requests.Solution:
  1. Verify environment variables are set:
  2. Check config.yaml uses environment variable syntax:
  3. Set environment variables properly:
  4. Restart services after setting variables:
  5. Test API key directly:
Problem: extensions_config.json not found or MCP servers not working.Solution:
  1. Create extensions config from example:
  2. Verify MCP server configuration:
  3. Check environment variables in MCP config:
  4. Validate JSON syntax:
  5. Restart to reload config:
Problem: Model 'xxx' not found or Failed to import provider.Solution:
  1. Install required provider package: DeerFlow supports any LangChain-compatible provider. Install the appropriate package:
  2. Verify model configuration in config.yaml:
  3. Check for typos in provider path:
    • Correct: langchain_openai:ChatOpenAI (underscore, not hyphen)
    • Correct: langchain_anthropic:ChatAnthropic
    • Wrong: langchain-openai:ChatOpenAI
  4. Test model directly:

Dependency Issues

Problem: Address already in use when starting services.Solution:DeerFlow uses multiple ports:
  • 2024: LangGraph Server
  • 8001: Gateway API
  • 3000: Frontend
  • 2026: Nginx (unified entry point)
  • 8002: Provisioner (optional, only in Kubernetes mode)
  • 8080+: Sandbox containers (dynamic)
  1. Find process using the port:
  2. Kill the conflicting process:
  3. Stop DeerFlow services properly:
  4. Change port (advanced): Edit service configurations if you need different ports:
    • LangGraph: backend/langgraph.json
    • Gateway: backend/src/gateway/app.py
    • Frontend: frontend/package.json (dev script)
    • Nginx: nginx.conf
Problem: Frontend dependencies fail to install with errors like EACCES or ERESOLVE.Solution:
  1. Use pnpm instead of npm:
  2. Clear cache and reinstall:
  3. Fix permissions (macOS/Linux):
  4. Use Node.js 22+:

General Troubleshooting

Problem: Frontend loads but cannot connect to backend services.Solution:
  1. Verify all services are running:
  2. Test backend endpoints directly:
  3. Check nginx configuration:
  4. Restart services in order:
  5. Check frontend environment variables:
Problem: Multiple issues or corrupted state requiring fresh start.Solution:Perform a complete clean reinstall:

Next Steps