Errors and retries#

This page lists the status codes the service returns, the retry hints some refusals carry, when an upload’s outcome is unknown, and what calls answer while the service’s storage is rebalanced. Stream endings are in How streams end, and re-send rules in Writing layers.

Status codes#

Status

Meaning

Applied?

What to do

INVALID_ARGUMENT

The request is malformed or over a limit (Input validation)

No

Do not retry it unchanged; DELTA_TOO_LARGE or CHILDREN_LIST_TOO_LONG means the delta is too large (Deltas that are too large)

UNAUTHENTICATED

The bearer token is missing, malformed or rejected

No

Obtain a valid token

PERMISSION_DENIED

The caller lacks read access to the session’s base layer path in Storage (Authentication)

No

Do not retry

NOT_FOUND

The session or layer does not exist, was deleted, or could not be recovered from backup; or Storage does not find the base layer path

No

Do not retry; list or resync

ALREADY_EXISTS

The session name is taken on that base path, or an operation_id was already committed with a different request

No, except for one id sent for two layers at once: never send one id for two layers; doing so can apply the write up to a day later (rule 1 of Safe re-sends)

Choose another name, or mint a new id for a new intent; for a replacing CreateLayer, read the layer before assuming nothing applied

FAILED_PRECONDITION

The object_id is not the layer’s current object: the layer was replaced

No

Resync to the current object

ABORTED

Only a chained UpdateLayer whose predecessor has not committed (Chained writes)

No

Recover the chain

CANCELLED

An upload’s stream ended before you finished sending, or one of its chunks was over 4 MB or undecodable

No; unknown if you had finished sending

Re-send, re-chunking first if a chunk was over 4 MB, since the same chunks fail again

DEADLINE_EXCEEDED

The call ran past its deadline

Unknown for an upload; no if it was still sending

Re-send an upload with the same operation_id. A large upload or a structural edit to a very large layer fails again: change the request (Sending an upload)

UNAVAILABLE

A transient condition: shutdown, capacity, an unavailable dependency, or disaster recovery

No with a retry hint; otherwise possibly

Retry with your own backoff, waiting at least any retry_delay; for uploads, see unknown outcomes

RESOURCE_EXHAUSTED

Never returned by the service itself: an HTTP/2 layer closed the connection

Unknown for uploads in flight

See Transport errors

OUT_OF_RANGE

A single gRPC message exceeded 4 MB

No

Send content in smaller chunks

INTERNAL

A server fault; the service’s own INTERNAL carries only the message internal error

Not guaranteed

Do not retry the request unchanged; report it to the operator. A CreateLayer that replaces a layer may still take effect later: read the layer before acting on the assumption that it did not. One case has its own action: every update to one layer failing while other layers accept updates means that layer is used up: replace it (Delta content)

Some answers need care:

  • CreateSession after UNAVAILABLE. A retry can answer ALREADY_EXISTS because the failed attempt still holds the name. Call ListSessions for the base path: it returns the session if the attempt completed, and otherwise frees the name for the next create. While the service’s storage refuses writes, ListSessions cannot free the name; keep retrying with your own backoff, and call ListSessions again once CreateSession stops answering UNAVAILABLE.

  • DeleteLayer after UNAVAILABLE or DEADLINE_EXCEEDED. The failed attempt may already have deleted the layer, so a retry answering NOT_FOUND means it is gone. The layer’s subscriptions then end NOT_FOUND once the service finishes the delete, usually within minutes. A retry is a new delete: if another client created a layer of that name in the meantime, the retry deletes that layer. On a busy server, a delete can reach its deadline having changed nothing; retry it.

  • DeleteSession after UNAVAILABLE or DEADLINE_EXCEEDED. The failed attempt may already have deleted some of the session’s layers. Re-send it: the retry resumes the deletion where it stopped, and NOT_FOUND on the re-send means the session is gone.

  • FAILED_PRECONDITION while the layer still has its old object. A CreateLayer that replaces a layer and answers a plain UNAVAILABLE, DEADLINE_EXCEEDED or CANCELLED can leave the layer refusing edits, with no ErrorInfo, until its replacement settles. It settles with no further call, normally within a minute and otherwise within minutes. Re-send that CreateLayer with the same operation_id to learn the outcome, then edit the object it returns (Creating and replacing layers). A replacing CreateLayer answered INTERNAL can leave the layer refusing edits the same way, and it may settle only once the service’s operator fixes the fault: report the error to the operator rather than resyncing and retrying in a loop.

  • gRPC retry policies re-issue UNAVAILABLE automatically; if you enable one for uploads, set operation_id so its re-sends cannot apply twice.

Retry hints#

When the service refuses a call or ends a stream for a reason worth retrying, and the call provably applied nothing, its UNAVAILABLE carries a hint. The hint is a google.rpc.Status in the grpc-status-details-bin trailer. It holds a google.rpc.ErrorInfo, with domain nvidia.omniverse.live.v1alpha, a reason and metadata, and a google.rpc.RetryInfo with retry_delay.

Every row is an UNAVAILABLE, and “retry” means after at least retry_delay, keeping your own backoff.

Reason and metadata

When

Applied?

What to do

SERVER_SHUTTING_DOWN

The replica is shutting down

No

Reconnect or re-send; another replica answers

SUBSCRIPTION_CAPACITY, metadata cause

A subscribe found the replica at its subscription limit

No

Retry

READER_CAPACITY

A subscribe could not start its live feed in time on a busy replica

No

Retry

CATCHUP_CAPACITY, metadata wait (sometimes absent)

A subscribe could not start its catch-up in time on a busy replica

No

Retry

UPLOAD_CAPACITY, metadata cause

The replica’s upload capacity is full

No

Retry

STORE_WRITE_REFUSED, metadata condition

The service’s storage refused a write the call needed, for example because it is full

No

Retry; report it to the operator if it persists, since full storage may not clear by itself

SNAPSHOT_FENCE_TIMEOUT

An UpdateLayer found the layer briefly closed to writes

No

Retry

EXT_RELEASE_BUDGET_FULL

An upload with external values timed out waiting for room to store them

No

Retry

CLIENT_KEEPALIVE_TIMEOUT

A JoinSession sent no data for three keepalive intervals

No

Rejoin, and send keepalives from the network thread (Keepalives)

CHAIN_CHECK_UNAVAILABLE

A chained UpdateLayer could not read its chain’s state

No

Retry

UPSTREAM_UNAVAILABLE

Something an upload depends on was unavailable; or the replica lost contact with the service’s storage and refused a call or ended a stream

No

Retry

SERVICE_HELD

The service is offline for disaster recovery: every replica refuses every call and ends every stream until it returns. The message names the incident

No

Retry; retry_delay is at least 30 seconds

The other reasons carry no metadata. Metadata values name the exact limit or condition that was hit; they are diagnostic only: log them, and never branch on them.

Use a hint as follows:

  • retry_delay is a minimum wait. Keep your own backoff and wait the larger of the two, adding no jitter: the service already randomizes retry_delay. Read it from each response.

  • An unknown reason on UNAVAILABLE means “retry after that wait”. New reasons may be added.

  • On CreateLayer and UpdateLayer, a hint means this call applied nothing. A re-send is safe unless an earlier attempt of the same write is still in doubt; then re-send with that attempt’s operation_id. On other calls it means only “retry after that wait”, except SERVICE_HELD and UPSTREAM_UNAVAILABLE: a call refused with either applied nothing.

  • Recognise a hint by its domain and reason, never by the message text. The only messages a client matches are the hint-less refusal in rule 5 of Safe re-sends and the session is missing stream ending (How streams end).

  • These rules cover UNAVAILABLE only. The two chained-write refusals and the two size refusals carry an ErrorInfo on other codes, with no RetryInfo, and mean what their own rows state.

When an upload’s outcome is unknown#

Every UNAVAILABLE on a CreateLayer or UpdateLayer that the service knows applied nothing carries a hint, so a plain one may have applied. Treat these answers as outcome unknown, and re-send with the same operation_id:

  • a plain UNAVAILABLE, including UpdateLayer outcome unknown: … after the service’s own retries;

  • DEADLINE_EXCEEDED, which does not say how far the call got;

  • CANCELLED or a lost connection after you finished sending;

  • an answer from an earlier-version replica during a rolling upgrade, or from a proxy or your own transport, for example an UNAVAILABLE or INTERNAL.

The exception is the UNAVAILABLE that rule 5 of Safe re-sends describes, which a re-send can apply twice. A CreateLayer answered one of these can still take effect after the answer (Creating and replacing layers). So can a replacing CreateLayer answered INTERNAL, or ALREADY_EXISTS when its operation_id was also sent for another layer at once (rule 1 of Safe re-sends).

When a re-send is not safe#

The service cannot tell you whether an upload with an unknown outcome landed when:

  • it carried no operation_id, or its replica does not support them (Ping reports operation_ids false, or an OK carries OPERATION_OUTCOME_UNSPECIFIED);

  • it was refused with the rule-5 UNAVAILABLE.

Then:

  1. Read the layer’s current content: resubscribe from your position. The catch-up is not filtered by client_id, so it includes your write if it landed; peers’ later edits can overwrite it.

  2. Decide in your application whether the edit is there.

  3. If it is missing, send it again as a new write, with a new operation_id. If applying it twice is harmless in your application, you can re-send it without checking.

A CreateLayer re-sent without an id replaces the layer again with a new object_id, discarding any update made since the first one.

While the service’s storage is rebalanced#

A deployment’s operator can rebalance the service’s storage, for example when adding storage capacity. While a layer’s or session’s data moves, calls that touch it can be refused for the whole move; other layers and sessions carry on. Hinted refusals follow Retry hints, and CreateSession, DeleteSession and DeleteLayer follow Status codes. The other refusals, each retried with your own backoff:

Status

Reason and metadata

Applied?

What to do

UNAVAILABLE

none, on UpdateLayer or CreateLayer

Unknown

Re-send with the same operation_id; the layer or update exists once

UNAVAILABLE

none, on JoinSession

No

Join again

A live subscription to a moving layer pauses until the move ends; a catch-up of it can end UNAVAILABLE: resubscribe from your position. Presence during a long move is in Joining a session.

Transport errors#

The service’s handlers never return RESOURCE_EXHAUSTED. When every stream on a connection fails with it at once, an HTTP/2 layer closed the connection with GOAWAY ENHANCE_YOUR_CALM. On h2 0.4.16 to 0.4.18 that is usually your own library (Client requirements). The service closes a direct connection on which you send more than 100 empty, non-final DATA frames or about 135,000 small messages it has not yet read (deployments can lower this), or cancel more than 20 calls at once just after starting them. In each case, reconnect and retry, re-sending an upload that was in flight with the same operation_id. If the close recurs soon after connecting, check your HTTP/2 library for malformed requests. In a Rust client, the h2::Error in the status’s source chain says which side: is_library() for your own library, is_remote() for the service or a proxy.

References#

See next#

Input validation: the field rules and limits behind INVALID_ARGUMENT.