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 /healthz and GET /readyz (and check stderr or journalctl -u stravia.service -b).
  • Lock & backend: Check for an existing process holding <data-dir>/.instance.lock, or check server.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

  • /readyz returns 503 setup: Complete initial setup at /setup using the one-time token printed in Server startup logs.
  • PostgreSQL requires cache.redis_url: Add [cache] redis_url = "redis://..." to server.toml pointing to a reachable Redis ≥ 6.2 instance (noeviction) and restart.
  • macOS Desktop blocked on launch: Open System Settings → Privacy & Security and allow the ad-hoc signed app explicitly.
  • DataPaths::prepare rejects 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 NativeAdminSession and has no web password) or Stravia Server.
  • Check server.toml [database] backend (sqlite vs. 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-admin in v0.7.8 does not forward [cache] into Gateway::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 (env on Server, os on 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 to system, none, or another saved proxy before deleting it.
  • Admin API rejects update_use_proxy, bypass, or force_http1: Migration 0060 removed those legacy fields/keys. Update callers to outbound_proxy ({"proxies": [...]}) and update_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, and transparent_injections / mcp_access_enabled.
  • Inspect Setup → Models for the target Model ID's enabled state and purpose.

Solution

  • 400 on Anthropic thinking or Gemini thinkingBudget: Stravia rejects legacy Anthropic thinking.type = "enabled" / non-null thinking.budget_tokens and Gemini non-null thinkingConfig.thinkingBudget. Switch to Anthropic thinking: {"type": "adaptive"} + output_config.effort (or disabled) and Gemini thinkingConfig.thinkingLevel.
  • 400 from 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-01 for Anthropic, x-goog-api-key or ?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].
  • 403 from Codex: Codex attempted hosted web search without web_search injection enabled on that key. Enable web_search on the key or add web_search = "disabled" at the top of $CODEX_HOME/config.toml.
  • 404 not_found: Confirm the Model ID is authorized on that key, the route's purpose matches the endpoint (inference for chat/responses, not web_search), and you are not calling removed routes (/v1/responses/compact, /v1/embeddings).
  • 429 Rate limited: Check the key's 60-second sliding rpm_limit or the upstream model RPM queue under Settings. If using Antigravity, refresh the standalone v0.7.8 plugin for system_prompt_prefix synthetic history handling and first-turn requestId preservation.

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/responses and SSE /api/v1/observations/events timeout/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 like image_input or reasoning no longer mask inference or web_search eligibility.)
  • Provider paused by Allowance Guard: Check /allowances for Exhausted guarded items and wait for reset or refresh a fresh snapshot.
  • Streams cut off behind reverse proxy: Enable HTTP/1.1 Upgrade / Connection headers, set proxy_buffering off, and set client_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 LocalWeb Chromium runtime and hardcoded local/exa/zhipu adapters in v0.7.6. Switch to External Route backed by a web_search route (DeepSeek, Codex, or Antigravity), or deploy a build with injected Web Provider extensions.
  • StraviaRead argument error: Place question, attachments, allowed_domains, and wait inside the nested body object ({"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 StraviaRead with :download rather than reusing an expired download_url, and verify Settings → Data → Artifacts → Client base URL matches your public origin.

Escalation

If an issue persists after checking the steps above:

  1. Capture the exact error code, HTTP status, and timestamp from Request history (/logs) or Server logs.
  2. Export Settings → Advanced → Diagnostics → Download performance data before disabling Debug (if diagnosing latency or resource behavior).
  3. If attaching a Debug Bundle, manually review and redact bodies, tool arguments, credentials, and download tokens before sharing (Debug Bundles redact only HTTP Authorization headers).
  4. Report the issue with your Stravia version (v0.7.8), deployment mode (Desktop or Server + DB backend), and sanitized logs on the Stravia GitHub Issues tracker.