Skip to content

Troubleshooting

github-actions[bot] edited this page Nov 15, 2026 · 113 revisions

Generated from docs/user-guide/04-troubleshooting.md at 7a3a8b55bd3c. Edit the source, not this page -- the next merge to main overwrites any change here.

Troubleshooting Guide

Common Issues and Solutions

Installation Problems

Issue: Setup script fails with permission errors

Symptoms: "Permission denied" errors during setup Solution:

# The installer must run as root
sudo ./install.sh

Issue: Python version conflicts

Symptoms: "Python 3.14 not found" or version mismatch errors Solution:

# Install Python 3.14 via deadsnakes PPA (Issue #1898)
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install -y python3.14 python3.14-venv python3.14-dev

# Recreate virtual environment
rm -rf venv
python3.14 -m venv venv

Runtime Issues

Issue: Agent won't start

Symptoms: Startup fails with configuration errors Diagnosis:

# Check logs
tail -f logs/agent.log

# Validate configuration
python -c "from src.config import config; config.validate()"

Common Fixes:

  • Verify config/config.yaml syntax
  • Check file permissions on data directories
  • Ensure required ports are available

Issue: LLM connection failed

Symptoms: "Connection refused" or timeout errors Diagnosis:

# For Ollama
curl http://localhost:11434/api/version

# For OpenAI API
curl -H "Authorization: Bearer $OPENAI_API_KEY" \
     https://api.openai.com/v1/models

Solutions:

  • Ollama: Install and start Ollama service
  • OpenAI: Verify API key and quota
  • Local Models: Check GPU/CPU resources

Performance Issues

Issue: Slow response times

Symptoms: Long delays between commands and responses Diagnosis:

  • Check CPU/GPU usage: htop, nvidia-smi
  • Review logs for bottlenecks
  • Monitor memory usage

Solutions:

  • Enable GPU acceleration for local models
  • Increase hardware resources
  • Optimize model settings (quantization, context length)
  • Use faster models for simple tasks

Issue: High memory usage

Symptoms: System slowing down, OOM errors Solutions:

# Monitor memory
watch -n 1 free -h

# Restart with memory limits
python -Xmx4g main.py

Network and Connectivity

Issue: Web interface not accessible

Symptoms: The web UI does not load, or the health check below fails.

The backend is reached through nginx, never on a port of its own. In Docker, port 8001 is RedisInsight, not the backend (#19183).

Install Web UI Health check
Docker http://localhost (https://localhost when AUTOBOT_DOCKER_NGINX_CONF selects the TLS config) curl http://localhost/api/system/health (with TLS: curl -k https://localhost/api/system/health)
Native (install.sh) https://<server> (SLM at /slm/) curl -k https://<server>/api/system/health (self-signed certificate)

Diagnosis:

# Is nginx listening? (Docker: 80; native: 443)
ss -tlnp | grep -E ':(80|443)\b'

# Docker: are the containers up and healthy?
docker compose --env-file docker/.env.docker --env-file docker/.env.secrets ps

# Native: are the services running?
systemctl status nginx autobot-slm-backend

Solutions:

  • Run the health check for your install type from the table above
  • Check firewall settings for port 80 (Docker) or 443 (native)
  • Docker: docker compose --env-file docker/.env.docker --env-file docker/.env.secrets logs autobot-frontend autobot-backend (the frontend container's nginx serves the UI and proxies /api)

Issue: Redis connection failed

Symptoms: Knowledge base and memory features unavailable Solutions:

# Install Redis
sudo apt install redis-stack-server  # Ubuntu/Debian
brew install redis             # macOS

# Start Redis service
sudo systemctl start redis-stack-server

# Test connection
redis-cli ping

GPU/Hardware Issues

Issue: GPU not detected

Symptoms: Falls back to CPU inference despite GPU availability Diagnosis:

# Check NVIDIA GPU
nvidia-smi

# Check AMD GPU
rocm-smi

# Test PyTorch GPU access
python -c "import torch; print(torch.cuda.is_available())"

Solutions:

  • Install/update GPU drivers
  • Install CUDA toolkit or ROCm
  • Reinstall PyTorch with GPU support:
# NVIDIA CUDA
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu118

# AMD ROCm
pip install torch torchvision --index-url https://download.pytorch.org/whl/rocm5.4.2

Knowledge Base Issues

Issue: Knowledge search returns no results

Symptoms: Search queries don't find expected content Diagnosis:

  • Check if knowledge base is populated
  • Verify embedding model is working
  • Test with simple queries

Solutions:

  • Re-index knowledge base
  • Check embedding model compatibility
  • Verify search query format

Issue: File upload fails

Symptoms: Cannot add documents to knowledge base Solutions:

  • Check file format support (PDF, DOCX, TXT, etc.)
  • Verify file size limits
  • Check storage permissions

Diagnostic Commands

System Health Check

# Run comprehensive diagnostics
python scripts/health_check.py

# Check specific components
python -c "from src.diagnostics import check_llm; check_llm()"
python -c "from src.diagnostics import check_knowledge_base; check_knowledge_base()"

Log Analysis

# View recent errors
grep ERROR logs/agent.log | tail -20

# Monitor real-time logs
tail -f logs/agent.log logs/llm_usage.log

# Search for specific issues
grep -i "memory\|gpu\|connection" logs/agent.log

Configuration Debugging

# Dump current configuration
python -c "from src.config import config; import json; print(json.dumps(config.to_dict(), indent=2))"

# Test configuration sections
python -c "from src.config import config; print(config.get_llm_config())"

Getting Help

Check Documentation

  1. Review relevant user guide sections
  2. Check developer documentation for technical details
  3. Search project issues on GitHub

Collect Debug Information

Before reporting issues, gather:

  • Operating system and version
  • Python version (python --version)
  • AutoBot version/commit hash
  • Configuration file (remove sensitive data)
  • Relevant log entries
  • Hardware specifications

Submit Issues

  1. GitHub Issues: Primary support channel
  2. Include Debug Info: Attach logs and system information
  3. Reproducible Steps: Provide clear reproduction instructions
  4. Expected vs Actual: Describe what should happen vs what does

Community Resources

  • Project documentation and wiki
  • Community discussions and forums
  • Example configurations and use cases

Emergency Recovery

Complete Reset

# Stop all processes
pkill -f autobot

# Backup data
cp -r data/ data.backup/
cp config/config.yaml config.backup.yaml

# Reset to defaults
sudo ./install.sh --reinstall  # keeps the existing admin password

# Restore data if needed
cp -r data.backup/* data/

Safe Mode

# Start with minimal configuration
python main.py --safe-mode --no-gpu --no-workers

Clone this wiki locally