Troubleshooting Guide¶
Common issues and solutions for using Victor effectively.
Quick Diagnostics¶
Start here if you're experiencing problems:
# 1. Check Victor version
victor --version
# 2. Check installed providers
victor providers
# 3. Test basic functionality
victor chat "Hello, Victor!" --provider ollama
# 4. Check configuration
victor config show
# 5. View logs
victor logs --tail 50
Expected Output:
- Version should be latest: victor 0.x.x
- Providers should list 24 providers
- Chat should respond successfully
- Config should show your profiles
- Logs should show recent activity
Still having issues? → Jump to specific sections below
Installation Issues¶
Issue: Command Not Found¶
Symptom:
Solutions:
1. Check installation:
# Verify Victor is installed
pip list | grep victor
# If not installed, install it
pipx install victor-ai
# or
pip install victor-ai
2. Check PATH (if using pip):
# Find where pip installed Victor
pip show victor-ai | grep Location
# Add to PATH if needed
export PATH="$HOME/.local/bin:$PATH"
# Add to ~/.bashrc or ~/.zshrc for persistence
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
3. Reinstall with pipx (recommended):
# Uninstall existing
pip uninstall victor-ai
# Install with pipx
pipx install victor-ai
# Verify
which victor
# Should output: /home/user/.local/bin/victor
Issue: Python Version Incompatible¶
Symptom:
# During installation
ERROR: Package 'victor-ai' requires a different Python: 3.10.x not in '>=3.11'
Solutions:
1. Check Python version:
2. Install Python 3.11+:
macOS:
Ubuntu/Debian:
Windows:
- Download from python.org
3. Use correct Python:
# Use python3.11 explicitly
python3.11 -m pip install victor-ai
# Or create virtual environment
python3.11 -m venv ~/.victor-venv
source ~/.victor-venv/bin/activate # Windows: ~/.victor-venv\Scripts\activate
pip install victor-ai
Issue: Dependencies Failed to Install¶
Symptom:
Solutions:
1. Install build tools:
macOS:
Ubuntu/Debian:
Windows:
- Install Visual Studio Build Tools
2. Install with dev dependencies:
3. Use pre-built wheels:
Issue: Permission Denied¶
Symptom:
# During installation
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied
Solutions:
1. Use pipx (recommended):
2. Use virtual environment:
3. Use --user flag (not recommended):
Provider Issues¶
Issue: API Key Not Found¶
Symptom:
Solutions:
1. Set environment variable:
2. Add to shell profile (persistent):
# Add to ~/.bashrc or ~/.zshrc
echo 'export ANTHROPIC_API_KEY=sk-ant-...' >> ~/.bashrc
source ~/.bashrc
3. Use profiles.yaml:
4. Set directly (not recommended, insecure):
Environment Variables by Provider:
# Cloud providers
export ANTHROPIC_API_KEY=sk-ant-...
export OPENAI_API_KEY=sk-proj-...
export GOOGLE_API_KEY=...
export XAI_API_KEY=...
export DEEPSEEK_API_KEY=...
export MISTRAL_API_KEY=...
# Enterprise
export AZURE_OPENAI_API_KEY=...
export AZURE_OPENAI_ENDPOINT=https://...
# Local (optional)
export OLLAMA_HOST=127.0.0.1:11434
export VICTOR_LM_STUDIO_HOST=127.0.0.1:1234
export VICTOR_VLLM_HOST=127.0.0.1:8000
export VICTOR_LLAMACPP_HOST=127.0.0.1:8080
Issue: Provider Not Available¶
Symptom:
Solutions:
1. Check installed providers:
2. Install provider extras:
# Reinstall with specific provider
pip install "victor-ai[together]"
# Or install all providers
pip install "victor-ai[all]"
3. Check provider spelling:
# Correct names
victor chat --provider anthropic "Hello"
victor chat --provider openai "Hello"
victor chat --provider ollama "Hello"
# NOT
victor chat --provider Anthropic "Hello" # Wrong case
victor chat --provider open_ai "Hello" # Wrong separator
Issue: Model Not Found¶
Symptom:
Solutions:
1. List available models:
victor providers --provider anthropic --models
# Or check documentation
# https://docs.victor.ai/reference/providers/
2. Use correct model name:
# Correct
victor chat --provider anthropic --model claude-sonnet-4-20250514
# NOT
victor chat --provider anthropic --model claude-3 # Too generic
3. Pull model first (for local providers):
# Ollama
ollama pull qwen2.5-coder:7b
# Then use
victor chat --provider ollama --model qwen2.5-coder:7b
Issue: Connection Timeout¶
Symptom:
Solutions:
1. Check network connectivity:
# Test API endpoint
curl https://api.anthropic.com/v1/messages
# Check DNS
nslookup api.anthropic.com
2. Check firewall/proxy:
# Set proxy if needed
export HTTP_PROXY=http://proxy.example.com:8080
export HTTPS_PROXY=http://proxy.example.com:8080
3. Increase timeout:
4. Test with local provider:
Issue: Rate Limiting¶
Symptom:
Solutions:
1. Wait and retry:
2. Switch providers:
# During conversation
/provider openai
# Or start new conversation
victor chat --provider openai "Hello"
3. Use local provider as fallback:
4. Check your rate limit:
# Anthropic
# https://console.anthropic.com/settings/limits
# OpenAI
# https://platform.openai.com/usage
# Google
# https://console.cloud.google.com/apis/api/generativelanguage.googleapis.com/quotas
Issue: Authentication Failed¶
Symptom:
Solutions:
1. Verify API key is valid:
# Test with curl
curl https://api.anthropic.com/v1/messages \
-H "x-api-key: $ANTHROPIC_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-d '{"model":"claude-sonnet-4-20250514","max_tokens":10,"messages":[{"role":"user","content":"Hi"}]}'
2. Regenerate API key:
- Visit provider console
- Delete old key
- Create new key
- Update environment variable
3. Check for typos:
# Make sure no extra spaces
echo $ANTHROPIC_API_KEY | tr -d ' '
# Should not have leading/trailing spaces
Issue: Ollama Not Responding¶
Symptom:
Solutions:
1. Check Ollama status:
# List running models
ollama list
# Check logs
ollama logs
# Test directly
ollama run qwen2.5-coder:7b "Hello"
2. Restart Ollama:
# Stop Ollama
ollama stop
# Start Ollama
ollama serve
# In another terminal, test
victor chat --provider ollama "Hello"
3. Pull model:
4. Check Ollama host:
Issue: vLLM Connection Failed¶
Symptom:
Solutions:
1. Start vLLM server:
# Install vLLM
pip install vllm
# Start server
vllm serve meta-llama/Llama-3.2-3B-Instruct --port 8000
2. Check vLLM status:
3. Set host:
4. Check GPU/memory:
Performance Issues¶
Issue: Slow Responses¶
Symptom:
Solutions:
1. Check which provider you're using:
# Cloud providers: 1-5 seconds (normal)
# Local providers: 5-30 seconds (depends on hardware)
victor providers --current
2. Switch to faster provider:
3. Use smaller model:
# For simple tasks
victor chat --model gemini-2.0-flash-exp "Quick question"
# or
victor chat --provider ollama --model llama3.2:3b "Quick question"
4. Enable caching:
5. Check your internet:
Issue: High Memory Usage¶
Symptom:
Solutions:
1. Check memory usage:
2. Reduce context size:
3. Use smaller model:
# Local models vary in size
# 3B model: ~4GB RAM
# 7B model: ~8GB RAM
# 14B model: ~16GB RAM
victor chat --provider ollama --model llama3.2:3b "Hello"
4. Clear cache:
5. Restart Victor:
Issue: CPU Usage 100%¶
Symptom:
Solutions:
1. Check if using local model:
2. Use GPU if available:
3. Switch to cloud provider:
4. Use smaller local model:
Configuration Issues¶
Issue: Profile Not Found¶
Symptom:
Solutions:
1. List available profiles:
2. Create profile:
3. Check profile syntax:
4. Use default profile:
Issue: Invalid Configuration¶
Symptom:
Solutions:
1. Validate YAML syntax:
2. Check common YAML errors:
# WRONG (spaces vs tabs)
profiles:
production: # 2 spaces
provider: anthropic
└── model: claude # Tab character (wrong!)
# CORRECT
profiles:
production: # 2 spaces
provider: anthropic
model: claude-sonnet-4-20250514 # 4 spaces (2+2)
3. Reset configuration:
# Backup current config
mv ~/.victor/profiles.yaml ~/.victor/profiles.yaml.bak
# Create new config
victor config init
Issue: Settings Not Applied¶
Symptom:
Solutions:
1. Check profile is being used:
# Explicitly specify profile
victor --profile production chat "Hello"
# Or check default profile
victor config show
2. Check for conflicting CLI flags:
3. Verify config location:
4. Check for multiple configs:
Context Issues¶
Issue: Context Not Preserved Between Providers¶
Symptom:
Solutions:
1. Check ConversationController:
# Context should be preserved automatically
# If not, check logs
victor logs --tail 100 | grep -i context
2. Use same session:
3. Report bug:
# If context is lost, this is a bug
# Create issue with logs
victor logs > victor-logs.txt
# Upload to GitHub issue
Issue: Context Too Long¶
Symptom:
Solutions:
1. Clear conversation:
2. Summarize and continue:
# Ask Victor to summarize
victor chat "Summarize our conversation so far"
# Start new conversation with summary
victor chat --new "Here's context: [paste summary]. Continue with..."
3. Use model with larger context:
# Claude, Gemini: 1M-2M tokens
victor chat --provider anthropic "Continue"
# Check context window
victor providers --provider anthropic --info
Tool Issues¶
Issue: Tool Execution Failed¶
Symptom:
Solutions:
1. Check tool is available:
2. Check file permissions:
3. Check file exists:
4. Enable debug logging:
Issue: Tool Not Found¶
Symptom:
Solutions:
1. List available tools:
2. Install tool dependencies:
# Some tools require external commands
# e.g., pytest requires pytest to be installed
pip install pytest
3. Check tool name:
# Tool names are specific
victor chat "Run tests" # Victor chooses right tool
# NOT
victor chat "Execute tool pytest" # Wrong
Issue: Tool Deduplication - Expected Tool Missing¶
Symptom:
Solutions:
1. Check if tool was deduplicated:
# Check logs for deduplication messages
victor logs --tail 100 | grep -i dedup
# Should show: "Skipped lgc_wikipedia (source=langchain) in favor of wikipedia"
2. Check deduplication settings:
3. Add tool to whitelist (if you need both):
# ~/.victor/profiles.yaml
profiles:
default:
tools:
deduplication_whitelist:
- wikipedia
- lgc_wikipedia
4. Disable deduplication (not recommended):
5. Check priority order:
# Native tools have priority over adapters
# If you have native 'wikipedia', 'lgc_wikipedia' will be skipped
victor tools list | grep wikipedia
Issue: Tool Has Unexpected Prefix¶
Symptom:
victor tools list
# Shows mcp_github_search instead of github_search
# Or lgc_wikipedia instead of wikipedia
Solutions:
1. Check if naming enforcement is enabled:
2. This is expected behavior:
# LangChain tools get lgc_ prefix
# MCP tools get mcp_ prefix
# Plugin tools get plg_ prefix
# Native tools have no prefix
3. Disable naming enforcement (if needed):
4. Use full tool name:
Issue: Too Many Duplicate Tools¶
Symptom:
Solutions:
1. Check if deduplication is enabled:
2. Enable deduplication:
3. Check priority order:
# ~/.victor/profiles.yaml
profiles:
default:
tools:
deduplication_priority_order:
- native # Highest priority
- langchain
- mcp
- plugin # Lowest priority
4. Verify logs show deduplication:
Log Analysis¶
Viewing Logs¶
# View recent logs
victor logs --tail 50
# Follow logs
victor logs --follow
# Filter by level
victor logs --level ERROR
# Save logs to file
victor logs > victor-logs.txt
Finding Errors¶
# Search for errors
victor logs | grep ERROR
# Search for warnings
victor logs | grep WARN
# Search for specific provider
victor logs | grep anthropic
# Search for tool execution
victor logs | grep tool.execution
Log Levels¶
| Level | Description | When to Use |
|---|---|---|
| DEBUG | Detailed diagnostic info | Troubleshooting, development |
| INFO | General informational | Normal operation |
| WARNING | Warning messages | Potential issues |
| ERROR | Error messages | Failures, exceptions |
| CRITICAL | Critical failures | Crashes, data loss |
Set log level:
# ~/.victor/config.yaml
logging:
level: DEBUG # DEBUG, INFO, WARNING, ERROR, CRITICAL
file: /var/log/victor.log
When to Open an Issue¶
Before opening an issue:
1. Check existing issues: https://github.com/anvai-labs/victor/issues
2. Search discussions: https://github.com/anvai-labs/victor/discussions
3. Try troubleshooting steps above
4. Collect logs and error messages
When to open an issue:
- ✅ Bug: Victor crashes or behaves incorrectly
- ✅ Feature request: New functionality
- ✅ Documentation: Unclear or missing docs
- ✅ Performance: Unexpected slowness
When NOT to open an issue:
- ❌ Usage questions: Use discussions
- ❌ Provider issues: Contact provider support
- ❌ Hardware issues: Check your system
- ❌ Network issues: Check your connection
Issue Template:
## Description
[Brief description of the issue]
## Steps to Reproduce
1. Run this command: `victor chat "Hello"`
2. See error: [error message]
## Expected Behavior
[What you expected to happen]
## Actual Behavior
[What actually happened]
## Environment
- OS: [macOS, Linux, Windows]
- Python version: [3.10, 3.11, etc.]
- Victor version: [from `victor --version`]
- Provider: [anthropic, openai, ollama, etc.]
## Logs
[Paste relevant logs here]
## Additional Context
[Any other information]
Getting Help¶
Documentation¶
- Full Docs: Documentation Home
- User Guide: User Guide
- Reference: Provider Reference
- Configuration: Configuration Options
Community¶
- GitHub Issues: Report bugs
- GitHub Discussions: Ask questions
- Discord: Join Discord
- Stack Overflow: Tag with
victor-ai
Diagnostic Commands¶
Run diagnostics and share output:
# Full diagnostic report
victor doctor
# Save to file
victor doctor > victor-diagnostic.txt
# Share in GitHub issue
Quick Reference¶
Common Commands¶
# Diagnostics
victor --version
victor providers
victor tools
victor config show
victor logs --tail 50
# Testing
victor chat "Hello" --provider ollama
victor chat "Hello" --provider anthropic
# Configuration
victor config profiles
victor config show
# Logs
victor logs --tail 100
victor logs --follow
victor logs --level ERROR
Environment Variables¶
# API Keys
export ANTHROPIC_API_KEY=sk-ant-...
export OPENAI_API_KEY=sk-proj-...
export GOOGLE_API_KEY=...
# Local Providers
export OLLAMA_HOST=127.0.0.1:11434
export VICTOR_VLLM_HOST=127.0.0.1:8000
# Debug
export VICTOR_LOG_LEVEL=DEBUG
export VICTOR_LOG_FILE=/var/log/victor.log
Configuration Files¶
~/.victor/profiles.yaml # Provider/model profiles
~/.victor/config.yaml # Global settings
~/.victor/mcp.yaml # MCP server config
.victor.md # Project context
CLAUDE.md # AI instructions
Still stuck? Open an issue →
Next: User Guide | Provider Reference | Configuration Options