These files were referenced in README but ignored by .gitignore. Added them to the exception list so they appear in the repository.
7.1 KiB
Troubleshooting
Common problems and solutions for OmniRoute.
Quick Fixes
| Problem | Solution |
|---|---|
| First login not working | Check INITIAL_PASSWORD in .env (default: 123456) |
| Dashboard opens on wrong port | Set PORT=20128 and NEXT_PUBLIC_BASE_URL=http://localhost:20128 |
No request logs under logs/ |
Set ENABLE_REQUEST_LOGS=true |
Provider Issues
"Language model did not provide messages"
Cause: Provider quota exhausted.
Fix:
- Check dashboard quota tracker
- Use a combo with fallback tiers
- Switch to cheaper/free tier
Rate Limiting
Cause: Subscription quota exhausted.
Fix:
- Add fallback:
cc/claude-opus-4-6 → glm/glm-4.7 → if/kimi-k2-thinking - Use GLM/MiniMax as cheap backup
OAuth Token Expired
OmniRoute auto-refreshes tokens. If issues persist:
- Dashboard → Provider → Reconnect
- Delete and re-add the provider connection
Cloud Issues
Cloud Sync Errors
- Verify
BASE_URLpoints to your running instance (e.g.,http://localhost:20128) - Verify
CLOUD_URLpoints to your cloud endpoint (e.g.,https://omniroute.dev) - Keep
NEXT_PUBLIC_*values aligned with server-side values
Cloud stream=false Returns 500
Symptom: Unexpected token 'd'... on cloud endpoint for non-streaming calls.
Cause: Upstream returns SSE payload while client expects JSON.
Workaround: Use stream=true for cloud direct calls. Local runtime includes SSE→JSON fallback.
Cloud Says Connected but "Invalid API key"
- Create a fresh key from local dashboard (
/api/keys) - Run cloud sync: Enable Cloud → Sync Now
- Old/non-synced keys can still return
401on cloud
Docker Issues
CLI Tool Shows Not Installed
- Check runtime fields:
curl http://localhost:20128/api/cli-tools/runtime/codex | jq - For portable mode: use image target
runner-cli(bundled CLIs) - For host mount mode: set
CLI_EXTRA_PATHSand mount host bin directory as read-only - If
installed=trueandrunnable=false: binary was found but failed healthcheck
Quick Runtime Validation
curl -s http://localhost:20128/api/cli-tools/codex-settings | jq '{installed,runnable,commandPath,runtimeMode,reason}'
curl -s http://localhost:20128/api/cli-tools/claude-settings | jq '{installed,runnable,commandPath,runtimeMode,reason}'
curl -s http://localhost:20128/api/cli-tools/openclaw-settings | jq '{installed,runnable,commandPath,runtimeMode,reason}'
Cost Issues
High Costs
- Check usage stats in Dashboard → Usage
- Switch primary model to GLM/MiniMax
- Use free tier (Gemini CLI, iFlow) for non-critical tasks
- Set cost budgets per API key: Dashboard → API Keys → Budget
Debugging
Enable Request Logs
Set ENABLE_REQUEST_LOGS=true in your .env file. Logs appear under logs/ directory.
Check Provider Health
# Health dashboard
http://localhost:20128/dashboard/health
# API health check
curl http://localhost:20128/api/monitoring/health
Runtime Storage
- Main state:
${DATA_DIR}/db.json(providers, combos, aliases, keys, settings) - Usage:
${DATA_DIR}/usage.json,${DATA_DIR}/log.txt,${DATA_DIR}/call_logs/ - Request logs:
<repo>/logs/...(whenENABLE_REQUEST_LOGS=true)
Circuit Breaker Issues
Provider stuck in OPEN state
When a provider's circuit breaker is OPEN, requests are blocked until the cooldown expires.
Fix:
- Go to Dashboard → Settings → Resilience
- Check the circuit breaker card for the affected provider
- Click Reset All to clear all breakers, or wait for the cooldown to expire
- Verify the provider is actually available before resetting
Provider keeps tripping the circuit breaker
If a provider repeatedly enters OPEN state:
- Check Dashboard → Health → Provider Health for the failure pattern
- Go to Settings → Resilience → Provider Profiles and increase the failure threshold
- Check if the provider has changed API limits or requires re-authentication
- Review latency telemetry — high latency may cause timeout-based failures
Audio Transcription Issues
"Unsupported model" error
- Ensure you're using the correct prefix:
deepgram/nova-3orassemblyai/best - Verify the provider is connected in Dashboard → Providers
Transcription returns empty or fails
- Check supported audio formats:
mp3,wav,m4a,flac,ogg,webm - Verify file size is within provider limits (typically < 25MB)
- Check provider API key validity in the provider card
Translator Debugging
Use Dashboard → Translator to debug format translation issues:
| Mode | When to Use |
|---|---|
| Playground | Compare input/output formats side by side — paste a failing request to see how it translates |
| Chat Tester | Send live messages and inspect the full request/response payload including headers |
| Test Bench | Run batch tests across format combinations to find which translations are broken |
| Live Monitor | Watch real-time request flow to catch intermittent translation issues |
Common format issues
- Thinking tags not appearing — Check if the target provider supports thinking and the thinking budget setting
- Tool calls dropping — Some format translations may strip unsupported fields; verify in Playground mode
- System prompt missing — Claude and Gemini handle system prompts differently; check translation output
Resilience Settings
Auto rate-limit not triggering
- Auto rate-limit only applies to API key providers (not OAuth/subscription)
- Verify Settings → Resilience → Provider Profiles has auto-rate-limit enabled
- Check if the provider returns
429status codes orRetry-Afterheaders
Tuning exponential backoff
Provider profiles support these settings:
- Base delay — Initial wait time after first failure (default: 1s)
- Max delay — Maximum wait time cap (default: 30s)
- Multiplier — How much to increase delay per consecutive failure (default: 2x)
Anti-thundering herd
When many concurrent requests hit a rate-limited provider, OmniRoute uses mutex + auto rate-limiting to serialize requests and prevent cascading failures. This is automatic for API key providers.
Still Stuck?
- GitHub Issues: github.com/diegosouzapw/OmniRoute/issues
- Architecture: See
docs/ARCHITECTURE.mdfor internal details - API Reference: See
docs/API_REFERENCE.mdfor all endpoints - Health Dashboard: Check Dashboard → Health for real-time system status
- Translator: Use Dashboard → Translator to debug format issues