Skip to main content

Troubleshooting

This page starts from the symptom. Each row says where to look first, which error or log line you will find, and which page has the fix. The error reference lists every error by status, and the log reference lists every operator log line.

A real-world scenario​

A team says "our traces stopped showing up yesterday". The admin finds the row for an empty logging destination below, runs GET /callbacks/list, sees the callback is still active, then searches the gateway log for Spanway.LoggingError and finds Langfuse Layer Error with a 401 from Langfuse. The team had rotated its Langfuse keys the day before. She retypes the new secret key on the Logging & Alerts page and the traces return.

First checks​

  1. Find the request. Open Logs in the Admin UI, filter by Status = Failure and the time, and open the row. The drawer shows the Error Code and Message. If you have the x-spanway-call-id from the response, paste it into the search box.

  2. Read the error. Look the status and message up in the error reference.

  3. Read the gateway log around the same time. Look any line you do not recognise up in the log reference.

  4. Check what is configured:

    curl http://localhost:4000/active/callbacks \
    -H "Authorization: Bearer $SPANWAY_API_KEY"

    Expected result: a JSON object with alerting, the spanway.success_callback, spanway.failure_callback and spanway.callbacks lists, num_callbacks and num_alerting. A destination or alert channel missing here is not configured, whatever the config file says.

Requests​

SymptomLook atWhat you will findFix
/, /openapi.json or /routes answers 404 although the gateway is upThe request's Authorization header, and the gateway log at INFOSpanway API docs: answered 404 to GET /openapi.json because the caller is not a signed-in user.API docs and build details and log reference. Send your own key or sign in to the Admin UI first.
A public page such as /public/catalogue or /public/model_hub answers 429The Retry-After header, and the gateway log at WARNINGSpanway public route rate limit: answered 429 to GET /public/catalogue because one address sent more than 120 requests this minute.Copy protection and log reference. Wait for the next minute, raise public_route_rate_limit_per_minute, or set trusted_proxy_ranges behind a load balancer.
Every request answers 401The client's Authorization header and the Virtual Keys pageA key without the sk- prefix gets Spanway Virtual Key expected. The key is expected to start with 'sk-'. and one quiet WARNING line user_api_key_auth(): Exception occured per request. An sk- key the gateway does not know gets type token_not_found_in_db with Invalid proxy server token passed and an ERROR line insteadError reference, 401. Send a virtual key, not a provider key.
A key that worked yesterday answers 401The key's expiry on the Virtual Keys pageexpired_keyError reference, 401 and key expiry.
403 for one model onlyThe key's and team's models listauth_error with key_model_access_denied or team_model_access_deniedError reference, 403.
422 with budget_exceededThe key, team or user budget on its pageBudget has been exceeded! ...Error reference, 422 and budgets.
429 under loadThe x-spanway-rate-limited-by and rate_limit_type headers, then that scope's tpm_limit, rpm_limit or max_parallel_requestsRate limit exceeded for <scope>: <id>. Limit type: ..., or Team borrow cap reached and Team share of the ... priority pool from the dynamic limiterError reference, 429 and rate limits.
Priority pools have no effectThe gateway log at the first requestPREMIUM FEATURE: Reserving tpm/rpm by priority is a premium featureLog reference, rate limits. Add the licence.
Every request answers 502 after adding a compression guardrailThe response body's detail.error and the guardrail's unreachable_fallbackHeadroom compression service unreachable or another Headroom compression service ... messageHeadroom errors. Fix Headroom, or set unreachable_fallback: fail_open.
A guardrail you configured in config.yaml never runsThe gateway log at startSkipping guardrail '<name>': invalid configuration, proxy is starting WITHOUT this guardrailLog reference, guardrails. Fix the guardrail and restart.
A custom code guardrail lets everything throughThe gateway log at WARNINGCustom code guardrail '<name>': Unknown action '<action>'. Treating as allow.Custom code guardrails. Return one of the helpers.
Requests fail with Generic Guardrail API failedThe gateway log at ERRORGeneric Guardrail API: failed to make request: <error>Generic guardrail API. Fix the service.
A team's approved guardrail never checks its requestsThe team's Guardrails on the Teams pageThe guardrail is active but attached to nothingGeneric guardrail API, approve. Attach it to the team.
A Word file is refused by RAG ingestThe response detail.reasonunsupported_format or archive_not_allowedRAG ingest, upload checks. Save it as PDF.
Some requests answer 503 overloaded_error with Worker at capacityGET /health/backlog and spanway_admission_rejected_requests_total by reasonThe worker is full and its queue is full or timed outError reference, admission control. Retry after Retry-After, raise max_in_flight_requests_per_worker or add workers.
Admission control has no effect although the keys are setThe gateway log at ERRORIgnoring invalid admission control settings, per-worker admission control is disabledLog reference, admission control. Fix the value.
Signing in to a worker from the control plane fails with Invalid or expired login codeThe worker log at startcontrol_plane_url is configured but Redis is not configured ...Control plane errors. Configure Redis on the worker.
Old request logs are still there although a retention period is setThe gateway logInvalid maximum_spend_logs_retention_interval value or Spend log cleanup run finished: outcome=budget_exhaustedLog reference, retention. Fix the schedule or raise the run budget.
Every request answers 503 while Redis is downThe response messageRate limit enforcement unavailable: request counters could not be verified against RedisError reference, 503. Restore Redis, or set fail_closed_rate_limit_enforcement: false.
The Model Leaderboard shows nothing new for a minuteThe gateway log at WARNINGSpend tracking - database out of connections or rollup row lock timed out during model usage flushLog reference, spend rollups. Usage shows after the next flush.
A Cloud signup answers 421, or the signup page says a region "has its own signup page"The response detail.signup_url and the gateway log at INFOcloud: signup for region <region> pointed at <signup_url>, nothing storedError reference, Cloud data regions. Sign up on that region's page.
A budget change or delete answers 404 or 400The response messageBudget with id '<id>' not found, or Budget <id> is the budget of organization <org>Error reference, budgets.
A model's requests cost 0 in spendThe spend log row's zero_cost_diagnostic and the gateway log at WARNINGBillable request has no price and is logged as unpricedLog reference, pricing and custom pricing.
403 model_cost_map_missing for a new modelThe Cost Tracking page's block switchModel '<model>' has no pricing in the cost mapError reference, cost tracking. Add a price or turn the switch off.
401 Not allowed to access model due to tags configurationThe deployments' Tags and Enable Tag FilteringNo deployment carries the request's tagError reference, tags and tag routing.
A free key reaches the premium deploymentThe request's x-spanway-tags header and reject_clientside_metadata_tagsThe caller sets its own tagsTag routing, who can set tags.
The encryption check answers 503The gateway log at WARNINGscan: <location> unavailableError reference, credentials. Fix the database and run the check again.
A Copilot model answers Connect GitHub Copilot for credential ...Your connections on the LLM Credentials tabThe user never connectedPersonal provider connections.
401 on POST /global/spend/reset with an admin keyThe key usedwhich is only for MASTER KEYError reference, spend. Use the master key.
The capture rate card answers 503The gateway environmentOPENAI_ADMIN_KEY is not set on the proxySpend capture rate.
429 with No healthy deployment availableThe deployments the error message names, Models + Endpoints, Health Status, and the spanway_deployment_cooled_down metricEvery deployment of the model is cooled downError reference, 429 and cooldowns.
POST /fallback answers 400 ... is set in the config file and cannot be changed here.router_settings.fallbacks in config.yamlThe file owns the listError reference, fallbacks. Edit the file.
A fallback list set through the API disappears after a restartThe gateway version and config.yamlOlder versions let the file overwrite an API changeFallback management. Keep each list in one place.
The readiness probe answers 503 with "db": "disconnected"The database and allow_requests_on_db_unavailableThe pod is out of rotation until the database answersHealth checks and log reference, health.
The Kubernetes preStop drain hook fails with 401drain_endpoint_token and the hook's X-Drain-Token headerNo token is configured, or the values differDraining a worker.
Two teams get the same cached answerThe cache key and namespaceExact-match entries are shared by every caller of the model groupWho shares an entry.
A key gets 403 Not allowed to set ... as a cache controlThe key's allowed_cache_controlsThe control is not allowed for that keyError reference, cache.
A request with a data policy answers 400 ... satisfies the data policyThe deployments' declared data terms on Models + EndpointsNo deployment meets the policyError reference, data policies and log reference, data policy.
500 on a management routeThe gateway log for DB not connectedThe route needs a databaseError reference, 500. Set DATABASE_URL.
Cost shows as empty or zeroThe gateway logModel=<name> not found in completion cost mapLog reference and custom pricing.
The website assistant answers 503The body kind, and public_assistant lines in the gateway lognot_ready with no index swapped line yet, or unavailable with admission counters are unreachable or turn failed, answering unavailable: kind=...Error reference, 503 and log reference, website assistant. Publish the index, or restore Redis.
The website assistant answers 403 or 429The page's origin and the Retry-After headerforbidden_origin, or rate_limited for one visitor addressError reference, 403 and 429. Add the origin to public_assistant_origins, or wait.
429 from POST /v1/inspectThe Retry-After headerInspect rate limit reached: <n> dry runs per minute for this keyError reference, 429. Wait, or raise INSPECT_RPM_LIMIT.
500 from POST /v1/inspectThe body's preset or inspect_as_key fieldRouting presets need a connected database or Inspecting as another key needs a connected databaseError reference, 500. Set DATABASE_URL.
400 No deployment of model '<model>' satisfies the provider preferencesThe request's provider object, and the key's and team's preferencesWhich rule removed the last deployment, named after the colonProvider preferences errors. Loosen the preferences.
404 No routing preset '@preset/<name>'The preset name and the key's team on Routing PresetsThe preset is missing in the key's team and the global scopeRouting presets errors. Create it or fix the name.
422 StructuredOutputRepairErrorThe response format and the repair settings on Router Settings, Structured OutputThe reply never matched the JSON schema within the allowed retriesStructured output repair errors.
A provider answers 401 and the log shows Defaulting to os.environ value for key=The secret manager and the identity the gateway usesThe lookup failed and the environment variable was emptySecret managers. Fix the secret or the access.
A cleared Router Settings value still appliesThe audit row for router_settings and the gateway start timeThe saved value is gone, the running gateway keeps its value until it restartsRouter Settings. Restart the gateway.
A policy in audit mode blocks nothing but no verdicts show in LogsThe gateway log at WARNINGPipeline: guardrail '<name>' not found in callbacksLog reference, policies. Create the guardrail or remove it from the policy.
A replay or dry run counts guardrails as erroredThe gateway log at ERRORPipeline: unexpected error from guardrail '<name>': ...Log reference, policies. Check the guardrail's provider and credentials.
422 from POST /policies/simulateThe msg of the detail entryValue error, set exactly one of policy_name, policy_id or guardrailsError reference, 422. Send one policy field and one scope field.
A leaked key report was accepted but no audit row showsWhether audit logging is on, then the gateway logA compromised key report: blocked virtual key ... reporter_ip=... WARNING line and no row, because audit logging is offLeaked keys. Turn on store_audit_logs to keep the block as an audit row.
Every request answers 451 with sanctioned_jurisdiction or sanctions_location_unknownThe response code, the readiness check's sanctions_geofence and the gateway log at WARNINGsanctions geofence refused <path> from <network> ...Error reference, sanctions and log reference
Every request answers 503 sanctions_policy_unreadableThe gateway log at ERRORsanctions geofence: the jurisdiction policy is unreadableError reference, sanctions
Enterprise features stopped working without a restartGET /health/license and the gateway log at WARNING"license_type": "starter" and License validity changed: valid=falseError reference, license
The Lens page answers 503 naming a settingThe gateway environmentLENS_GATEWAY_SECRET, SPANWAY_LENS_URL or SPANWAY_LENS_SERVICE_TOKEN missing or too shortError reference, Lens
Lens traces have no inputs or outputsThe gateway log at WARNINGLens content policy not sent, Lens keeps no span contentLog reference, Lens
A CI eval run answers 403 or 429The response messagethis ci key cannot run dataset ... or this ci key already has <n> runs in progressError reference, evals
A scheduled eval stopped firingThe gateway log at WARNINGevals: schedule <id> disabled, <reason>Log reference, evals

Sign-in, SSO and SCIM​

SymptomLook atWhat you will findFix
People get 401 right after signing in at the identity providerALLOWED_EMAIL_DOMAINS and ui_access_mode on the SSO Settings tabThe email domain is not allowed, or the Admin UI is open to admins onlyError reference, SSO and Admin UI SSO.
SAML sign-in answers 401 Could not process SAML response or 401 SAML authentication failedThe gateway log at WARNINGSAML response could not be processed: <reason> or SAML authentication failed: <reason>, often an expired answer, a wrong audience or clock skewLog reference, sign-in. Fix the certificate, the clock or the audience the reason names.
SAML sign-in answers 500 Invalid SAML configurationThe gateway log at ERRORSAML settings could not be loaded: <reason>Error reference, SSO. Fix the metadata URL or XML.
Every SSO sign-in answers 403, existing users includedThe response bodyYou must be a Spanway Enterprise user to use SSO for more than 5 users.Error reference, 403. Add a license or deactivate users.
403 User is not in the restricted SSO groupThe person's groups at the identity providerui_access_mode is restricted_sso_group and the group is missingAdmin UI SSO. Add the person to the group.
spanwayctl login fails with CLI login session not found or expiredThe number of replicas and the cache sectionSeveral replicas without a shared Redis cache, and the log line CLI SSO login session not found in cacheCLI sign-in. Configure Redis for every replica.
spanwayctl login keeps printing Still waiting for authentication...The browser tab the CLI openedThe browser step was not finished, or the code was not typedCLI sign-in. Run spanwayctl login again and finish within ten minutes.
An organization's sign-in link answers 404 This sign-in link is not availableThe organization's SSO tabThe connection is off, deleted or not licensedError reference, SSO and organization SSO.
Organization SSO sign-in answers 401The gateway log at WARNINGorg sso: refused sign-in through <connection>: <reason>, for example an unverified domain or an account with a gateway roleLog reference, sign-in. Fix what the reason names.
Organization SSO answers 429 Too many sign-in lookupstrusted_proxy_rangesEvery visitor shares the load balancer's addressOrganization SSO. Set trusted_proxy_ranges.
Every SCIM call answers 401The token on the SCIM tabA wrong or revoked token, or a key without allowed_routes: ["/scim/*"]SCIM errors. Create a new SCIM token.
A person's keys answer 401 User=<id> has been deactivated via SCIMThe person's status in the directoryThe directory deactivated or unassigned themError reference, SCIM. Reactivate them in the directory.
A group push answers 400 User with ID '<id>' does not existscim_upsert_user and the token typeStrict mode is on, or an organization-scoped token named a member with no accountSCIM errors. Assign the user to the app first, or turn scim_upsert_user on.
SCIM users land in no teamThe group ids the provider sendsThe group id is not a Spanway team_idSCIM errors. Create the group through SCIM first.
SCIM pushes grant no proxy adminThe gateway log at WARNINGError reading scim_admin_group setting, defaulting to NoneLog reference, SCIM. Check the config file and the database.
An Admin UI user cannot sign in after the move to the FIPS imageThe gateway logSign-in refused: this password was stored with scryptMoving an existing gateway. Set the password again or use SSO.

AI hub and public catalogue​

SymptomLook atWhat you will findFix
Visitors get 401 on the AI hubenable_public_model_hub on the UI Settings tabThe hub is closed to visitors without a key, the defaultError reference, AI hub.
GET /public/catalogue answers 404Status Page, Public surfacesPublic catalogue is not enabledPublic catalogue.
The catalogue shows null latency and error rateThe gateway log at ERRORError aggregating public catalogue trafficLog reference, AI hub.
A deleted model still shows on the hub with no providerpublic_model_groupsThe name is still on the public listAI hub, choosing what is public.

MCP​

SymptomLook atWhat you will findFix
The model still gets the full tool catalogueThe key's and its team's Tool search switchNeither has tool search on, or the request does not use the gateway as its MCP serverTool search. Switch it on for the key or team.
Tool search returns nothing usefulThe Tool Search tab of MCP Servers, and the gateway logA high similarity threshold, a small top_k, or mcp_tool_search settings are invalidTool search errors and log reference, MCP. Lower the threshold or fix the setting.
Saving tool search settings answers 500The response bodySet `'STORE_MODEL_IN_DB='True'` in your env to enable this feature.Error reference, 500. Turn on store_model_in_db.
An assistant cannot connect to /admin/mcpThe status code and body404, 401 A personal Spanway admin bearer credential is required., or 403 This Spanway identity may not use the admin connector.Admin MCP HTTP errors. Turn the server on, send a key, or check SPANWAY_ADMIN_MCP_MIN_ROLE.
The gateway will not start after an admin MCP changeThe startup outputSPANWAY_ENABLE_ADMIN_MCP must be true or false or another admin MCP setting messageAdmin MCP startup errors.
An admin MCP call has no audit rowThe gateway logHosted admin MCP audit row was not writtenLog reference, MCP. Check the database.
A tool call answers 403 with approval_requiredThe response bodyapproval_id and the names of the matching policiesError reference, human approval. Wait for the approval, then retry with x-spanway-approval-id.
A workflow step fails with approval_unavailableThe gateway logapproval gate for workflow step ... failedLog reference, human approval. Check the database.
A bring your own key tool answers 401 byok_auth_requiredThe response bodyThe user stored no personal key for the serverError reference, MCP credentials. Connect from the server card.
A request with an MCP tool answers 400 Violated guardrail policyThe response bodyunregistered_servers names a server the gateway does not knowError reference, MCP gateway. Register the server or remove the tool.
An environment plan answers 409The response bodyThis is environment ..., a missing environment name or an unresolved secretError reference, environments.
A skill upload or plugin change answers 400 skill_scan_blocked, skill_scan_incomplete or skill_scan_unsupportedThe message and Skill scan results on the Skills pageThe file that was blocked or could not be checked, and the guardrailSkill scanning errors and log reference, skill scanning.
A memory call answers 401 for a non admin keyThe response bodyOnly proxy admin can be used ...Error reference, memory. Memory is for proxy admins today.

Client tools​

Start here when a coding agent, an SDK, a chat app or an MCP client cannot use the gateway. The first question is whether the request reached the gateway at all, because the fix is on a different side in each case.

  1. Open Logs, filter by the tool's key alias and the time of the failure. If you have the x-spanway-call-id from the answer, search for it instead.
  2. A row is there. The request reached the gateway, so read the status and message in the drawer and look them up in the client error reference. The drawer also shows the deployment the router picked, which the x-spanway-model-id, x-spanway-model-group and x-spanway-routing-reason response headers repeat on the client side.
  3. No row is there. The request never arrived, so the problem is the base URL, the network or TLS on the client side, see connect any client.
  4. Still unclear. Start the gateway with --detailed_debug on a test instance to log every request it receives with its route and the key check result, and turn on the client's own debug output from the table below, then compare the URL and headers the client sends with the base URL table.
SymptomLook atWhat you will findFix
A new tool fails with 404 on its first callThe client's debug outputA path with /v1/v1, or a path without /v1 the gateway does not serveApply the /v1 rule.
An MCP client gets 401 although the key works in curlThe MCP configuration fileA literal $SPANWAY_API_KEY in a JSON file, which no client expandsUse the client's own variable syntax from MCP clients.
The tool works but its spend lands on the wrong teamLogs, the key columnSeveral tools share one keyGive each tool its own key, see make a key for a tool.
Claude Code's /model picker misses a gateway modelspanwayctl configure claude output, or the listing curl in Claude Code models/model will list <n> of the proxy's <m> models, or model discovery is offSet CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY=1. Only a wildcard route, a name with *, never shows in the picker, so pin it with --model or add a named model for it.
Budget errors in the tool's own error popupVirtual Keys, the key's spend422 budget_exceededRaise the budget or wait for the reset, see client error reference.
Requests are slow and the gateway shows several attemptsLogs, x-spanway-attemptsThe SDK retried on top of the gateway's own retriesSet max_retries=0 in the SDK and let the gateway retry.
ClientDebug switchWhere the output goes
OpenAI Python and Node SDKsOPENAI_LOG=debug in the environmentThe terminal, with each request URL, status and retry.
Anthropic Python and TypeScript SDKsANTHROPIC_LOG=debug in the environmentThe terminal, the same detail as above.
Google Gen AI SDK for Pythonlogging.basicConfig(level=logging.DEBUG) in the scriptThe terminal, through the httpx logger.
Claude Codeclaude --debug, and /status inside a session~/.claude/debug/<session-id>.txt. /status shows the base URL and the credential source inside the session.
CodexRUST_LOG=debug codex, and codex debug models for the model list it loadedUnder $CODEX_HOME/log, with a plain text codex-tui.log when log_dir is set, see Codex.
OpenCodeopencode --print-logs --log-level DEBUGThe terminal, and ~/.local/share/opencode/log. opencode debug paths prints the folder.
Gemini CLIgemini --debugThe terminal. F12 opens the CLI's debug console.
GitHub Copilot CLIcopilot --log-level debug~/.copilot/logs/, one file per session.
Aideraider --verboseThe terminal.
GooseAlways on~/.local/state/goose/logs/ on macOS and Linux.
VS Code MCP serversMCP: List Servers, pick the server, Show OutputThe Output panel for that server.
Gatewayspanway --config config.yaml --detailed_debugThe gateway log, with every request, the key check and the routing decision. Use it on a test instance, the volume is high.

Logging destinations​

SymptomLook atWhat you will findFix
Nothing arrives at a destinationGET /callbacks/listThe callback is missing, so it is not configured, or present, so the destination rejects eventsIf missing, add it, see logging. If present, read the next row.
The callback is listed but the destination is emptyThe gateway log for Spanway.LoggingErrorLangfuse Layer Error, Langsmith Error: 401, or another traceback naming the destinationLog reference. Fix the credentials or host it names.
Saving a callback answers 400 naming two fieldsThe Edit Callback Settings dialogThe host changed while the stored secret was keptRetype the secret with the new host, see logging.
A team's traces land in the wrong projectThe team's Settings tabNo team callback, so the gateway wide one is usedTeam logging.
Team callback answers 403The licensescoped_integrations is not licensedTeam logging.
Generations show no prompt or responseThe request's team and the gateway settingsturn_off_message_logging or a zero data retention policyWhat Spanway stores.
/metrics answers 401 or 404The scraper's key and spanway_settings.callbacksUnauthorized access to metrics endpoint, or the route is not mountedPrometheus.
Spans print to the console instead of reaching the collectorOTEL_EXPORTER and OTEL_ENDPOINTOpenTelemetry: Unknown log exporter, or no endpoint setOpenTelemetry.

Alerts and email​

SymptomLook atWhat you will findFix
No alert arrives in SlackGET /health/services?service=slack422 "slack" not in proxy config, or success with nothing in the channelAlerting. Add the destination, or fix SLACK_WEBHOOK_URL.
Webhook alerts never arrive while Slack worksThe gateway log at startupWEBHOOK_SIGNING_SECRET is invalid (...)Log reference. Fix the secret.
An alert type you expect never firesalert_types in the config and the Alerting Types tabThe type is off, or off by defaultAlerting.
Budget alerts flood the on-call channelalert_to_webhook_urlEvery type goes to one webhookAlerting. Point budget_alerts at another webhook.
No email arrivesGET /health/services?service=email and the gateway logFailed to send email alert, RESEND_API_KEY is not set, or has no recipientsEmail.
An email event cannot be switched offThe response to Save Changes400 ... email_settings set in the config file and cannot be changed hereEmail. Change it in the config file.
A query on Query and Explore is refused or stopsThe message under Run or the detail.code of POST /analytics/queryquery_refused with the part that is not allowed, query_timeout, or busyError reference, Query and Explore. Use the tables in Tables you can query, narrow the dates, or retry.
End users on the Explore tab stays emptyWhether your application sends x-spanway-end-user-id and GET /analytics/users/activetotal_users 0 although requests arriveEnd user analytics. Send the header or the user field with each request.
Alerts Inbox stays empty while a key clearly spends far more than usualThe gateway log for Usage anomaly scan lines and GET /alerts/baselines?entity_type=keyNo scan line (the scan is off with scan_minutes: 0), Usage anomaly scan failed, or the key's threshold above today's value because a past busy day set its usual levelError reference, alerts inbox and log reference. Click Scan now, lower multiplier or baseline_days.
One deployment is slow or keeps answering 429Model Leaderboard, Live deployment speed, or GET /health/deploymentsHigh p90 latency or time to first token, or a growing Rate limited (429) countDeployment speed. Move traffic with routing or raise the provider limit.
A key owner never gets an expiry emailThe gateway log for key hygiene: linesexpiry notices skipped, no email callback is configured, not emailed (the key has no owner), or failed: User email not foundLog reference, key security. Configure email, give the key an owner or the user an email address.

Audit log and request logs​

SymptomLook atWhat you will findFix
The Audit Logs tab shows an Enterprise noticeThe license403 naming a Spanway enterprise licenseAudit logs.
No new audit rows appearThe gateway logFailed Creating audit log or prisma_client is NoneLog reference.
Verify chain reports a broken rowThe row it names and your SIEM exportentry_hash_mismatch or previous_hash_mismatchAudit logs. Treat the database as tampered with until explained.
Verify chain says truncated_beforemaximum_audit_log_retention_periodRetention deleted the start of the chainAudit logs. Compare chain_anchor with your export.
The Logs page says Request/Response Data Not Availablestore_prompts_in_spend_logs and the team's data policyPrompt storage is off or the request was redactedWhat Spanway stores.
Open run ledger answers 404 or 403The id and the key's userNo run found for id or Not allowed to view run ledgersError reference and run ledger.
An app's trace exporter logs 413, 501 or 503 from the gatewayThe exporter's endpoint and the gateway logThe upload size, a missing Lens connection, or OTLP upload relay failedApp traces and provider attempts and the log reference.
A slow request does not show why it was slowThe Provider attempts card in the Logs drawerOne row per retry or fallback with its time and errorProvider attempts.
A request on the Logs page shows [hidden by your role]The notice above the request and the user's custom roleThe role denies logs.prompts, logs.responses or logs.tool_arguments, or the gateway could not read the role and logged Could not read the custom role of <user id>, hiding log contentData access governance. Use Reveal with logs.reveal, or change the role.

Containers and migrations​

SymptomLook atWhat you will findFix
docker exec ... sh or kubectl exec ... -- sh failsThe exec commandexec: "sh": executable file not found in $PATH, because the images have no shellImage errors. Run spanwayctl or python directly.
The container exits at once with exit code 2docker logs or the pod logusage: spanway-container <...> [args]Image errors. Start the command with a role.
The migrations job failsThe job logDATABASE_URL is not set ... or Migration job failed after retries.Image errors and the log reference.
The gateway will not start with SPANWAY_FIPS_MODE onThe startup outputSpanway proxy refused to start: SPANWAY_FIPS_MODE is on but ...FIPS image errors. Run spanway-ai-fips and keep TLS certificate checks on.