Troubleshooting
Use this guide to diagnose common Stravia v0.7.8 issues by observed symptom.
Symptom: Startup fails or /readyz stays 503
Check
- Server probes: Query
GET /healthzandGET /readyz(and check stderr orjournalctl -u stravia.service -b). - Lock & backend: Check for an existing process holding
<data-dir>/.instance.lock, or checkserver.toml[database]and[cache]. - Desktop startup screen: Read the stage and error code displayed on the Desktop startup recovery screen (
Copy diagnostics/Open startup logs).
Solution
/readyzreturns503 setup: Complete initial setup at/setupusing the one-time token printed in Server startup logs.PostgreSQL requires cache.redis_url: Add[cache] redis_url = "redis://..."toserver.tomlpointing to a reachable Redis ≥6.2instance (noeviction) and restart.- macOS Desktop blocked on launch: Open System Settings → Privacy & Security and allow the ad-hoc signed app explicitly.
DataPaths::preparerejects data directory: Confirm you are not pointing v0.7.8 at an unmigrated legacy directory or running a second process on the same--data-dir.
Symptom: Admin login fails after Desktop-to-Server move or password loss
Check
- Verify whether the database originally came from Stravia Desktop (which uses
NativeAdminSessionand has no web password) or Stravia Server. - Check
server.toml[database] backend(sqlitevs.postgres).
Solution
- SQLite instances: Stop the Server instance and run
./stravia-server recover-admin --data-dir <path>to set a new username and password and revoke old cookie sessions. - PostgreSQL instances on v0.7.8: Note that
recover-adminin v0.7.8 does not forward[cache]intoGateway::prepare; restore admin credentials using a database-backed recovery snapshot or configuration backup instead.
Symptom: Outbound proxy errors, blocked deletions, or unexpected exit IPs
Check
- Open System → Settings → Network → Proxy and check the detected System proxy (
envon Server,oson Desktop) plus saved proxies. - Check each Provider's or Web Provider's Proxy (
proxy_mode) and Settings → General → Updates → Update proxy (update_proxy_mode).
Solution
- Deleting a proxy fails with
currently used by ...: Switch every listed provider, web provider, or update proxy tosystem,none, or another saved proxy before deleting it. - Admin API rejects
update_use_proxy,bypass, orforce_http1: Migration0060removed those legacy fields/keys. Update callers tooutbound_proxy({"proxies": [...]}) andupdate_proxy_mode/proxy_mode. - Upstream traffic uses wrong exit IP or fails to connect: Click Probe IP on System proxy or the selected saved proxy to inspect exit IPs across 10 AI domains; note that new connections default to
system(set explicitly to No proxy to bypass OS/environment proxies).
Symptom: Client requests fail with 400, 401, 402, 403, 404, or 429
Check
- Inspect Setup → API Keys for enabled state, expiration,
spend_limit,rpm_limit, allowed models, andtransparent_injections/mcp_access_enabled. - Inspect Setup → Models for the target
Model ID's enabled state andpurpose.
Solution
400on Anthropicthinkingor GeminithinkingBudget: Stravia rejects legacy Anthropicthinking.type = "enabled"/ non-nullthinking.budget_tokensand Gemini non-nullthinkingConfig.thinkingBudget. Switch to Anthropicthinking: {"type": "adaptive"}+output_config.effort(ordisabled) and GeminithinkingConfig.thinkingLevel.400from Antigravity with MCP or nullable object tools: Refresh the standalone Antigravity plugin to v0.7.8 from System → Vendor plugins so tool-schema projection omits object/array constraints when no concrete type is set.401 Unauthorized: Confirm the exact header format for the protocol (Authorization: Bearer ...for OpenAI/Responses/MCP,x-api-key+anthropic-version: 2023-06-01for Anthropic,x-goog-api-keyor?key=for Gemini) and confirm the key is enabled and unexpired.402/ Spend limit reached: Increase or reset the key's spend counter on/api-keys/[id].403from Codex: Codex attempted hosted web search withoutweb_searchinjection enabled on that key. Enableweb_searchon the key or addweb_search = "disabled"at the top of$CODEX_HOME/config.toml.404 not_found: Confirm theModel IDis authorized on that key, the route'spurposematches the endpoint (inferencefor chat/responses, notweb_search), and you are not calling removed routes (/v1/responses/compact,/v1/embeddings).429Rate limited: Check the key's 60-second slidingrpm_limitor the upstream model RPM queue under Settings. If using Antigravity, refresh the standalone v0.7.8 plugin forsystem_prompt_prefixsynthetic history handling and first-turnrequestIdpreservation.
Symptom: Model routes show target warnings or requests drop mid-stream
Check
- Open Setup → Models → [route] and look for warning badges on target cards.
- Open Monitor → Request history (
/logs) and Monitor → Allowances (/allowances) to check if a provider is suspended by an allowance guard or invalid credentials. - If running behind Nginx/Caddy, check WebSocket
/v1/responsesand SSE/api/v1/observations/eventstimeout/buffering settings.
Solution
- Purpose mismatch or thinking warning: Remove or replace targets whose operation capabilities do not match the route's
purpose, and confirm generated thinking-level mappings. (In v0.7.8, trait tags likeimage_inputorreasoningno longer maskinferenceorweb_searcheligibility.) - Provider paused by Allowance Guard: Check
/allowancesforExhaustedguarded items and wait for reset or refresh a fresh snapshot. - Streams cut off behind reverse proxy: Enable HTTP/1.1
Upgrade/Connectionheaders, setproxy_buffering off, and setclient_max_body_size 150m.
Symptom: Web search, media, or MCP StraviaRead rejects calls
Check
- Open Advanced Features → Web search / Media understanding / Media generation and check the enabled toggle and bound route/model.
- For Web Search in Local mode, check whether your deployment registers Web Provider extensions (
GET /api/v1/web-provider-kinds). - Inspect the JSON payload passed to
StraviaRead.
Solution
- Web Search shows "No Web Provider extensions available": Core builds removed the built-in
LocalWebChromium runtime and hardcodedlocal/exa/zhipuadapters in v0.7.6. Switch to External Route backed by aweb_searchroute (DeepSeek, Codex, or Antigravity), or deploy a build with injected Web Provider extensions. StraviaReadargument error: Placequestion,attachments,allowed_domains, andwaitinside the nestedbodyobject ({"path":"...","body":{...}}), not at the top level.- Audio understanding rejects file: Ensure the audio uses an accepted non-transcoded container (
WAV,MP3,FLAC,OGG,AAC,AIFF) accepted by the selected route target. - Generated image URL returns 401/404 after 15 minutes: Fetch the retained artifact via
StraviaReadwith:downloadrather than reusing an expireddownload_url, and verifySettings → Data → Artifacts → Client base URLmatches your public origin.
Escalation
If an issue persists after checking the steps above:
- Capture the exact error code, HTTP status, and timestamp from Request history (
/logs) or Server logs. - Export Settings → Advanced → Diagnostics → Download performance data before disabling Debug (if diagnosing latency or resource behavior).
- If attaching a Debug Bundle, manually review and redact bodies, tool arguments, credentials, and download tokens before sharing (Debug Bundles redact only HTTP
Authorizationheaders). - Report the issue with your Stravia version (
v0.7.8), deployment mode (DesktoporServer+ DB backend), and sanitized logs on the Stravia GitHub Issues tracker.