# Troubleshooting & FAQ Common issues, diagnostics, and answers to frequently asked questions about OpenFang. ## Table of Contents - [Quick Diagnostics](#quick-diagnostics) - [Installation Issues](#installation-issues) - [Configuration Issues](#configuration-issues) - [LLM Provider Issues](#llm-provider-issues) - [Channel Issues](#channel-issues) - [Agent Issues](#agent-issues) - [API Issues](#api-issues) - [Desktop App Issues](#desktop-app-issues) - [Performance](#performance) - [FAQ](#faq) --- ## Quick Diagnostics Run the built-in diagnostic tool: ```bash openfang doctor ``` This checks: - Configuration file exists and is valid TOML - API keys are set in environment - Database is accessible - Daemon status (running or not) - Port availability - Tool dependencies (Python, signal-cli, etc.) ### Check Daemon Status ```bash openfang status ``` ### Check Health via API ```bash curl http://127.0.0.1:4200/api/health curl http://127.0.0.1:4200/api/health/detail # Requires auth ``` ### View Logs OpenFang uses `tracing` for structured logging. Set the log level via environment: ```bash RUST_LOG=info openfang start # Default RUST_LOG=debug openfang start # Verbose RUST_LOG=openfang=debug openfang start # Only OpenFang debug, deps at info ``` --- ## Installation Issues ### `cargo install` fails with compilation errors **Cause**: Rust toolchain too old or missing system dependencies. **Fix**: ```bash rustup update stable rustup default stable rustc --version # Need 1.75+ ``` On Linux, you may also need: ```bash # Debian/Ubuntu sudo apt install pkg-config libssl-dev libsqlite3-dev # Fedora sudo dnf install openssl-devel sqlite-devel ``` ### `openfang` command not found after install **Fix**: Ensure `~/.cargo/bin` is in your PATH: ```bash export PATH="$HOME/.cargo/bin:$PATH" # Add to ~/.bashrc or ~/.zshrc to persist ``` ### Black screen on login after install (Arch / CachyOS / fish users) **Cause**: Older OpenFang installers (`