Skip to content

Troubleshooting ​

Start with the health endpoints, then check startup logs and request-level errors.

Health endpoints ​

All three endpoints are unauthenticated:

EndpointReturns
GET /api/healthAlways 200. Includes status, services.database (SELECT 1), and services.redis (status, healthy, enabled; disabled when Redis is off). Also includes services.rate_limiting (informational, never degrades status): backend (redis for one shared window across the deployment, memory for one window per process, so N workers enforce N times the configured limit), shared, and disabled (rate_limit_disabled)
GET /api/health/ready200 {"status":"ready"} when healthy, otherwise 503. Use this for orchestrator readiness probes
GET /api/health/liveAlways 200 {"status":"alive"}. Liveness only, with no dependency checks

Startup failures ​

The process exits on misconfiguration instead of starting partially configured. Check the container or console logs for the error:

ErrorCause / fix
Migration error on bootDatabase unreachable, wrong credentials, or a failed migration. The port is never bound; fix the database and restart
Could not find alembic.inialembic.ini is missing from the current working directory and repository root
Redis connection error at bootREDIS_ENABLED=true but Redis is unreachable. Startup does not degrade silently
Invalid TRUSTED_PROXIES CIDRFix the CIDR syntax; validated at startup
Settings validation errorInvalid numeric or range setting, such as DB_POOL_SIZE < 1 or REDIS_TIMEOUT <= 0
Config validation errorA stored provider, model, or user record is invalid; the error message names the record

Symptom → cause → fix ​

SymptomCauseFix
401 authorization header missing / invalid authorization header formatNo key sent, or Authorization does not use BearerSend Authorization: Bearer sk-… or x-api-key: sk-…. Console JWTs do not work on /v1/*
429 too_many_auth_failures with Retry-AfterAPI-key IP lockout is enabled (off by default) and this IP exceeded max_failed_api_key_attempts invalid keysWait out Retry-After and fix the key. Because lockout is per IP, one bad client blocks all traffic from that address (such as 127.0.0.1 locally). Disable it under Settings → Advanced → Security & Rate Limiting, toggle Disable Throttling, or restart to clear in-process counters
403 model_not_allowedKey or user allowlist excludes the modelUpdate the allowlist or use an allowed model. An empty allowlist denies all models
404 model_not_foundModel name is not in the model mappingsAdd the mapping or fix the name. Virtual models require smart routing to be enabled
500 configuration_error mentioning a virtual modelauto/fast/best used while smart routing is disabled, or on a non-chat endpointEnable smart routing, or use a concrete model name
429 rate_limit_exceededPer-key RPM cap or auth rate limit reachedRaise rate_limit_rpm or wait for the 60 s window to reset
429 budget_exceeded / user_budget_exceededKey or account budget exhaustedRaise or reset the budget (account budgets can only be reset by an admin)
413 body_size_exceededRequest body exceeds max_request_body_size_bytes (64 MiB default)Raise the limit or shrink the request
499 client_disconnected in logsThe socket closed before the response finished: an SDK/browser read timeout, proxy_read_timeout in your reverse proxy, or a CDN 524Raise the client or proxy read timeout, keep response keepalive enabled, or use streaming for long calls. Closing after the last frame is logged as success
Response arrives as 200 with an error JSON bodyKeepalive heartbeat mode had already committed HTTP 200 before the failure occurredExpected tradeoff; inspect the response body and check the proxy logs for the underlying error. See Reverse Proxy & TLS
Browser reports a CORS failure instead of a real statusAuth, body-size, and rate-limit checks reject requests before CORS headers are addedReproduce with curl to see the real status code, then fix the underlying error
Streaming request stalls with no dataUpstream is silent; the proxy is sending : keep-alive comment framesNormal behavior. Disable response buffering in your reverse proxy if it buffers SSE
Admin UI missing at / (API works)frontend/dist did not exist at startupRun uv run llm-proxy --build-frontend and restart
Logs screen shows rows with {"_bodies_disabled": true}Log Input/Output is off by default, so request/response bodies, upstream error bodies, and MCP/web-search payloads are omitted while metadata rows are still writtenEnable Log Input/Output in Settings → Log Management. x-log-full: true has no effect while the master switch is off
Logs screen shows {"_sampled_out": true} on some rows with body logging onBody Sampling Rate is below 1.0, so that request was not sampledSet Body Sampling Rate to 1.0, or send x-log-full: true on requests you want captured
Usage stats empty while logs existUsage and logs are recorded separatelyCheck the date range; usage records are pruned according to the log retention window
503 redis_not_available on Responses endpointsRedis is disabled, but stored responses require RedisEnable Redis, or avoid the response-storage endpoints
MCP server refuses to startDeny-by-default policy blocks commands or env vars not on the allowlistAllowlist the exact command in Settings → General → MCP Security (see MCP Servers)
MCP 403 Access denied to MCP serverKey allowlist excludes the serverUpdate the key's MCP allowlist
MCP returns 404 for an existing serverServer is stopped, disabled, or crashed at startupCheck status in the console; disable and re-enable to restart
MCP changes do not take effectUpdating a server does not restart a running instanceDisable and re-enable the server
web_search tool calls return web_search_tool_result_errorSearch backend is unreachable, rate-limited, or has an invalid keyThe model still answers; check the Web Search log tab and backend configuration
Smart routing picks unexpected modelsClassifier signals or mode weightsReview Settings → Advanced → Smart Routing; enable verbose_routing_logs and check per-request feedback
Claude Code warns the session "isn't eligible" for no-charge auto modeThe upstream does not support server-side auto-mode checksSee Claude Code auto mode below

Claude Code auto mode ​

Claude Code (v2.1.278+) in auto mode asks the upstream to run safety checks by sending a safeguards request field and the dangerous-tool-use-2026-09-03 anthropic-beta value. The upstream must answer with a safeguard_results response field (for streaming, inside the terminal message_delta), keyed by tool-use id. When that is absent, Claude Code falls back to its own classifier (billed as token usage) and shows a notice on the first checked action.

Auto mode continues to work normally when this happens.

  • Non-Anthropic upstreams (Ollama, vLLM, SGLang, and third-party Claude-compatible providers such as z.ai, Kimi, MiniMax, Moonshot, DeepSeek, and Qwen) do not implement server-side checks, so the notice is expected on those routes.
  • Anthropic-format upstreams work when these fields pass through end to end. Native Anthropic passthrough forwards safeguards, anthropic-beta, and all response keys verbatim; the converted path also preserves safeguard_results.
  • To silence the notice, set CLAUDE_CODE_AUTO_MODE_SERVER=0 in the environment where Claude Code starts.

To check the active state of a session, run /status in Claude Code and look at Auto mode server: Enabled means server-side checks are active, and Disabled means the session fell back to the client classifier.

Getting more detail ​

  • Request id: every response includes X-Request-Id, which you can search on the Logs screen. An inbound x-request-id is used for tracing and routing, while the response header always contains the server-generated id.
  • Application logs: set LOG_LEVEL=DEBUG (requires restart) or pass --log-file.
  • Audit trail: admin actions and security events appear under Logs → Audit Logs, with Verify Integrity to check the hash chain.
  • Provider failures: errors include the upstream status and message. 502 indicates a provider, network, or parse failure; 504 indicates a timeout (upstream calls use a fixed 600 s read timeout and 10 s connect timeout; the provider timeout field is not applied).

MIT licensed