Skip to content

Error catalog

Every Nanorix API error response follows the same JSON envelope. The machine-readable code is the canonical identifier — find it below for resolution paths.

Response envelope

{
  "error": {
    "type": "<category>",
    "code": "<machine_code>",
    "message": "<human>",
    "doc_url": "https://docs.nanorix.io/errors/<code>",
    "request_id": "req_018f5b8e-3a9c-4c4d-9e7e-d4a8f7b2c10e",
    "retry_after": 30
  }
}

request_id is server-generated per request; copy it into support tickets so engineering can grep server logs cross-referenced. Also emitted in the X-Nanorix-Request-Id response header on every response (success or error). retry_after is present only on rate_limited (429), idempotency_key_in_use (409), db_pool_circuit_open (503), capsule_capacity_reached (503) and bundle_memory_busy (503); it is also sent as the Retry-After header. The error auditproof_signing_unavailable (503) sends neither: the retry it asks for is a different request. It carries capsule_id, status, signing_request_id, retry_signing_url and pause_window_expires_at inside error, and destruction_failure_step when the destruction stopped partway.

message is for people and its wording can change; branch on code. Details such as a rejection reason or an input hash appear inside message, not as separate fields.

doc_url always has the form https://docs.nanorix.io/errors/<code>. This catalog is one page with a section per code, so the section for a code is /errors/#<code> on this site (for example /errors/#rate_limited); the per-code path in doc_url itself does not serve a separate page.

Codes

code http type plain-English cause suggested resolution severity
invalid_api_key 401 authentication_error API key missing, malformed, or revoked Verify key starts with nrx_live_ or nrx_test_. Get key in your Console (Settings → API keys). high
resource_not_found 404 not_found Capsule, Capsulefile, proof, profile, or other resource ID does not exist or you don't have access Check the resource ID. For destroyed capsules, use GET /v1/proofs/<id> instead. medium
invalid_parameters 400 invalid_request_error Request body malformed, missing required field, or field value out of range Inspect message for the specific field; consult the API reference. low
capsule_memory_exceeds_server_limit 400 invalid_request_error The Capsulefile's capsule_memory_mb is above the most memory one capsule can get on the API server that took the request, so no capsule was created Lower capsule_memory_mb to the limit the message names, or leave it unset. low
rate_limited 429 rate_limit_error Per-IP or per-customer request rate exceeded Wait retry_after seconds and retry. Use exponential backoff. low
quota_exceeded 402 quota_error Tier quota for AuditProofs / Capsulefile count / concurrent capsules reached, where billing tiers apply (an install with billing off never returns it) Where billing tiers apply, upgrade tier in your Console (Billing) or wait for monthly reset. medium
resource_conflict 409 conflict_error Resource state conflict (duplicate name, capsule already destroyed, profile in use) Inspect message for the conflict; resolve and retry. low
payload_too_large 413 invalid_request_error Request body / file upload exceeds the upload limit: the tier's where billing tiers apply; on an install with billing off, this server's, except that a single uploaded file keeps its tier's size limit, or a file would not fit under the capsule's memory limit Compress or split the upload; for the capsule's memory limit, write a smaller file or use a capsule with a higher limit. low
capsule_expired 410 capsule_error Capsule has been destroyed (TTL elapsed or explicit destroy) Use GET /v1/proofs/<capsule_id> to retrieve the AuditRecord. Capsule data is unrecoverable by design. low
mfa_required 403 mfa_required Endpoint requires recent MFA verification Re-authenticate via MFA flow; retry within session window. low
mfa_enrollment_required 403 mfa_enrollment_required Paid tier requires MFA enrollment Enroll MFA in your Console (Settings → Security). medium
tier_required 403 forbidden Endpoint requires Team tier or higher (e.g., egress profiles) Upgrade tier or use a tier-eligible endpoint. medium
session_required 403 forbidden The invitation's email address belongs to an existing account with no password, and the request to POST /v1/team/accept carried no bearer token Call the route again with a full Console session for that account (signed in, second factor completed where one is enrolled) as the bearer token. If the account cannot sign in to the Console, ask the admin of the inviting organization to invite another email address. medium
signup_disabled 403 forbidden POST /v1/signup or POST /v1/auth/signup on an install whose self-service signup is off (the default on your own install) Ask the install's operator for an account; the operator creates organizations with nanorix-api create-organization (see Self-hosting). low
input_provenance_rejected 422 input_provenance_error Customer-declared input manifest hash does not match received bytes Recompute the manifest hash on the source bytes; verify your signing key. The service then runs a destroy of the capsule; when that destroy completes, its AuditProof includes the rejection event unless the service failed to record it. If that destroy stops partway, no AuditProof exists, and after a stop at step 1 or step 4 the capsule's runtime can still hold keys or data. high
secrets_injection_rejected 422 secrets_injection_error Customer-declared env_var secret could not be resolved Verify the secret ID and your KMS configuration. The service then runs a destroy of the capsule. If that destroy stops partway, no AuditProof exists, and after a stop at step 1 or step 4 the capsule's runtime can still hold keys or data. high
internal_error 500 api_error Unexpected server-side failure Reference the request_id to [email protected]. Retry with backoff if transient. high
region_mismatch 422 region_mismatch_error The Capsulefile declares a required_region different from the region this API server runs in Call a Nanorix endpoint in the declared region, or remove the required_region declaration. medium
execution_mode_mismatch 422 execution_mode_mismatch_error The Capsulefile declares an execution_mode the deployment you called cannot host Set execution_mode to synchronous, or call an endpoint backed by a long-running substrate. medium
idempotency_key_conflict 409 idempotency_error An Idempotency-Key was reused with a different request payload Retry with the same payload (you receive the first request's stored response once it has one; see idempotency_key_in_use while it has not answered), or send a new key for the new payload. low
idempotency_key_in_use 409 idempotency_error Another request with the same Idempotency-Key and the same body started less than 15 minutes ago and has not answered: it may still be running, or it may have stopped without an answer. This request did not run Wait retry_after seconds and retry with the same key and the same body to receive the first request's response once it is recorded. low
db_pool_circuit_open 503 service_unavailable The database circuit breaker is open, so the request was refused before it ran (also returned when single sign-on is temporarily unavailable, and when a database error stopped a create from recording its Idempotency-Key) Wait retry_after seconds and retry with backoff. low
isolation_unavailable 503 service_unavailable This request ran no capsule command: the deployment does not run capsule commands, or the runtime refused this capsule's isolation setup For the operator switch and the startup self-test, retrying does not help until the operator changes the deployment; for a refused capsule, a retry may succeed, with a different capsule configuration or once a momentary resource shortage on the host has cleared. Verification of existing AuditProofs is not affected. high
capsule_capacity_reached 503 service_unavailable The API server is already running the most capsules it admits at once, so no capsule was created; or an upload, or a create's Capsulefile files, fit under the capsule's memory limit but the memory the server's capsules share has no room for them now, so no capsule was created and no file was written Wait retry_after seconds and retry, or destroy capsules you no longer need. low
bundle_memory_busy 503 service_unavailable Other Capsulefile bundle uploads on the API server hold the bundle memory this bundle needs now, or every bundle extraction slot, so the bundle was not stored Wait retry_after seconds and retry the same bundle. low
boundary_issuance_paused 503 service_unavailable BoundaryAttestation issuance is paused in this release; the request made no boundary observation and signed nothing Do not retry: in this release every request for a live, unexpired capsule returns this. AuditProofs are not affected. high
auditproof_signing_unavailable 503 service_unavailable A destroy finished but the AuditProof could not be signed, so none was issued; the capsule is in signing_failed Call POST /v1/capsules/:id/retry-signing (the body's retry_signing_url) before pause_window_expires_at. high
console_origin_not_configured 503 service_unavailable No usable console origin resolves on the server, so it built no link to the console and, on the SSO callback, issued no session The operator sets NANORIX_CONSOLE_BASE_URL (chart value console.baseUrl) to the console's https origin; then sign in again. high
api_base_url_not_configured 503 service_unavailable No usable API origin resolves on the server, so a single sign-on endpoint built no redirect URI, SP metadata or AuthnRequest and, on the OIDC callback, issued no session The operator sets NANORIX_API_BASE_URL (chart value api.baseUrl) to the API's https origin; then sign in again. high
invalid_client_label 400 invalid_request_error A create carried a client_label that is not 1 to 63 characters of lowercase letters, digits, ., _ or - starting with a letter or digit, so no capsule was created Send a label in that form, or send the create without one. low
client_label_unknown 422 invalid_request_error A create carried a client_label that no client signing authority of your organization is bound to on this install, so no capsule was created Send the create without a client_label: in this release no install binds a client label. On an install with its own customer signing authority, a create without a label from an organization other than the one that registered that authority gets client_label_required. low
client_label_required 422 invalid_request_error On an install with its own customer signing authority, a create without a client_label came from an organization other than the one that registered that authority, so no capsule was created Send the create with an API key of the organization that registered the install's signing authority, or ask the install's operator. medium

Severity rubric: high = customer cannot proceed; medium = customer may need to upgrade or reconfigure; low = customer-side fix in seconds.


invalid_api_key

HTTP 401 · authentication_error

Your API key is missing, malformed, or revoked.

Resolution

  1. Confirm the key prefix: nrx_live_ for live use, nrx_test_ for test mode.
  2. If the key looks correct, regenerate in your Console (Settings → API keys).
  3. The Python and TypeScript clients do not read NANORIX_API_KEY for you; pass the key when you construct the client (Client(api_key=...) in Python, new NanorixClient({ apiKey }) in TypeScript), and check that the value you pass is the key you expect. The Go client falls back to NANORIX_API_KEY when WithAPIKey is not given.

resource_not_found

HTTP 404 · not_found

The capsule, Capsulefile, proof, or profile ID you referenced doesn't exist (or you don't have access).

Resolution

  1. Verify the resource ID (cap_, cf_, prf_*, etc.).
  2. For destroyed capsules: use GET /v1/proofs/<capsule_id> to retrieve the AuditRecord. Capsule data itself is unrecoverable.
  3. For shared resources: confirm your API key has access (check tier + org membership).

invalid_parameters

HTTP 400 · invalid_request_error

Request body is malformed, missing a required field, or a field value is out of range.

Resolution

The message field names the specific field that failed validation. Cross-reference the API reference for the endpoint's schema.


capsule_memory_exceeds_server_limit

HTTP 400 · invalid_request_error

The Capsulefile the create names sets capsule_memory_mb above the most memory one capsule can get on the API server that took the request: that server's per-capsule memory limit. The server refuses rather than run the capsule with less memory than its Capsulefile declares, because the AuditProof binds the Capsulefile's declared settings. Capsule create and the sealed LLM-provider proxy can return it when they name such a Capsulefile; a bulk create reports it per entry, inside its 200 envelope. A value above your tier's limit (none on an install with billing off) gets invalid_parameters instead, and the server's capsule count (capsule_capacity_reached) is checked after this.

The refused request created no capsule and ran no command, so it produces no AuditProof and does not count toward your monthly capsule usage.

The limit is in MB as capsule_memory_mb is (1 MB is 1,048,576 bytes), rounded down. A limit under 64 MB, the smallest capsule_memory_mb a Capsulefile can declare, is named as under 64 MB, and then no capsule_memory_mb value fits: leave it unset. It is the server's capsule memory budget, or that budget's share per capsule when the server's operator sets how many capsules it runs at once; see self-hosting. A capsule created without capsule_memory_mb gets the smaller of its tier's limit (none on an install with billing off) and this one, and the create response reports the limit it got as memory_limit_bytes.

Resolution

Lower capsule_memory_mb to at most the limit the message names, or leave it unset to get the most the server allows; when the message says the limit is under 64 MB, leave it unset. Retrying the same request does not help, and the response carries no retry_after. On a BYOC deployment the operator raises the limit by enlarging the server's capsule memory budget or by running fewer capsules at once.


rate_limited

HTTP 429 · rate_limit_error

Per-IP or per-customer request rate exceeded.

Resolution

Wait retry_after seconds (returned in the response body and Retry-After header) and retry. Use exponential backoff for repeated 429s. The Python and TypeScript SDKs retry 429 automatically, honouring Retry-After, up to 3 retries, on a GET, a HEAD, a capsule or Capsulefile create carrying an Idempotency-Key, and any request to /v1/capsules, /v1/capsulefiles or a path under them; any other request raises at once; the Go SDK does not retry, so honour retry_after yourself.


quota_exceeded

HTTP 402 · quota_error

You hit your tier's monthly cap for AuditProofs, Capsulefile count, or concurrent capsules.

These caps apply only where billing tiers apply: on the hosted Evaluation Sandbox, and on an install with billing on. An install with billing off never returns this code.

On the Free tier the AuditProof cap is checked when a capsule is created (POST /v1/capsules). It counts the AuditProofs your organization has produced this billing cycle plus the capsules it has not destroyed yet that were created with live (non-test) keys. A destroy (DELETE /v1/capsules/:id) is never refused for this cap, so this cap never stops you destroying a capsule you hold.

Resolution

  1. Upgrade tier in your Console (Billing).
  2. Or wait for monthly reset (cycle starts on tier-upgrade anniversary).

resource_conflict

HTTP 409 · conflict_error

Resource state conflict — duplicate name, capsule already destroyed, profile referenced by active capsules, etc.

Resolution

The message field names the specific conflict. Common cases:

  • Duplicate Capsulefile name: rename or delete the existing one.
  • Capsule already destroyed: use GET /v1/proofs/<id> for the proof.
  • Egress profile in use: wait for active capsules to destroy or move them to a different profile.
  • Checkout already being created (POST /v1/billing/checkout): an identical checkout request is still being created; retry in a few seconds.
  • Retry-signing refused with "Retry again later": signing could not take its buffer; the capsule stays in signing_failed and a new pause window starts. Call retry-signing again later.

payload_too_large

HTTP 413 · invalid_request_error

Request body or file upload exceeds the upload limit: your tier's where billing tiers apply; on an install with billing off, this server's, except that a single uploaded file keeps its tier's size limit.

The same code answers an upload, or a capsule create's Capsulefile files, when a file would not fit under the capsule's memory limit: uploaded and Capsulefile files count against that limit, and the message says how many bytes a file may hold: for an upload, the capsule's memory limit leaves N bytes for this file; for a create's Capsulefile file once the capsule exists, the capsule's memory limit left N bytes for a Capsulefile file after capsule <id> was created, followed by when that capsule ends. Nothing of the file is written. A file already in the capsule under the same name counts as free room, since the upload replaces it, except an upload named data, the name a command's input_data is written under.

A capsule create checks its Capsulefile's files before it creates anything. Authentication, the operator's execution switch (isolation_unavailable), MFA, the egress profile and the Capsulefile's own checks (its 404, 409 and 422) answer first; these answers arrive ahead of your account's quota (quota_exceeded), the capsule count's capsule_capacity_reached and the 400 checks of the memory a capsule asks for. A Capsulefile with no files is not checked. Each file is counted in whole memory pages of the server's page size (4 KiB on most servers, never less), and 2 MiB is kept for the process that writes them and the room each write leaves free. When that total does not fit under the memory limit the capsule would get, the create is refused with this code, the message names that limit, and no capsule is created and no usage is counted. When the files alone take more than 4294967296 bytes (4 GiB), the size of a capsule's file system, the create is refused with this code too, whatever the memory limit; the message names that size, and no capsule is created. When the files fit both but not the room the memory the server's capsules share has now, the create is refused with capsule_capacity_reached instead, also before anything is created.

A create admitted by those checks can still be refused with this code after the capsule was created and counted: when a file stops fitting under the capsule's own limit, or when the memory the server's capsules share no longer has room for the Capsulefile's files because other capsules used more of it since the check. In the second case the message carries no byte count. Either way the message names the capsule's id and says that capsule stays until you destroy it or it reaches max_lifetime_seconds.

When an upload fits under its capsule's limit but the memory the server's capsules share has no room for it now, the answer is capsule_capacity_reached instead, with no byte count.

Resolution

Split or compress the upload. Bundle uploads via nanorix build (gzipped tarball) compress aggressively for typical Capsulefiles. For the capsule's memory limit, write a smaller file or use a capsule with a higher limit.


capsule_expired

HTTP 410 · capsule_error

One of two cases:

  • The capsule's lifetime (max_lifetime_seconds) has ended and the capsule is not destroyed yet. An exec, a status read (GET /v1/capsules/<id>) or a BoundaryAttestation request answers 410.
  • The capsule is no longer active or executing, for example after a destroy. An upload, an output list or download, or a receipt or parent link answers 410. An exec on a destroyed capsule answers 409 resource_conflict instead.

Resolution

Capsule data is unrecoverable by design. In the first case no AuditProof exists yet: destroy the capsule (DELETE /v1/capsules/<id>), which returns it, or the lifetime reaper destroys the capsule later. Once the proof is stored, GET /v1/proofs/<capsule_id> returns the AuditRecord, with the activity trail and the cryptographic destruction evidence; until then it answers 404.


mfa_required

HTTP 403 · mfa_required

The endpoint requires recent MFA verification.

Resolution

Re-authenticate through your MFA flow. Sessions remain MFA-elevated for a short window.


mfa_enrollment_required

HTTP 403 · mfa_enrollment_required

Paid-tier accounts must have MFA enrolled.

Resolution

Enroll in your Console (Settings → Security). MFA enrollment is one-time; subsequent sessions just need verification.


tier_required

HTTP 403 · forbidden

The endpoint requires a higher tier. Where billing tiers apply, Free accounts are refused egress profiles and rules, and naming a profile on a capsule create is for Team and Enterprise accounts (a Developer account that names one gets 400). On your own install with billing off (no Stripe credentials) egress profiles are not tier-gated; this code can still come from a role gate or, where billing tiers apply, from the team-invitation limits.

Resolution

Upgrade in your Console (Billing) or use a tier-eligible alternative endpoint.


session_required

HTTP 403 · forbidden

The invitation's email address belongs to an existing account with no password, and the request to POST /v1/team/accept carried no bearer token. Nothing changed: the account has not joined the organization and the invitation is still pending. A request that carries a bearer token which is not a full session for that account is refused with 401 invalid_api_key instead.

Resolution

Call POST /v1/team/accept again with a full Console session for that account (signed in, second factor completed where one is enrolled) as the bearer token. If the account cannot sign in to the Console, ask the admin of the inviting organization to invite another email address.


signup_disabled

HTTP 403 · forbidden

POST /v1/signup or POST /v1/auth/signup was called on an install whose self-service signup is off. On your own install signup is off unless the operator turns it on (NANORIX_SIGNUP=open, or signup.mode: open in the Helm chart). Nothing was created.

Resolution

Ask the install's operator for an account. The operator creates an organization and its first API key with /app/nanorix-api create-organization inside the API pod; see Self-hosting, "Create the first organization".


input_provenance_rejected

HTTP 422 · input_provenance_error

The customer-declared input manifest hash doesn't match the bytes the runtime observed (or the manifest signature failed to verify).

Resolution

  1. Recompute the input manifest hash on the source bytes.
  2. Verify your signing key matches what the capsulefile declares.
  3. The service has already run a destroy of the capsule. When that destroy completed, its AuditProof, which GET /v1/capsules/{id}/cdp returns, includes the rejection event unless the service failed to record it. If that destroy stopped partway, its stored AuditProof names the step at which it stopped and includes the event the same way; if that record was not signed and stored, for example because the retry window ended first, no AuditProof exists. After a stop at step 1 or step 4 the capsule's runtime can still hold keys or data.

The message names the reason and the runtime-observed hash for cross-comparison, in the form (reason=<reason>, input_hash=<hash>). The reasons are signature_invalid, input_hash_mismatch, manifest_malformed and signer_key_invalid (nonce_replay_detected is reserved). They are not separate fields of the error body.

except InputProvenanceRejectedError as e:
    print(f"manifest rejected: {e}")

secrets_injection_rejected

HTTP 422 · secrets_injection_error

A customer-declared env_var secret could not be resolved.

Resolution

The message names the env var and the reason, in the form Secrets injection failed for env_var '<name>' (reason=<reason>). The only reason the create path returns today is decryption_failed (the Capsulefile's stored env_vars could not be decrypted), and the name it reports is the aggregate <env_vars_blob>, not an individual variable. The code also defines secret_not_found for a named secret that does not exist, but nothing calls that lookup yet, so you will not see it. The reason is not a separate field of the error body.

except SecretsInjectionRejectedError as e:
    print(f"secret rejected: {e}")

The service has already run a destroy of the capsule; when that destroy completed, its AuditProof includes the rejection event unless the service failed to record it. If that destroy stopped partway, its stored AuditProof names the step at which it stopped and includes the event the same way; if that record was not signed and stored, for example because the retry window ended first, no AuditProof exists. After a stop at step 1 or step 4 the capsule's runtime can still hold keys or data.


internal_error

HTTP 500 · api_error

Unexpected server-side failure. Nanorix's monitoring will alert engineering.

Resolution

  1. Note the request_id from the error body or X-Nanorix-Request-Id header.
  2. Email [email protected] with the request_id for fast triage.
  3. Retry with exponential backoff if the failure is transient (network, DB hiccup, etc.). The Python and TypeScript SDKs retry a GET, a HEAD, and a capsule or Capsulefile create carrying a well-formed Idempotency-Key (see Idempotency) on 429, 500, 502, 503 and 504 by default (3 retries, so 4 attempts in all); any other request (exec, upload, record commit, destroy and the rest) is sent again only when its connection failed before the request was sent, or after a 429 on /v1/capsules, /v1/capsulefiles or a path under them, and otherwise raises at once; the Go SDK does not retry.

region_mismatch

HTTP 422 · region_mismatch_error

The Capsulefile declares a required_region, and the API server you called runs in a different region. The check runs at capsule create, before any runtime work, so nothing was created.

Resolution

Create the capsule against a Nanorix endpoint in the declared region, or remove the required_region declaration from the Capsulefile. The message names the declared region and the region the server runs in.


execution_mode_mismatch

HTTP 422 · execution_mode_mismatch_error

The Capsulefile declares an execution_mode that the deployment you called does not host. Nothing was created.

Resolution

Set execution_mode to synchronous on the Capsulefile, or call an API endpoint backed by a long-running substrate. The message names the declared mode and the mode the deployment hosts.


idempotency_key_conflict

HTTP 409 · idempotency_error

The Idempotency-Key header was already used for a request with a different payload.

Resolution

Retry with the same payload, or generate a new Idempotency-Key for the new payload. A same-payload retry receives the first request's stored response once it has one; while the first has not answered, the retry gets idempotency_key_in_use, and if the first answered an error, the retry runs. See Idempotency.


idempotency_key_in_use

HTTP 409 · idempotency_error

Another request with the same Idempotency-Key and the same body started less than 15 minutes ago and has not answered: it may still be running, or it may have stopped without an answer. This request did not run. The response carries retry_after (5) and a Retry-After header.

Resolution

Wait retry_after seconds and send the request again with the same key and the same body, byte for byte. Once the first request has answered with a successful JSON response, the retry receives that response with Idempotent-Replayed: true; if the first answered an error, the retry runs. A first request whose client disconnects keeps running on the server until it answers or the server stops; its successful response is recorded when it answers. A first request still running, or stopped without an answer, 15 minutes after it started no longer holds the key, and the next retry runs. The Python and TypeScript SDKs do not retry a 409 and raise ConflictError; the Go SDK returns ErrConflict. See Idempotency.


db_pool_circuit_open

HTTP 503 · service_unavailable

The database circuit breaker is open: the service refused the request before it ran because its database was recently failing. The same code is returned when single sign-on is temporarily unavailable (the identity provider is unreachable, or SAML sign-in is not yet available), and when a database error at the moment a create tried to record its Idempotency-Key stopped the create before it ran. Nothing was created or changed by the refused request; for the Idempotency-Key cause, the key can stay held for up to 15 minutes if the service could not clear it, and a retry in that time gets idempotency_key_in_use.

Resolution

Wait retry_after seconds (body field and Retry-After header) and retry with exponential backoff. The Python and TypeScript SDKs retry a 503 on a GET, a HEAD, and a capsule or Capsulefile create carrying a well-formed Idempotency-Key (see Idempotency) by default (3 retries; only Retry-After on a 429 is honoured, so a 503 uses the SDK's own backoff), and any other request raises at once; the Go SDK does not retry. This is different from isolation_unavailable, which also returns 503 but carries no retry_after; its section says when a retry can help.


isolation_unavailable

HTTP 503 · service_unavailable

This request ran no capsule command. Either the deployment does not run capsule commands, or, on a deployment whose startup isolation self-test held, the runtime refused this capsule's isolation setup. Capsule create, exec and one-shot destroy can return it (this covers the sealed LLM-provider proxy, which creates and destroys capsules but runs no command in them, so it can return only causes 1 and 2 below); a bulk create reports it per entry, inside its 200 envelope, because each entry goes through capsule create. Authentication, the tier check and request-body parsing still run first (the one-shot destroy also checks its command and input_data, bulk create its array size, and the sealed proxy its body size and upstream key header first), so those errors can arrive instead of this one. Verification of existing AuditProofs, proof retrieval and account endpoints are not affected.

Three causes return this response, and the body names none of them:

  1. The operator turned execution off with NANORIX_CAPSULE_RUNTIME. The variable is read once, at startup. Unset, empty or enabled (in any letter case, with surrounding whitespace ignored) leaves execution on; disabled and every other value, a whitespace-only one included, turn it off.
  2. The startup isolation self-test refused on a host that declares itself development. Every other host is production, and a production host whose self-test refuses does not start at all.
  3. The deployment's startup isolation self-test held (capsule_runtime is verified), but the runtime refused one capsule's isolation setup when the command was about to run (an egress capsule, for example).

Causes 1 and 2 refuse the request before it creates a capsule, so the request creates no capsule, runs no command and produces no AuditProof. Cause 3 happens after the capsule exists. An exec leaves the capsule in place and a later destroy produces its AuditProof; a one-shot destroy then attempts to destroy the capsule, and when that succeeds the capsule produces an AuditProof. The capsule counts toward usage either way, even though the response is a 503. A client that retries every 503 can therefore create and meter one capsule per attempt on the cause 3 one-shot path.

Production and development hosts

A host is production by default. It is a development host only when NANORIX_ENV is exactly development and none of K_SERVICE, CLOUD_RUN_SERVICE or KUBERNETES_SERVICE_HOST is set in the API process's environment. Cloud Run sets K_SERVICE, and Kubernetes sets KUBERNETES_SERVICE_HOST in every pod, so NANORIX_ENV=development has no effect on either. Any other value of NANORIX_ENV, or no value, leaves the host production.

Development fallbacks apply only on a development host: a capsule workspace that falls back to a disk directory when tmpfs cannot be mounted, and NANORIX_SKIP_CGROUP. A production host refuses both and reports the failed isolation step instead. A development host also skips the startup refusal that a production host applies when /proc/swaps lists an active swap device.

When the workspace falls back to a disk directory, the files that go into and come out of the capsule, including uploaded files, input_data, Capsulefile files and output files, are written to an ordinary directory on the host's filesystem, and on a disk-backed filesystem their contents can remain on the disk after the capsule is destroyed. When cgroup setup fails and NANORIX_SKIP_CGROUP is set, the capsule runs without its memory limit and without the no-swap rule that cgroup setup applies. Neither the AuditProof nor capsule_runtime shows this: a capsule whose workspace fell back to a disk directory can still have its namespace and tmpfs steps recorded as verified, and capsule_runtime can still read verified. An AuditProof from a development host therefore does not show whether the capsule's workspace was held in memory. Do not declare a development host on an install that handles customer data.

Resolution

This response never carries retry_after. For causes 1 and 2, retrying does not help until the operator changes the deployment. For cause 3 the refusal concerns that one capsule's isolation setup: a refusal caused by a momentary resource shortage on the host can clear on a later retry, and one caused by the capsule's configuration will not until that configuration changes. The Python and TypeScript SDKs retry a 503 only on a GET, a HEAD, and a capsule or Capsulefile create carrying a well-formed Idempotency-Key (see Idempotency): an exec that receives this error raises at once, and such a create raises it once the retry budget is spent; the Go SDK returns it at once. On the hosted Evaluation Sandbox, write to [email protected] to reach a person.

On a BYOC deployment (see self-hosting), the operator controls this with the NANORIX_CAPSULE_RUNTIME environment variable on the API:

  • unset, empty or enabled leaves execution on, and the API runs an isolation self-test at startup;
  • any other value, disabled included, turns execution off and skips the self-test, so a mistyped value turns execution off instead of leaving it on; the API logs a warning that names the variable and starts without capsule execution, unless another startup check refuses it. Turning execution off does not skip the swap check: a production host where /proc/swaps lists an active swap device refuses to start whatever this variable says.

GET /v1/health/ready reports the result as capsule_runtime: verified (the self-test held), disabled (the operator turned execution off) or unavailable (the self-test refused on a host that declares itself development, as defined above). It reports the startup posture only; cause 3 does not change it.

The value is read once, when the API process starts, so a change takes effect on restart or on a new revision. The API logs the posture it serves with at startup.


capsule_capacity_reached

HTTP 503 · service_unavailable

The API server that took the request is already running the most capsules it admits at once, so no capsule was created. The number is the server's own, set by its operator with NANORIX_MAX_CAPSULES (chart value capsuleRuntime.maxCapsules; the chart's production profile sets 1); a server without it set never returns this code for the capsule count (the shared-memory case below can still come). Capsule create, one-shot destroy and the sealed LLM-provider proxy can return it, because each of them creates a capsule; a bulk create reports it per entry, inside its 200 envelope. Authentication, the tier check, request-body and Capsulefile checks, your account's concurrent-capsule and proof limits (quota_exceeded) and the operator's execution switch (isolation_unavailable) answer first, so those errors can arrive instead of this one.

The refused request wrote no capsule record and ran no command, so it produces no AuditProof and does not count toward your monthly capsule usage or your concurrent-capsule limit.

The same code also answers when the memory the capsules on the server share has no room now: for an upload that fits under its capsule's own memory limit, and for a capsule create whose Capsulefile's files fit under the limit the capsule would get. The message says no capsule was created and no file was written, and it carries no byte count, since that room depends on other capsules. On an upload nothing else changes. On a create it is answered before anything exists: no capsule is created and no usage is counted, so the create can be sent again. Unlike the capsule count, this create check comes after authentication, the execution switch, MFA, the egress profile and the Capsulefile's own checks (its 404, 409 and 422), and before your account's quota, the capsule count and the 400 checks of the memory a capsule asks for, so it can arrive instead of a quota_exceeded. A retry can succeed once other capsules on the server use less memory or end. (If that room runs out only after the capsule was created, the create answers payload_too_large instead, since that capsule stays.)

Resolution

Wait retry_after seconds (body field and Retry-After header) and retry with backoff. A slot frees when a capsule on the server is destroyed, or when the server reclaims a capsule that has outlived its max_lifetime_seconds; it checks for those every 30 seconds, which is the retry_after value. Destroying capsules you no longer need frees slots sooner. The Python and TypeScript SDKs retry a 503 by default with their own backoff on a GET, a HEAD, and a capsule create carrying a well-formed Idempotency-Key (they add one when you pass none; see Idempotency), and raise it at once on any other request; the Go SDK does not retry.

The number is read once, when the API process starts, and the API logs it at startup as max_live.


bundle_memory_busy

HTTP 503 · service_unavailable

Returned only by POST /v1/capsulefiles/{id}/bundle. The API server holds each bundle's compressed body, and the entry it is storing, in memory, inside one memory budget it shares among all bundle uploads it runs, and it extracts at most 32 bundles at once. Other bundle uploads hold the room this bundle's body or its next entry needs, or all 32 extraction slots, right now. The bundle was not stored: no file row was written, and any objects the upload had already stored are deleted before this answer.

A bundle whose body is larger than the whole budget is answered with payload_too_large (413). So is an entry that cannot fit beside its own bundle's body even in an empty budget; that 413's message names the largest entry allowed. While other uploads hold room, such a bundle can get this 503 first, and gets its 413 once the budget is free.

Resolution

Wait retry_after seconds (body field and Retry-After header; 5) and send the same bundle again. Room frees as the other uploads end. Sending fewer bundles at once to the same server, or smaller bundles, makes this rarer. The budget is set by the server's operator (NANORIX_BUNDLE_MEMORY_BYTES; by default a quarter of the API container's memory limit).


boundary_issuance_paused

HTTP 503 · service_unavailable

POST /v1/capsules/:id/boundary-attestations returns this for a live, unexpired capsule when the caller has the developer or admin role. BoundaryAttestation issuance is paused in this release: the request made no boundary observation, signed no document, stored no verification key and wrote no BoundaryAttestation record. Authentication and the role check answer first, so a viewer gets tier_required; then a capsule that belongs to another organization returns resource_not_found, a capsule that is not live returns resource_conflict, and an expired one returns capsule_expired.

Resolution

Retrying does not help. The response carries no retry_after, and in this release every such request returns it. A client that retries every 503 spends its retries for nothing here; no documented SDK method calls this endpoint. Capsules, their AuditProofs and AuditProof verification are not affected.


auditproof_signing_unavailable

HTTP 503 · service_unavailable

DELETE /v1/capsules/:id and POST /v1/destroy return this when the destroy finished, so the capsule's runtime state is destroyed, but the AuditProof could not be completed (the signing key service was unreachable or refused, or, on an install with a customer signing authority, returned a signature that does not verify under that authority's registered key, for example), and when a destroy that stopped partway could not sign or store its record (see destruction_failure_step below). The customer_authority.signing_failed webhook's error_summary names the cause (delivered only to endpoints subscribed with ["*"]). The two provider proxy routes return it too, after the provider call already ran. POST /v1/capsules/:id/retry-signing returns it when a retry fails to sign. No AuditProof was issued, and POST /v1/destroy returns no command output. The capsule is now in signing_failed. Besides the usual fields, error carries:

Field Meaning
capsule_id The capsule that needs a retry.
status Always signing_failed.
signing_request_id The id of the signing request that failed.
retry_signing_url Path of the retry-signing route for this capsule.
pause_window_expires_at When the pause window ends: the time the capsule was last marked signing_failed plus the window. The window is set per signing authority and defaults to 3600 seconds.
destruction_failure_step Present only when the destruction stopped at this step and did not complete.

When destruction_failure_step is present, the destruction did not finish and the capsule's runtime state is not all destroyed: the AuditProof that could not be signed, or stored, or built because the capsule's activity trail could not be read, is the one of incomplete_destruction that names that step. That step was recorded on the capsule before signing was attempted, and the record's data stays stored for the retry, so retry-signing signs and stores that same record, with the key version, authority and signing mode of the signer at hand.

This response has no Retry-After header and no retry_after field. The Python and TypeScript SDKs do not retry it and raise AuditProofSigningUnavailableError after one call; the Go SDK returns an APIError with the same three fields.

Resolution

Call POST /v1/capsules/:id/retry-signing before pause_window_expires_at. The service never retries by itself. A failed retry returns this error again and starts a new pause window, so pause_window_expires_at moves later. After the deadline the pause window sweep (every 30 seconds) moves the capsule to destroyed_no_proof, and no AuditProof can be produced for it. A retry can succeed only if the unsigned document was stored before signing failed; if it was not (signing was refused before it started, or storing it failed), retry-signing returns an error and no AuditProof exists for the capsule. Do not repeat the destroy: a capsule in signing_failed refuses it with resource_conflict. If the capsule was no longer in signing_failed when the failure was reported (a retry or the pause window sweep reached it first), or no retry payload was stored, or the lookup failed, the response is internal_error instead.


console_origin_not_configured

HTTP 503 · service_unavailable

No usable console origin resolves on the server, so it built no link to the console. GET /v1/sso/oidc/callback returns it after it has consumed and checked the sign-in state, and before it redeems the IdP's code or issues a session, so the callback URL cannot complete a sign-in later. The server reads NANORIX_CONSOLE_BASE_URL when it is set and not blank, and otherwise WEBAUTHN_RP_ORIGIN. The value it reads must be an https origin: a scheme, a host and an optional port, with http://localhost and http://127.0.0.1 also accepted. A value that is not gives no console address. A non-blank NANORIX_CONSOLE_BASE_URL that is not an https origin is not skipped in favour of WEBAUTHN_RP_ORIGIN.

Resolution

The operator sets NANORIX_CONSOLE_BASE_URL (chart value console.baseUrl) to the console's https origin. Retrying does not help until then; after it is set, start the sign-in again.


api_base_url_not_configured

HTTP 503 · service_unavailable

No usable API origin resolves on the server, so it built no single sign-on URL. The OIDC redirect URI, the SAML SP metadata (entity ID, ACS and SLO URLs) and the SAML AuthnRequest are all built on this origin, and the server has no built-in host to use in its place. GET /v1/sso/saml/metadata, GET /v1/sso/saml/login and GET /v1/sso/oidc/login return it before they build or store anything. GET /v1/sso/oidc/callback returns it after it has consumed and checked the sign-in state, and before it redeems the IdP's code or issues a session; when the console origin is missing as well, the callback returns console_origin_not_configured instead. The server reads NANORIX_API_BASE_URL only. Its value must be an https origin: a scheme, a host and an optional port, with http://localhost and http://127.0.0.1 also accepted, and no userinfo, path, query or fragment; a host with * is refused. A value that is not gives no API origin.

Resolution

The operator sets NANORIX_API_BASE_URL (chart value api.baseUrl, or https://<ingress.host> from an enabled ingress whose host does not start with *, whose path is / or empty and whose pathType is not Exact) to the API's https origin. Retrying does not help until then; after it is set, start the sign-in again.


invalid_client_label

HTTP 400 · invalid_request_error

A create carried a client_label that breaks the label form: 1 to 63 characters, each a lowercase letter a to z, a digit, ., _ or -, the first a letter or digit. The label is matched exactly, never trimmed or case-folded, so an empty label is refused too. A create takes the label in the request body of POST /v1/capsules, of each entry of POST /v1/capsules/batch and of POST /v1/destroy, and in the x-nanorix-client-label header on the provider proxy routes. Nothing was created: no capsule, and nothing counted against your usage. The message does not repeat the label.

Resolution

Send a label in that form, or send the create without one.


client_label_unknown

HTTP 422 · invalid_request_error

A create carried a well-formed client_label, and no client signing authority of your organization is bound to that label on this install. In this release no install binds a client label, so every well-formed label gets this answer. A label bound to a signing authority that another organization registered gets the same answer, word for word. Nothing was created.

Resolution

Send the create without a client_label: in this release no install binds a client label. On an install with its own customer signing authority, a create without a label from an organization other than the one that registered that authority gets client_label_required instead.


client_label_required

HTTP 422 · invalid_request_error

A create without a client_label reached an install that signs AuditProofs under its own customer signing authority, and the caller's organization is not the one that registered that authority. Such an install signs unlabelled creates only for the organization that registered its signing authority. Nothing was created.

Resolution

Send the create with an API key of the organization that registered the install's signing authority, or ask the install's operator which organization that is. Retrying with the same key does not help.