Skip to content

Troubleshooting

How-to guideThe steps for one task.

Start with the trace: Analyze → Traffic, open the request, read the refusing step. Every refusal names its code, and the Error reference tab beside the requests (also the error reference here) explains each one.

Starting

Symptom Cause and fix
listen tcp :8080: bind: address already in use Another process owns the port. Change the listener address
refusing to start: secrets at rest cannot be opened The master key is not the one the store was encrypted with. Restore the right key, or set the previous one as security.previous_master_key to rotate
store could not be opened on PostgreSQL Wrong DSN, or the database user cannot create tables. The log line names the error
/readyz answers 503 with "gateway": "no gateway configuration applied" Nothing is deployed yet. Deploy from the console, or seed with a gateway file
Console shows "Set up this instance" and the claim token is lost Restart; an unclaimed instance prints a new token
Console shows "console build is not embedded" A Go-only build; run make ui build

Calling APIs

Symptom Cause and fix
404 APX-RT-0001 No operation matched: check the base path, the operation path, the host and the method
401 APX-PL-0001 The operation requires credentials; send them, or switch the policy off on that operation
401 APX-PL-0002 The key or token is not valid: revoked, expired, wrong issuer or signature
403 APX-PL-0003 Authenticated but not allowed: a required scope, claim or application is missing
403 APX-PL-0015 / 0016 No subscription to a product containing the API, or the subscription is pending or suspended
403 APX-PL-0023 The application may not call from this address; check allowed sources and trust_x_forwarded_for
429 APX-PL-0007 / 0017 Rate limit or quota reached; Retry-After and X-Quota-Reset say when
400 APX-PL-0018 to 0022 Threat protection refused the body or a pattern; the details say which rule
410 APX-PL-0024 The API version is retired; the Link header names the successor
502 APX-PL-0026 The gateway could not obtain a backend token; check the upstream-auth credentials and the token endpoint
503 APX-UP-0001 / 0002 No healthy target, or every circuit breaker is open: the backend was not called. The request's trace marks the backend step and says why for each target (for example GET / answered 500 from the health check); the API's Overview tab and the console's Overview show the health now. Fix the backend, or the check's path and expected_statuses
502 APX-UP-0003 The backend could not be reached: target URL, network, TLS
504 APX-UP-0004 The backend did not answer within the timeout
503 APX-PL-0009 JWT keys could not be fetched and none are cached; check jwks_url (or, without it, the issuer and its /.well-known/openid-configuration) and network access. The gateway log names the address and the reason

The console

Symptom Cause and fix
Signed out unexpectedly The session expired, or an administrator disabled the account or reset the password
APX-CP-0014 from a script A cookie session made a state-changing request without X-Requested-With: Apinx; use a bearer token
APX-CP-0015 on sign-in Five failed attempts locked the account for fifteen minutes; an administrator can reset the password
503 APX-CP-0026 The configuration store cannot be reached; traffic continues, the console recovers when the store answers
Deploy refused with a list of problems Each names the object, field and rule; fix them in the draft

Performance

Symptom Cause and fix
High gateway time in traces A jq body program or a JWKS refresh; both show as their own step
apinx_telemetry_dropped_total rising The machine is saturated; the request path is unaffected, but traces and analytics are incomplete
Analytics under-counting Check analytics flush failed in the log; rows are kept and retried

Getting help

Include apinx version, the correlation id from the error body or the log line, and the trace of the request (JSON download from the inspector). Secrets are already redacted in all of them.