Troubleshooting
Quick fixes for common issues and log management commands.
Log Management
View Recent Logs
ranex logs show
Output:
š Recent CLI Logs
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
āāāāāāāāāāāāāāāāāāāāāāā¬āāāāāāāāāā¬āāāāāāāāāāāāāāā¬āāāāāāāāāāāāā
ā Timestamp ā Level ā Command ā Duration ā
āāāāāāāāāāāāāāāāāāāāāāā¼āāāāāāāāāā¼āāāāāāāāāāāāāāā¼āāāāāāāāāāāāā¤
ā 2025-11-29 14:20:00 ā INFO ā scan ā 145ms ā
ā 2025-11-29 14:19:55 ā INFO ā doctor ā 154ms ā
ā 2025-11-29 14:19:50 ā ERROR ā govern check ā 12ms ā
āāāāāāāāāāāāāāāāāāāāāāā“āāāāāāāāāā“āāāāāāāāāāāāāāā“āāāāāāāāāāāāā
Filter Logs
# By command
ranex logs show --command scan
# By level
ranex logs show --level ERROR
# By time
ranex logs show --since 1h
# More entries
ranex logs show --limit 50
Watch Logs (Real-Time)
ranex logs tail
Press Ctrl+C to stop.
Search Logs
ranex logs search "error"
ranex logs search "scan failed"
Export Logs
ranex logs export ranex-logs.txt
Log Statistics

Log statistics showing command history, call counts, and average duration
Common Issues
"ranex: command not found"
Cause: Python scripts folder not in PATH
Fix (Mac/Linux):
export PATH="$HOME/.local/bin:$PATH"
Fix (Windows):
- Search "Environment Variables" in Start menu
- Add
%APPDATA%\Python\Python3x\Scriptsto PATH
"pip: command not found"
Cause: Python not installed properly
Fix:
- Download from python.org
- During install, check ā "Add Python to PATH"
- Restart terminal
"Permission denied"
Cause: Need admin rights
Fix:
pip install --user ranex
"ranex_mcp not found"
Cause: MCP binary not in PATH
Fix:
# Find the binary
find ~/.local -name "ranex_mcp" 2>/dev/null
# Use full path in IDE config
"No active task"
Cause: No task started
Fix:
ranex task start my-feature
"Code generation is LOCKED"
Cause: You're in Requirements or Design phase
Fix:
# Check current phase
ranex task status
# Move to implementation when ready
ranex task build
Configuration Issues
Reset configuration:
ranex config reset
View current config:
ranex config show
Edit config:
ranex config edit
System Health Check
Run diagnostics:
ranex doctor
Expected Output:
ā
Python 3.12.3
ā
Ranex Core: INSTALLED
ā
MCP Server: READY
ā
Config: VALID
ā
Database: OK
If any checks fail, the output will tell you exactly what's wrong.
Database Utilities
Check Database Status
ranex db status
Reset Database
ranex db reset
Compact Database
ranex db compact
Getting Help
Built-in Help
# General help
ranex --help
# Command-specific help
ranex scan --help
ranex task --help
Version Info
ranex --version
Next Steps
- Getting Started - Installation guide
- CLI Reference - All commands
- MCP Server Setup - IDE integration