Skip to content

Errors and exit codes

Every failure is attributed. An environment failure is ours: kept out of your result and retried once before hand-over. It is not billed before the sandbox reaches you; after that, when our side shows the failure was ours, the work since its last snapshot (or since it started), up to 24 hours, is credited back. A task failure is yours: billed, because the environment worked.

Exit codes

promigence CLI exit codes
ExitMeaningBilling
0Successbilled
1Our own failure, or a command this version of the CLI does not implementnot billed
2Usage error: bad or missing arguments, or an unknown commandnot billed
3Environment failure: the environment failed, not your commandnot billed before hand-over; after it, credited back when our side shows it was ours
4Task failure: your command failedbilled
5Refused by a spend cap or an account limit; nothing startednot billed
6The snapshot is not verifieda build its checks refused: the time it ran, unless the failure was ours; otherwise not billed
7Not signed in, or not allowed yet: a missing, invalid or expired API key, an account that must finish its setup questions first, or a blocked accountnot billed
8Not found: no such snapshot, run or sandboxnot billed
9The API could not be reachednot billed
10Rate limited (the CLI honours Retry-After), or the monthly data-out cap is reachednot billed
11A wait expired. Nothing was killedunchanged
12Partial: some sandboxes did not start, or were stopped at the spend cap, at their timeout, or by Promigence supportbilled for what ran
13agent-guide --check only: the files would change; nothing was writtennot billed
125exec --sandbox only: our own failure. Otherwise your command's own exit code passes through (a command that is not found exits 127)unchanged
130Interrupted by the client (Ctrl-C or a signal); the sandboxes are killed unless --keepbilled for what ran

Every error answer from the API is a JSON body with code, message, fix, category, retryable (true when the same request, sent again unchanged, can succeed) and request_id (quote it to support). A code with no HTTP status below is made by the CLI or the SDK itself; the API never sends it.

env

Environment failure, ours. Not billed before the sandbox reaches you; after that, when our side shows the failure was ours, the work since its last snapshot (or since it started), up to 24 hours, is credited back, after a review if many are credited in one day. A sandbox that stops responding on its own is billed as used. Retried once before hand-over when the run has a command, and never counted against your agent in a validity report.

env error codes
CodeMeaningHTTPExitBilled
fork_failedThe sandbox could not be started.Not billed. A run with a command is retried once automatically; otherwise re-run. If it repeats, re-verify the snapshot: promigence snapshot verify {snapshot_id}.5023no
start_timeoutThe sandbox did not answer its first command within {deadline_ms} ms.Not billed. A run with a command is retried once automatically; otherwise start it again. If it keeps happening, tell support@promigence.ai the run id.5023no
readiness_failedThe sandbox failed its readiness check.Not billed: the sandbox was set aside before it was handed to you. A run with a command is retried once automatically; otherwise start it again. If it keeps failing, re-verify the snapshot: promigence snapshot verify {snapshot_id}.5023no
verify_too_slowThe snapshot's verify step took longer in this sandbox than its limit allows.Not billed. A run with a command is retried once automatically; otherwise start it again. If it keeps happening, re-verify the snapshot: promigence snapshot verify {snapshot_id}.5023no
verify_each_failedVerify_each run failed in the fork (exit {exit_code}, digest {digest}).Not billed. A run with a command is retried once automatically. If it repeats, the snapshot no longer reproduces: rebuild with promigence snapshot create ....5023no
toolchain_mismatchToolchain check {argv} in the fork gave digest {got}, the verified snapshot recorded {expected}.The fork's toolchain differs from the verified snapshot; not billed. Re-run; if it repeats, rebuild the snapshot.5023no
sandbox_unresponsiveThe sandbox stopped responding.Billed for the time used, unless our side shows the cause was ours: then it is credited back (after a review if many are credited in one day), as the run report shows. Not retried automatically once your command has started. To run it again: promigence run replay {run_id} --sandbox {sandbox_id}. If you think the cause was ours, tell support@promigence.ai the run id.5023yes, unless ours
oom_within_tierThe sandbox stopped on our side while within the tier's {tier_mib} MiB.Our fault, not yours: credited back (at least the work lost since your last snapshot of this sandbox, up to 24 hours; a sandbox under 24 hours with no snapshot is not charged), after a review if many are credited in one day. Replay: promigence run replay {run_id} --sandbox {sandbox_id}.5023no, credited back
disk_full_within_tierThe sandbox stopped on our side while within its {tier_disk_gib} GiB of disk.Our fault, not yours: credited back (at least the work lost since your last snapshot of this sandbox, up to 24 hours; a sandbox under 24 hours with no snapshot is not charged), after a review if many are credited in one day. Replay: promigence run replay {run_id} --sandbox {sandbox_id}.5023no, credited back
sandbox_interruptedThe sandbox was interrupted by a platform event.Not caused by your work, and credited back: at least the work since your last snapshot of this sandbox, up to 24 hours; a sandbox under 24 hours with no snapshot is never charged. To run it again: promigence run replay {run_id}.5023no, credited back
integrity_mismatchThe environment differs from the verified snapshot at {path}.Not billed when we confirm the stored snapshot itself differs at that path; otherwise (only this sandbox's copy changed, or the check could not be made) the time used is billed. To run it again: promigence run replay {run_id} --sandbox {sandbox_id}; if it happens again, rebuild the snapshot.5023yes, unless ours
egress_unavailableThe sandbox's outbound network was unavailable.Not billed when we confirm the outage on our side, after a review if many are credited in one day; otherwise the time used is billed. To run it again: promigence run replay {run_id}.5023yes, unless ours
service_timeoutThe service's own time limit ({deadline_ms} ms) was reached before your command's timeout.When the cause was ours (our service restarted), it is credited back: at least the work since your last snapshot of this sandbox, up to 24 hours. Otherwise the time used is billed. For long commands, set timeout_ms. To run it again: promigence run replay {run_id} --sandbox {sandbox_id}.5043yes, unless ours
resume_unavailableSandbox {sandbox_id} is safe and still paused; it could not be resumed right now.Your files are kept and nothing was billed. Retry in a minute. If it keeps happening, email support@promigence.ai with the sandbox id.5033no
sandbox_unreachableSandbox {sandbox_id} could not be reached just now; nothing was changed.Not billed for this call, and the sandbox is as it was. Retry in a few seconds. If it keeps happening, email support@promigence.ai with the sandbox id.5033no
capacity_busyNo capacity free right now.Not billed, and nothing was started. Nothing was free in time: start it again in a few minutes, or lower --count to need fewer at once.5033no
region_at_capacityCapacity is full right now.Not billed, and nothing was started. Retry shortly, or lower --count.5033no
builder_unavailableNew snapshots cannot be built right now.Not billed, and nothing was stored. Nothing here can build at all, so this is not a busy queue and does not clear itself by waiting, and a smaller run does not help. Snapshots you have already built still run, so re-use one (promigence snapshot list). If you asked for a specific CPU, drop that and retry; otherwise retry shortly, and tell support@promigence.ai the time if it keeps happening.5033no
builder_busySnapshot builds are backed up; retry after {retry_after_s} s.Not billed, and nothing was stored. Other builds are ahead of this one: submit it again in {retry_after_s} s. Builds already accepted keep their place in the queue and finish on their own (promigence snapshot status <build_id> --wait).5033no
overloadedThe API is at capacity; retry in {retry_after_s} s.Not billed, and nothing was started. Send the same request again in {retry_after_s} s; the SDKs and the CLI do this for you.5033no
tier_unavailableThe {tier} tier ({vcpus} vCPU / {mem_gib} GiB) is not available yet.Not billed. Use a smaller tier (promigence snapshot create … --tier; a fork runs on its snapshot's), or write to support@promigence.ai to have {tier} enabled for your account.5033no
snapshot_unavailableSnapshot {snapshot_id} is no longer available: it could not be saved.Not billed, and nothing was started. It cannot be started again: take a new snapshot of a running sandbox (promigence sandbox snapshot <sandbox_id>) or build it again (promigence snapshot create ...), then remove this one: promigence snapshot delete {snapshot_id}.4093no
capacity_limit{requested} {tier} sandboxes at once is more than one run can start at once; at most {max_at_once}.Not billed; nothing started. Run at most {max_at_once} at once (lower --count), or use a smaller tier.4093no
registry_unavailable{image} could not be resolved to a digest because its registry did not answer usably: {detail}.Not billed, and nothing was stored. Your image is not at fault: submit it again in {retry_after_s} s. Snapshots you have already built from it still run (promigence snapshot list).5033no
network_policy_unsupportedThis sandbox asked to reach only {allow}, and that could not be applied.Nothing ran and nothing was billed: the sandbox was discarded rather than started without the restriction you asked for. Re-run; if it repeats, tell support@promigence.ai the run id.5023no
secrets_unavailableSecrets cannot be used right now.Not billed, and nothing that names a secret was started. Runs, commands and terminals that name no secret are unaffected, and stored secrets can still be listed and deleted. Retry shortly; if it keeps happening, tell support@promigence.ai the time.5033no
secret_binding_unsupportedA secret bound to a host could not be set up for this sandbox.Nothing ran, nothing was billed, and the value never entered the sandbox. Re-run; if it repeats, tell support@promigence.ai the run id.5023no
idempotency_key_in_useA request with this Idempotency-Key is still running.Not billed; nothing new was started. Send the same request again in {retry_after_s} s for the first one's answer; the SDKs do this for you.4093no
env_failedThe sandbox ended before hand-over.Ours, not billed. The run's report names the failure's own code (promigence run report RUN); start the sandbox again.—3no
build_failedThe build could not finish; nothing was stored.Not charged. Build again; if it repeats, email support@promigence.ai with the build id.—3no
service_restartA service restart stopped the command while its output was streaming.Not billed: the time the command ran is credited back. The sandbox kept running; the command may have done part of its work before it stopped: run it again if that is safe.—3no

task

Task failure, yours. Your command exited non-zero, timed out, or exceeded the tier. Billed, because the environment did its job.

task error codes
CodeMeaningHTTPExitBilled
nonzero_exitCommand exited {exit_code}.The environment was verified; the command failed. Inspect: promigence exec output {exec_id}.4224yes
grade_not_passedThe task completed and its grade did not pass (the grader exited {exit_code}).Your grader failed the work; the task's command succeeded.4224yes
task_timeoutCommand exceeded timeout_ms={timeout_ms}.Raise --timeout (billed per second used, so a longer timeout only costs what runs) or shorten the task.4224yes
oom_over_tierThe process was killed for exceeding the tier's {tier_mib} MiB of memory.Rebuild the snapshot on a larger tier (promigence snapshot create … --tier medium|large; see promigence agent-guide --section cost) or reduce the task's memory.4224yes
disk_over_tierThe sandbox ran out of its {tier_disk_gib} GiB of disk.Pick a larger tier or write less; the disk is sized to the tier quota.4224yes
shutdown_by_taskThe sandbox shut itself down ({kind}).Billed as the task's outcome: a command in the sandbox shut it down. Keep the task from doing that; if nothing in it should have, check what the agent ran.4224yes
modified_by_task{missing} was removed or changed inside the sandbox; the snapshot's copy is intact.Billed as the task's outcome: the sandbox started verified and something it ran deleted or changed {path}. Keep the task from modifying verified paths, or recreate what it needs first.4224yes
task_failedThe command exited non-zero (the SDK's CommandExitError).The environment was verified and the command failed: read stdout and stderr on the error, or pass throwOnExit: false to get the result instead. A run's report calls the same failure nonzero_exit.—4yes

cap

Spend caps and credit. A run whose quote is over its cap, or over a project's or the day's limit, is refused before anything starts. A running sandbox that reaches its run's spend cap, or a trial whose credits run out, is paused with its files and state kept (cap_paused, credits_paused): paused time is not billed, and it goes on once the cap is raised (promigence sandbox resume <id> --cap <usd>) or credits are added. The command that was running then ends cap_killed; a sandbox that cannot be paused is stopped at the cap, billed up to the cap and never past it.

cap error codes
CodeMeaningHTTPExitBilled
cap_killedSandbox killed when its accrued spend reached the spend cap ({spend_cap}).The seconds it ran are billed, up to the cap. Raise --cap or PATCH /sandboxes/:id earlier.40212yes
cap_exceededQuote {max_cost} exceeds remaining spend cap {remaining}.Raise --cap, lower --count/--timeout, or pass --allow-partial to launch what fits.4095no
cap_pausedSandbox {sandbox_id} is paused: its run reached its spend cap ({spend_cap}).Its files and state are kept, and paused time is not billed. Raise the run's cap to go on: promigence sandbox resume {sandbox_id} --cap <usd> (spend_cap on POST /v1/sandboxes/{sandbox_id}/resume). Or end it: promigence sandbox kill {sandbox_id}.4025no
credits_pausedSandbox {sandbox_id} is paused: the organization's credits ran out.Its files and state are kept, and paused time is not billed. Add a card to go on (owners: promigence billing card; members ask an owner), then resume it: promigence sandbox resume {sandbox_id}. Or end it: promigence sandbox kill {sandbox_id}.4025no
trial_credits_exhaustedTrial credits left ({remaining}) do not cover this ({needed}).Add a card to keep going (owners: promigence billing card, or POST /v1/billing/checkout; members ask an owner). Remaining credits are used first; running sandboxes finish.4025no
project_cap_reachedProject {project} has {remaining} of its {limit} monthly cap left; this needs {needed}.Ask for less (--count, --cap, a shorter extension), wait for the 1st (UTC), or have an owner raise it: promigence project cap {project} <usd>.4035no
spend_limit_reachedToday's spend limit {limit} has {remaining} left; this needs {needed}.Running sandboxes finish. The limit resets at 00:00 UTC and grows with each paid invoice; ask for less, or email support@promigence.ai.4025no

snapshot

Snapshot coverage. Something was missing that the snapshot's verify command never exercised, a signal to widen --verify.

snapshot error codes
CodeMeaningHTTPExitBilled
verify_did_not_cover{path} is missing but was not under a verified path; the snapshot's verify did not cover it.Billed: the environment matched what verify checked. Broaden verify (or setup) so the path is produced and covered, then promigence snapshot create ....4224yes
snapshot_failedA build ended with no snapshot, or the snapshot did not hold.A build: read its log (promigence snapshot status BUILD --log 80), fix what it names, build again. A run: the sandbox's own failure code says what (usually verify_did_not_cover: broaden verify).—4yes, unless ours

grader

Grading. The grade for a run could not be computed; the run itself is kept.

grader error codes
CodeMeaningHTTPExitBilled
grader_failedThe grade could not be computed ({kind}).Not a task failure. The time your grader ran is billed like the sandbox's own; a grade that failed on our side is not. Check that grade.cmd exits within grade.timeout_ms and that its output matches grade.score (exit | last_line_json | tap), then re-run.4223yes, unless ours

preempt

Preemption. A sandbox started at the preemptible rate was stopped early, as preemptible runs can be; the work since its last snapshot (or since it started), up to 24 hours, is credited back.

preempt error codes
CodeMeaningHTTPExitBilled
preemptedThe preemptible sandbox was stopped early, as preemptible runs can be.Our doing, not yours: credited back (at least the work lost since your last snapshot of this sandbox, up to 24 hours; a sandbox under 24 hours with no snapshot is never charged). This run asked to be preemptible, which is priced below the standard rate for exactly this reason. To run it again: promigence run replay {run_id} --sandbox {sandbox_id}; or run it without preemptible to pay the standard rate and not be stopped early.5023no, credited back

other

Requests refused as sent, sign-in and account conditions, limits, and the end states that are neither yours nor ours: a sandbox that reached its timeout (expired), or that Promigence support stopped (stopped_by_support, with the reason in its message: billed for the seconds it ran, as a kill is, unless support found the cause was on our side).

other error codes
CodeMeaningHTTPExitBilled
aborted_by_clientSandbox killed by the client.Nothing to fix; billed for the seconds used.200130yes
stopped_by_supportStopped by Promigence support: {reason}.Billed for the seconds it ran, as a kill is, unless support found the cause was on our side; then that time is credited back. Questions: tell support@promigence.ai the sandbox id.20012yes, unless ours
expiredSandbox timeout reached (counted from hand-off).Raise --timeout if the task needs longer.20012yes
not_startedSandbox not started: outside the spend cap.Raise --cap; with --allow-partial only what fits is launched.20012no
supersededAttempt 1 superseded by a successful retry.Nothing to fix; attempt 1 is unbilled.2000no
usage{detail}.{detail}. See promigence {command} --help.4002no
internalInternal error.Not your fault. Re-run; if it repeats, tell support@promigence.ai the run or sandbox id and the time.5001no
authMissing or invalid API key.Set PROMIGENCE_API_KEY or run promigence auth login --from-env VAR. No key yet: promigence login (sign in) or https://promigence.ai.4017no
forbidden{detail}.Do what the message names: sign in (promigence login), use a full-access key (promigence keys create) or one from that org, or ask an owner.4037no
not_found{kind} {id} not found.Check the id; aliases resolve in your org first, then public snapshots (promigence examples).4048no
unreachableCannot reach {url}.Retry in a moment. If the API answered this, the fault is ours: if it repeats, email support@promigence.ai with the sandbox or run id. If the API itself did not answer, check PROMIGENCE_API_URL and your connection.5039no
rate_limitedRate limited by {host}; retry after {retry_after_s} s.Wait Retry-After seconds, then retry. If the limit is an image registry's, not this API's, a registry_secret holding your own login for it usually raises it. Otherwise lower concurrency (see GET /me limits).42910no
timeoutWait of {wait_timeout} expired; nothing was killed.Run the id-based command: {next}.50411no
not_verifiedSnapshot {snapshot_id} is not verified (build {build_id}: {state}).Wait for the build: promigence snapshot status {build_id} --wait.4096no
snapshot_incompatibleSnapshot {snapshot_id} can no longer run on the platform.Nothing was started or billed. Rebuild it from the same source: POST /v1/snapshots (promigence snapshot create).4096no
storage_limit_reached{detail}.Nothing was stored or charged, and nothing already stored was removed: delete what you no longer need, or move to a plan that keeps more.4095no
build_timeoutThe build ran past its {limit_min}-minute limit.Nothing was stored; the {limit_min} minutes it ran are billed. Shorten setup (at most 64 steps, {limit_min} minutes in all) or bake the slow part into the image.4224yes
dockerfile_build_failedYour image could not be built from the Dockerfile: {detail}.Nothing was stored; the time the build ran is billed. Fix the Dockerfile (the lines above are the end of your own build output) and run promigence snapshot create --dockerfile PATH ... again.4002yes
image_unresolvable{image} could not be resolved to a digest: {detail}.Nothing was stored and nothing was billed. Check the name and tag; a private image needs registry_secret naming a stored secret that holds user:password (promigence secrets set). You can also pass the image already pinned as NAME@sha256:<digest>.4222no
enoent{argv0} not found in the sandbox.Check the command name; install the program in the image or in a setup step; for a shell builtin or a pipeline, run it through a shell: -- sh -c '...'.4048no
credit_unclaimedThis account has free credit waiting to be claimed.Claim it in your browser: promigence credits claim (owners; members ask an owner). Or add a card: promigence billing card. Nothing was started or charged.4025no
setup_requiredFinish setting up your account before starting new work.Open {setup_url} and answer the setup questions (under a minute), then run this again. Nothing was started or charged.4037no
card_requiredA card is required for new work since {effective_at}.Add a card (owners: promigence billing card, or POST /v1/billing/checkout; members ask an owner). Your trial credits are kept and used first; reads and results stay available.4025no
billing_unavailableCard payments are not open yet.Nothing was charged. Your trial credits are kept and used first; for more credits, email support@promigence.ai.5035no
concurrency_limit{live} live + {requested} requested sandboxes is over your limit of {limit}.Wait for sandboxes to end or lower --count (--allow-partial covers the spend cap only); a retry of the same request fails the same way. Trial orgs get {trial_limit}; to raise it, email support@promigence.ai.4095no
egress_cap_reachedMonthly data-out cap reached: {used_gb} of {cap_gb} GB.Use --network none (still allowed) or wait for the 1st (UTC). For more data out a month, email support@promigence.ai.4035no
billing_holdNew work is on hold: {reason}.Running sandboxes finish. Owners: update the card with promigence billing portal; the hold lifts once the invoice is paid. For a disputed payment, write to support@promigence.ai.4025no
tier_over_planThe {tier} tier ({vcpus} vCPU) is over the {limit} vCPU per-sandbox limit of your {plan} plan.Use a tier of at most {limit} vCPU (promigence snapshot create … --tier {max_tier} is the largest; a fork runs on its snapshot's), or move to a plan that allows it: promigence billing portal.4032no
network_host_refused{host} is not on this sandbox's allowed list, so the connection was refused.Add it when you start the sandbox — --allow {host} — or drop --allow to let the sandbox reach anything. promigence sandbox network <id> lists everything that has been refused.4039no
secrets_in_snapshotSandbox {sandbox_id} was given a secret's value, so a snapshot of it can contain that value.To take it anyway, pass force: true (promigence sandbox snapshot {sandbox_id} --force): that snapshot, and every sandbox started from it, can then contain the secret. Otherwise snapshot a sandbox that was never given a secret, and name the secret on the runs you start from it.4092no
idempotency_key_reusedThis Idempotency-Key was used for a different request.Nothing was started. Use a new key for a new request; send the original request again to get its original answer.4092no
repo_credentials_not_supportedCredentials in repository URLs are not accepted ({field}).Nothing was built or billed. A repository URL never carries a credential. For a private repository, connect its host once for your organization (promigence github connect or promigence gitlab connect) and name it as --repo owner/name (--repo gitlab:group/project); a public one is named by its plain https:// URL, with no user name, password, token, query string or fragment in it.4002no
account_existsThis email address has an account that signs in with {sign_in_with}.Nothing was created. Sign in with {sign_in_with} instead: {sign_in_command}. If the browser signs you in with the method you just used, open the sign-in link in a private window. If you did not create that account, write to support@promigence.ai.4097no
invite_invalidThis invite code is not valid.Nothing was created. Check the code and try promigence signup again, or ask the person who invited you for a new code.4037no
invite_requiredNew accounts need an invite code right now.Nothing was created. Run promigence signup and enter your invite code when asked. If you already have an account, sign in with the method you used before (promigence login).4037no
key_expiredThis API key expired at {expired_at}.Create a new key (promigence keys create, or sign in again with promigence login) and replace this one wherever it is used.4017no
account_blockedThis account is blocked.Write to support@promigence.ai to have it reviewed.4017no
invalid_argumentAn argument the SDK refused before sending it.Nothing was sent or billed. The message names the argument and the form it takes: change it and call again. From the CLI, promigence <command> --help lists every flag.—2no
unsupportedNot available in this version or on this deployment.Nothing was sent or billed. The fix in the error names what to use instead.—2no
not_releasedNot released in this version.Nothing was sent or billed. Update the CLI or SDK once a release implements it (support@promigence.ai has the latest).—1no
snapshot_rejectedA build guard refused it; nothing was stored.The time the build ran is billed, unless it ended on our side. Read the build log (promigence snapshot status BUILD --log 80): the guard named in the error says what to change (verify exited non-zero, a setup step failed, a time or size bound), then build again.—6yes, unless ours
not_connectedThe connection request ended without connecting anything.Nothing was connected. Do what the message names, then run the connect command again; promigence github status (or gitlab status) lists what is connected.—7no

Every error carries a fix

The fix field is mandatory in the schema. An agent that gets an error it cannot act on retries blindly, which costs episodes and tells you nothing. Handling them in TypeScript

Request access

Leave your work email and we will email you an invite code with $100 in free credits.

See our Privacy Policy for how we use your email.