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 |
|---|---|---|---|
|
The request is malformed or over a limit (Input validation) |
No |
Do not retry it unchanged; |
|
The bearer token is missing, malformed or rejected |
No |
Obtain a valid token |
|
The caller lacks read access to the session’s base layer path in Storage (Authentication) |
No |
Do not retry |
|
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 |
|
The session name is taken on that base path, or an |
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 |
|
The |
No |
Resync to the current object |
|
Only a chained |
No |
Recover the chain |
|
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 |
|
The call ran past its deadline |
Unknown for an upload; no if it was still sending |
Re-send an upload with the same |
|
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 |
|
Never returned by the service itself: an HTTP/2 layer closed the connection |
Unknown for uploads in flight |
See Transport errors |
|
A single gRPC message exceeded 4 MB |
No |
Send content in smaller chunks |
|
A server fault; the service’s own |
Not guaranteed |
Do not retry the request unchanged; report it to the operator. A |
Some answers need care:
CreateSessionafterUNAVAILABLE. A retry can answerALREADY_EXISTSbecause the failed attempt still holds the name. CallListSessionsfor 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,ListSessionscannot free the name; keep retrying with your own backoff, and callListSessionsagain onceCreateSessionstops answeringUNAVAILABLE.DeleteLayerafterUNAVAILABLEorDEADLINE_EXCEEDED. The failed attempt may already have deleted the layer, so a retry answeringNOT_FOUNDmeans it is gone. The layer’s subscriptions then endNOT_FOUNDonce 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.DeleteSessionafterUNAVAILABLEorDEADLINE_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, andNOT_FOUNDon the re-send means the session is gone.FAILED_PRECONDITIONwhile the layer still has its old object. ACreateLayerthat replaces a layer and answers a plainUNAVAILABLE,DEADLINE_EXCEEDEDorCANCELLEDcan leave the layer refusing edits, with noErrorInfo, until its replacement settles. It settles with no further call, normally within a minute and otherwise within minutes. Re-send thatCreateLayerwith the sameoperation_idto learn the outcome, then edit the object it returns (Creating and replacing layers). A replacingCreateLayeransweredINTERNALcan 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
UNAVAILABLEautomatically; if you enable one for uploads, setoperation_idso 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 |
|---|---|---|---|
|
The replica is shutting down |
No |
Reconnect or re-send; another replica answers |
|
A subscribe found the replica at its subscription limit |
No |
Retry |
|
A subscribe could not start its live feed in time on a busy replica |
No |
Retry |
|
A subscribe could not start its catch-up in time on a busy replica |
No |
Retry |
|
The replica’s upload capacity is full |
No |
Retry |
|
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 |
|
An |
No |
Retry |
|
An upload with external values timed out waiting for room to store them |
No |
Retry |
|
A |
No |
Rejoin, and send keepalives from the network thread (Keepalives) |
|
A chained |
No |
Retry |
|
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 |
|
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; |
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_delayis a minimum wait. Keep your own backoff and wait the larger of the two, adding no jitter: the service already randomizesretry_delay. Read it from each response.An unknown
reasononUNAVAILABLEmeans “retry after that wait”. New reasons may be added.On
CreateLayerandUpdateLayer, 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’soperation_id. On other calls it means only “retry after that wait”, exceptSERVICE_HELDandUPSTREAM_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 thesession is missingstream ending (How streams end).These rules cover
UNAVAILABLEonly. The two chained-write refusals and the two size refusals carry anErrorInfoon other codes, with noRetryInfo, 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, includingUpdateLayer outcome unknown: …after the service’s own retries;DEADLINE_EXCEEDED, which does not say how far the call got;CANCELLEDor 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
UNAVAILABLEorINTERNAL.
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 (Pingreportsoperation_idsfalse, or anOKcarriesOPERATION_OUTCOME_UNSPECIFIED);it was refused with the rule-5
UNAVAILABLE.
Then:
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.Decide in your application whether the edit is there.
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 |
|---|---|---|---|
|
none, on |
Unknown |
Re-send with the same |
|
none, on |
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#
gRPC richer error model — how
grpc-status-details-bincarriesgoogle.rpc.Status.google/rpc/error_details.proto— theErrorInfoandRetryInfomessages.
See next#
Input validation: the field rules and limits behind INVALID_ARGUMENT.