This guide provides solutions to common issues you might encounter when working with the Edge AI platform.
- Service Startup Issues
- Port Conflicts
- Model Loading Problems
- API Access Issues
- Monitoring and Logs
- Common Error Messages
Symptoms: Containers exit immediately after starting or fail to start.
Solution:
- Check container logs:
docker-compose logs [service_name]
- Verify Docker has enough resources (CPU, memory, disk space)
- Check for port conflicts (see Port Conflicts)
Symptoms: Ollama container shows as "restarting" in docker-compose ps
Solution:
- Check logs for specific errors:
docker-compose logs ollama
- Verify port 11434/11435 is available
- Check disk space in Docker storage
Symptoms: Errors about ports being in use when starting services.
Solution:
- Identify the process using the port:
sudo lsof -i :[port_number] # or sudo netstat -tulpn | grep [port_number]
- Stop the conflicting process or change the port in
docker-compose.yml
Symptoms: Errors about invalid or corrupted model files.
Solution:
- Verify the model file exists in the
./modelsdirectory - Check file permissions:
ls -l models/
- Test the model file locally:
python3 test_onnx_model.py
Symptoms: API endpoints return 404 errors.
Solution:
- Verify the service is running:
docker-compose ps
- Check the Nginx configuration for correct routing
- Verify the endpoint URL is correct
Symptoms: GET requests to ONNX Runtime return 405.
Explanation: This is expected behavior. ONNX Runtime requires POST requests for inference.
# View logs for all services
docker-compose logs
# Follow logs in real-time
docker-compose logs -f
# View logs for a specific service
docker-compose logs [service_name]- Grafana: http://localhost:3007 (admin/admin)
- Prometheus: http://localhost:9090
Solution: Change the port in docker-compose.yml or stop the conflicting service.
Solution: Ensure the Docker container has proper permissions to access mounted volumes.
Solution:
- Verify the service is running
- Check if the service is listening on the correct port
- Ensure there are no firewall rules blocking the connection
If you encounter issues not covered in this guide:
- Check the GitHub Issues
- Search the Discussions
- Open a new issue with details about your problem
-
Increase log verbosity by setting environment variables:
environment: - LOG_LEVEL=debug
-
Access a shell in a running container:
docker-compose exec [service_name] sh -
Check container resource usage:
docker stats