Troubleshooting Guide
This guide helps you resolve common issues with Terraphim AI across all platforms and installation methods.
🔧 Installation Issues
"cargo install terraphim-agent" fails
Rust Toolchain Issues
Error: error: toolchain 'stable' is not installed
Solution: Install Rust toolchain:
|
Compilation Errors
Error: error: failed to compile crate XYZ
Solution: Update Rust and try again:
Permission Denied
Error: permission denied: /path/to/.cargo
Solution: Check Rust installation directory permissions:
# Fix ownership
# Or use alternative installation
CARGO_HOME=/tmp/.cargo 🔍 Search & Query Issues
No Results Found
Empty Search Results
Error: Search returns empty results Solutions:
- Check Data Source Configuration:
# Verify data paths and enabled sources- Verify File Permissions:
# Ensure Terraphim can read your data
- Rebuild Index:
# Forces reindexing of all configured sourcesSlow Search Performance
Search Taking > 5 Seconds
Solutions:
- Check System Resources:
# Check available memory
# Check disk space
# Check CPU usage
| - Optimize Configuration:
# In ~/.config/terraphim/config.toml
[performance]
cache_size = "1GB" # Increase if you have RAM
max_concurrent_queries = 4- Reduce Search Scope:
# Search specific directory only
🤖 Desktop Application Issues
"Command not found" Error
Linux/macOS
Error: terraphim-ai-desktop: command not found
Solutions:
- Use Installation Path:
# Check installation location
# Run directly if found
- Reinstall with Package Manager:
# Try system package manager
Application Won't Start
Windows Issues
Error: "Application failed to start properly" Solutions:
- Check Windows Defender:
- Add Terraphim to exclusions
- Allow through firewall
- Install Visual C++ Redistributable:
- Download from Microsoft website
- Restart computer
- Run as Administrator:
- Right-click → "Run as administrator"
🌐 Network & API Issues
GitHub Integration Problems
Rate Limiting
Error: "API rate limit exceeded" Solutions:
- Configure Authentication:
[sources.github]
token = "your-github-token" # Create at github.com/settings/tokens- Reduce Concurrent Requests:
[sources.github]
max_concurrent_requests = 3
rate_limit_delay = 1000 # millisecondsOllama Connection Issues
Connection Refused
Error: "Connection refused" when connecting to Ollama Solutions:
- Check Ollama Status:
# Should show available models- Verify Ollama Running:
|
# Check if Ollama process is running- Start Ollama Service:
# Linux
# macOS
# Manual start
Quickwit Log Search Issues
Connection Refused
Error: "Failed to connect to Quickwit" Solutions:
- Verify Quickwit is Running:
# Should return: "ok"
# Should return list of available indexes- Check API Path Prefix:
Quickwit uses
/api/v1/path prefix (not/v1/):
# Correct
# Incorrect (will return "Route not found")
- Authentication Issues:
# Test Basic Auth
# Test Bearer token
No Results from Auto-Discovery
Error: "No indexes discovered" Solutions:
- Verify Indexes Exist:
| - Check Index Filter Pattern:
If using
index_filter, ensure pattern matches:
workers-*matchesworkers-logs,workers-metrics*-logsmatchesapi-logs,service-logs*matches all indexes
- Try Explicit Index:
Empty Search Results
Error: Query returns no documents Solutions:
- Test Direct Search:
- Verify Query Syntax:
# Simple text search
# Field-specific search
# Time range (requires timestamp field)
- Check Sort Field:
If using
-timestampsort, ensure the field exists in your index schema.
🧠 Memory & Performance Issues
High Memory Usage
Memory Leak Detection
Symptoms: Memory usage increases continuously over time Solutions:
- Monitor Memory Usage:
# Watch Terraphim memory usage
- Reduce Cache Size:
[persistence]
cache_size = "256MB" # Reduce from default
cache_ttl = 3600 # Reduce cache time- Restart Periodically:
# Use cron to restart daily
&& && &🔐 Authentication & Security Issues
API Key Problems
OpenRouter Integration
Error: "Invalid API key or authentication failed" Solutions:
- Verify API Key Format:
- Keys start with
sk- - No extra spaces or line breaks
- Check Environment Variables:
# Should show your key without trailing newline- Test API Key:
📋 Data Source Issues
Local File Indexing Problems
Large File Handling
Error: "File too large to process" Solutions:
- Exclude Large Files:
[sources.local_files]
exclude_patterns = ["*.log", "*.db", "node_modules/*", "target/*"]
max_file_size = "50MB"- Optimize File Types:
[sources.local_files]
binary_extensions = [".zip", ".tar.gz", ".mp4", ".pdf"]
index_binaries = falseGit Repository Issues
Repository Not Found
Error: "Failed to clone repository" Solutions:
- Check Repository URL:
# Test repository accessibility
- Use SSH Instead of HTTPS:
# Configure SSH for GitHub
🔄 Update & Auto-Update Issues
Update Process Fails
Update Download Failed
Error: "Failed to download update" Solutions:
- Check Network Connectivity:
# Should return 200 OK- Manual Update:
# Download latest version manually
- Disable Auto-Update:
[updates]
auto_check = false
# Check manually with: terraphim-agent update --check🐛 Error Codes Reference
Exit Codes
| Code | Meaning | Solution | |-------|----------|----------| | 1 | General Error | Check error message for details | | 2 | File Not Found | Verify file paths and permissions | | 3 | Permission Denied | Run with appropriate permissions | | 4 | Network Error | Check network connectivity and configuration | | 5 | Configuration Error | Validate config file syntax and values | | 6 | Memory Error | Check available RAM and reduce cache sizes | | 7 | LLM Error | Verify API keys and model availability |
Log Locations
Finding Logs
# Rust CLI logs
# Desktop application logs
# Linux
# macOS
# Windows
Log Levels
# Enable debug logging
# Enable trace logging
🚨 Emergency Procedures
Reset to Defaults
If Terraphim becomes unresponsive or corrupted:
# Backup current configuration
# Reset to defaults
# Restore custom settings
Complete Reinstall
# Remove all traces
# Clean reinstall
📞 Getting Additional Help
Community Support
-
Discord Community: Join our Discord
- Real-time help from community
- Weekly office hours with maintainers
- User discussions and tips
-
GitHub Discussions: Start a Discussion
- Detailed technical discussions
- Feature requests and suggestions
- Community knowledge base
-
GitHub Issues: Report an Issue
- Bug reports and feature requests
- Technical support from maintainers
- Track issue resolution progress
Professional Support
-
Documentation: Full Documentation
- Comprehensive guides and API reference
- Troubleshooting steps and examples
- Architecture and integration guides
-
Email Support: [email protected]
- Enterprise and professional support
- Priority response for business users
- Security vulnerability reporting
🔧 Diagnostic Commands
System Information Collection
Before reporting issues, collect this information:
# System information
||
# Rust information
# Memory and disk
# Network test
# Save to file
Include this diagnostic information when reporting issues for faster resolution.
Last Updated: December 20, 2025 Version: Terraphim AI v1.3.0 Part of: Terraphim AI Documentation Suite