Expand description
The process exit codes of stratum, stable across releases.
| Code | Meaning |
|---|---|
| 0 | Success; for status, the node is ready |
| 1 | Local failure: a key, token or resume file, the clock, or writing output |
| 2 | The node could not be reached |
| 3 | status: the node is unconfigured |
| 4 | status: the node is degraded |
| 5 | The node sent a response that does not follow the API contract |
| 6 | Changes were previewed but not applied: no confirmation |
| 7 | A local check refused the node’s answer (claim body, manifest signature, admission notice, probe), or a profile card that does not name its owner |
| 8 | A bounded wait ran out: join (the pod was not provisioned within --wait-secs) or member suspend --wait (the suspension was not yet enforced) |
| 9 | export: the archive was written, but an entry changed, vanished or was skipped during the walk |
| 10 | Server error bad_request |
| 11 | Server error unauthorized |
| 12 | Server error forbidden |
| 13 | Server error not_found |
| 14 | Server error conflict |
| 15 | Server error payload_too_large |
| 16 | Server error unsupported_media_type |
| 17 | Server error invalid, or a preview that reports validation errors |
| 18 | Server error too_many_challenges |
| 19 | Server error backup_refused |
| 20 | Server error internal |
| 21 | A server error code this client does not know |
| 22 | Server error request_timeout |
| 23 | Server error capacity_exhausted |
| 24 | Server error invitation_refused |
| 25 | Server error invitations_disabled |
| 26 | Server error gate_unavailable |
| 27 | Server error too_many_requests |
| 28 | Server error misdirected_request |
| 29 | Server error method_not_allowed |
| 30 | Server error insufficient_storage |
| 31 | precondition_failed: a conditional pod write found another version |
| 32 | Server error bad_gateway (the gate got no valid answer upstream) |
| 33 | Server error gateway_timeout (the gate’s upstream did not answer in time) |
| 34 | Server error suspended (the administrator suspended the membership the request depends on) |
| 35 | Server error archive_required (member remove needs an archive from the current suspension) |
| 36 | Server error pod_data_present (the key’s earlier pod data has not been purged) |
| 38 | Server error pod_unavailable (the pod server cannot be reached, or the node has no pods) |
| 64 | Invalid command line |
Code 37 is unassigned. An earlier pre-release gave it to lease_expired,
which is only the gate’s log name for the decision; the gate answers an
expired lease with gate_unavailable (26).
Constants§
- ARCHIVE_
REQUIRED - Server error
archive_required(HTTP 409):member removeneeds an archive taken during the member’s current suspension. Runmember archivefirst, or waive it with--no-archive. - BACKUP_
REFUSED - Server error
backup_refused(HTTP 409): no backup recipient configured. - BAD_
GATEWAY - Server error
bad_gateway(HTTP 502): the gate got no valid answer from the pod server or the controller. - BAD_
REQUEST - Server error
bad_request(HTTP 400). - CAPACITY_
EXHAUSTED - Server error
capacity_exhausted(HTTP 409): every tenant slot is taken; the invitation is stillissued. - CONFLICT
- Server error
conflict(HTTP 409): stale revision, already bound or operation conflict. - DEGRADED
status: the node isdegraded.- EXPORT_
INCOMPLETE export: the archive and manifest were written, but at least one entry changed, vanished or was skipped during the walk; the manifest lists them.- FAILURE
- A local failure: a key, token or resume file, the clock, or output.
- FORBIDDEN
- Server error
forbidden(HTTP 403). - GATEWAY_
TIMEOUT - Server error
gateway_timeout(HTTP 504): the pod server or the controller did not answer the gate in time. A write may or may not have happened; read before writing again. - GATE_
UNAVAILABLE - Server error
gate_unavailable(HTTP 503). From the node’s API: the gate could not be paused and drained for a backup. From the gate: pod writes are paused for a backup or archive, or the gate has not heard from the node’s controller in time (its directory lease ran out). The gate forwarded nothing, so the request can be retried shortly. - INSUFFICIENT_
STORAGE - Server error
insufficient_storage(HTTP 507): the pod volume is low and writes are stopped. - INTERNAL
- Server error
internal(HTTP 500). - INVALID
- Server error
invalid(HTTP 422), or a preview with validation errors. - INVITATIONS_
DISABLED - Server error
invitations_disabled(HTTP 403):membership.invitations_enabledis off. - INVITATION_
REFUSED - Server error
invitation_refused(HTTP 403): the invitation is unknown, expired, revoked, used or for another identity. - METHOD_
NOT_ ALLOWED - Server error
method_not_allowed(HTTP 405), including aDELETEof the root ACL. - MISDIRECTED_
REQUEST - Server error
misdirected_request(HTTP 421):Hostis not the node’s canonical authority, so--originis wrong. - NOT_
CONFIRMED - Changes were previewed but not applied because nothing confirmed them.
- NOT_
FOUND - Server error
not_found(HTTP 404). - OK
- Success. For
status, the node isready. - PAYLOAD_
TOO_ LARGE - Server error
payload_too_large(HTTP 413). - POD_
DATA_ PRESENT - Server error
pod_data_present(HTTP 409): an invitation or redemption for a removed or cancelled key whose earlier pod data has not been purged yet. - POD_
UNAVAILABLE - Server error
pod_unavailable(HTTP 503): the pod server could not be reached or broke off (from the gate), or the node runs without pods or has no canonical origin yet (from the controller). - PRECONDITION_
FAILED precondition_failed(HTTP 412):--if-matchnamed another version, or--create-onlyfound the resource already there.- PROTOCOL
- The node’s response does not follow the API contract.
- REFUSED
- A local check refused the node’s answer.
- REQUEST_
TIMEOUT - Server error
request_timeout(HTTP 408): the node gave up waiting for the request to arrive. - SUSPENDED
- Server error
suspended(HTTP 403): the administrator has suspended the membership the request depends on, the caller’s own or the pod owner’s. Signed requests by or to a suspended member are refused until the administrator resumes it; an existing public profile stays readable. - TIMED_
OUT - A bounded wait ran out. For
join, the pod was not provisioned within the wait; rerunjointo continue. Formember suspend --wait, the suspension is stillenforcing;member showreports when it isenforced. - TOO_
MANY_ CHALLENGES - Server error
too_many_challenges(HTTP 429). - TOO_
MANY_ REQUESTS - Server error
too_many_requests(HTTP 429): over the admission rate limit. - UNAUTHORIZED
- Server error
unauthorized(HTTP 401). - UNCONFIGURED
status: the node isunconfigured.- UNKNOWN_
SERVER_ ERROR - A server error code this client does not know.
- UNREACHABLE
- The node could not be reached.
- UNSUPPORTED_
MEDIA_ TYPE - Server error
unsupported_media_type(HTTP 415). - USAGE
- The command line could not be parsed.
Functions§
- for_
server_ code - Returns the exit code for a server error code from the API contract.