- Add MCP setup, doctor, init-db, config, and rules CLI commands - Publish latest MCP package wiring and local setup helper - Update OS install docs for MCP-only, full app, and demo-safe setup Generated with Claude Code
2.3 KiB
2.3 KiB
Troubleshooting
Installation Issues
npm install fails
Symptom: Error during native module compilation
Fix: Install build tools:
# macOS
xcode-select --install
# Linux
sudo apt install build-essential python3
# Windows
npm install -g windows-build-tools
npm run setup:local fails
Symptom: Native module rebuild errors
Fix:
- Ensure Node.js 20.18.1+ is installed
- Delete
node_modulesand reinstall:rm -rf node_modules package-lock.json npm install npm run setup:local
Runtime Issues
App won't start
Symptom: Error on npm run dev
Fixes:
- Run local setup first:
npm run setup:local - Check
.env.localexists (copy from.env.exampleif missing) - Ensure database directory exists:
~/Library/Application Support/RA-H/db/
Vector search returns no results
Symptom: Semantic search doesn't find matches
Fixes:
- Ensure
sqlite-vecextension is loading (check console for errors) - Verify
SQLITE_VEC_EXTENSION_PATHin.env.localpoints tovendor/sqlite-extensions/vec0.dylib - Note: sqlite-vec only works on macOS currently. Linux/Windows users need to compile it manually.
API key validation fails
Symptom: "Invalid key" error in Settings
Fixes:
- Verify key format:
- OpenAI: starts with
sk- - Anthropic: starts with
sk-ant-
- OpenAI: starts with
- Check key has correct permissions/credits
- Try regenerating the key in provider dashboard
Chat returns errors
Symptom: Error messages when chatting
Fixes:
- Check API keys are valid (Settings → API Keys)
- Verify internet connection
- Check browser console for specific error messages
Database Issues
Database locked
Symptom: "SQLITE_BUSY" errors
Fix: Only run one instance of RA-H at a time. Close any other terminals running the app.
Missing tables
Symptom: "no such table" errors
Fix: Re-run the schema script:
scripts/database/sqlite-ensure-app-schema.sh ~/Library/Application\ Support/RA-H/db/rah.sqlite
Platform-Specific
Linux/Windows
The bundled vec0.dylib and yt-dlp binaries are macOS-only. For other platforms:
- sqlite-vec: Build from source at https://github.com/asg017/sqlite-vec
- yt-dlp: Download from https://github.com/yt-dlp/yt-dlp/releases
See the main README for detailed instructions.