Common issues and their solutions for AIDEN.
Symptom
Error: connection refused
Caused by: Connection refused (os error 111)
Solution
-
Ensure Ollama is installed:
curl -fsSL https://ollama.com/install.sh | sh -
Start Ollama service:
ollama serve
-
Verify it's running:
curl http://localhost:11434/api/version
-
Pull required models:
ollama pull llama3.2:1b ollama pull nomic-embed-text
Symptom
Error: Connection refused to Qdrant at localhost:6334
Solution
-
Start Qdrant with Docker:
docker run -p 6333:6333 -p 6334:6334 qdrant/qdrant
-
Verify it's running:
curl http://localhost:6333/readyz
-
For persistent storage:
docker run -p 6333:6333 -p 6334:6334 \ -v qdrant_data:/qdrant/storage \ qdrant/qdrant
Symptom
Error: model 'llama3.2:1b' not found
Solution
ollama pull llama3.2:1b
ollama pull nomic-embed-textList available models:
ollama listSymptom
Error: CUDA out of memory
Solution
-
Use a smaller model:
// In src/state.rs chat_model: "llama3.2:1b".to_string(), // Smaller model
-
Close other applications using GPU
-
Check GPU memory:
nvidia-smi
Symptom
Files processed: 0
Solution
-
Create docs directory:
mkdir -p docs
-
Add markdown files:
echo "# My Doc" > docs/README.md
-
Verify files exist:
ls -la docs/ find docs/ -name "*.md"
Symptom
Indexing status never completes
Solution
-
Check logs:
journalctl -u aiden -f
-
Restart service:
sudo systemctl restart aiden
-
Clear Qdrant collection and re-index:
curl -X DELETE http://localhost:6333/collections/aiden
Symptom
Responses don't match documentation
Solution
-
Check threshold (try lowering):
// In src/state.rs threshold: 0.5, // Lower threshold
-
Increase max results:
max_results: 10, // More context
-
Re-index with larger chunks:
chunk_size: 768, // Larger chunks
Symptom
404 Not Found
Solution
-
Check server is running:
curl http://localhost:8081/
-
Verify firewall:
sudo ufw allow 8081
-
Check logs:
sudo journalctl -u aiden -n 50
Symptom
WebSocket connection failed
Solution
-
Check reverse proxy WebSocket support:
# Nginx location block proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade";
-
Test WebSocket directly:
wscat -c ws://localhost:8081/api/chat/stream
Symptom
error: cannot find crate 'axum'
Solution
cargo update
cargo buildSymptom
error: unable to find the openssl development headers
Solution
# Debian/Ubuntu
sudo apt install libssl-dev pkg-config
# Arch Linux
sudo pacman -S openssl pkg-config
# Fedora
sudo dnf install openssl-devel pkg-configPossible Causes
- Large model running on CPU
- Many documents to search
- Network latency to Ollama
Solutions
-
Use smaller model:
chat_model: "llama3.2:1b".to_string(), embed_model: "nomic-embed-text".to_string(),
-
Reduce max results:
max_results: 3,
-
Use GPU for Ollama:
OLLAMA_HOST=cuda:11434 ollama serve
Solution
-
Run health check manually:
curl http://localhost:8081/api/health
-
Check Ollama:
curl http://localhost:11434/api/tags
-
Check Qdrant:
curl http://localhost:6333/collections
If issues persist:
-
Check logs:
RUST_LOG=debug ./target/release/aiden
-
Open an issue on GitLab/GitHub with:
- AIDEN version (
./aiden --versionor check Cargo.toml) - Full error message
- Steps to reproduce
- System information (
uname -a)
- AIDEN version (