Skip to main content

Troubleshooting

Exit codes​

Client commands exit with one stable code per failure class. Branch on the code, not the message.

CodeNameClassMeaning
0OKsuccessCommand completed
1CRASHunknownUnexpected error — a bug, a filesystem problem, or an unclassified failure
2ACT_GATE_REFUSEDpolicy refusalThe act gate, authority or entitlement refused the act (also: lease tool policy none, unknown executor, privileged act not executed/approved)
3AUTH_REQUIREDpolicy refusalCredential missing, expired, or not empowered (HTTP 401/403)
4RESOURCE_CONFLICTuser errorResource exists or state conflict (HTTP 409); also a cloud-sync conflict
5NOT_FOUNDuser errorResource not found (HTTP 404)
6OPERATION_TIMEOUTservice failureThe server did not answer in time; vagaris runctl attach past its --timeout
7PROTOCOL_MISMATCHuser errorCLI/server protocol versions differ — run vagaris update
8LEASE_INVALIDpolicy refusalLease expired, revoked, or bound to another node
9NODE_REVOKEDpolicy refusalThis machine's enrolment has been revoked
10SPAWN_CEILING_FULLpolicy refusalToo many concurrent runs
11SERVICE_UNAVAILABLEservice failureServer unreachable, 5xx, or rate-limited
12DEFERRED_TO_OPERATORdeferredAccepted, but awaits an operator or approval decision
13USAGE_ERRORuser errorBad arguments (including an unknown command or option), malformed input, missing context
14RELEASE_CANDIDATE_MISMATCHpolicy refusalA release candidate was approved, and the one being deployed differs from it (see The release gate)
15APPROVED_DIGEST_UNPINNEDpolicy refusalThe approval matches the commit and environment but never pinned the image digest you named

The five classes are what a script needs to tell apart: user error (fix the input and retry), policy refusal (ask for authority; retrying will not help), service failure (retry later), deferred (wait for a decision), unknown (report it).

vagaris dev uses the same scheme and additionally propagates the governance chain's own exit code when it exits.

The error envelope​

With --json, a failing client command prints one object instead of prose:

{
"ok": false,
"error": {
"code": "AUTH_REQUIRED",
"name": "auth",
"exitCode": 3,
"class": "policy_refusal",
"reason": "Board access required"
}
}

code is the slug from the table; reason is the human sentence (the server's own reason when there was one). Without --json the same failure prints the reason on stderr (prefixed API error <status>: when it came from the server) followed by a dim [CODE · class · exit N] line.

Common failures​

Company ID is required. — pass --company-id, set VAGARIS_COMPANY_ID, or save it with vagaris context set --company-id <id>.

Exit 3 in a script. — the CLI has no usable credential for this API base. Log in once through the printed one-time URL so the reusable grant is saved in the private credential file. An explicitly supplied VAGARIS_API_KEY remains supported. See Login.

Existing CLI state needs a one-time move or CLI state migration is incomplete. — stop other CLI processes, run vagaris auth migrate-state --dry-run, then vagaris auth migrate-state. From the platform CLI the same move is vagary auth migrate-state --dry-run, then vagary auth migrate-state: the message always names the CLI you ran, and either one completes the move for both. This moves the existing default auth/context files to ~/.vagaris without a new login. An interrupted move resumes from its journal. Keep old-path refusal markers and the journal; do not copy credentials into both roots. Explicit custom paths are not changed.

An interrupted CLI state migration started from a folder this CLI no longer reads. — a move from the original product's folder was interrupted before this release, and this release cannot resume it. Remove the migration journal named in the message, then run vagaris login. See Upgrading from an older install.

A command ignores a variable you set. — check its prefix. The CLI reads VAGARIS_* and then VAGRIS_* only; variables under the original product's prefix are not read. See Environment Variables.

A credential file/directory permission error. — the credential directory must belong to your user and be private (0700), and the default ~/.vagaris/auth.json must be private (0600). The CLI preserves existing contents and reports the problem instead of moving credentials to another backend. Old OS-store marker records require a new verified login; they are not automatically refreshed or deleted.

Exit 7 PROTOCOL_MISMATCH. — the server is newer than the CLI. vagaris update, or vagaris update --to <version> to match a pinned server.

no CLI-hosted executor for adapter '<type>' (exit 2) — only claude-local and codex-local can be hosted by vagaris dev. See Executors.

lease A3 axis denies all tools (exit 2) — the lease carries no tool allowlist. That is the default; the seat's policy on the server must grant tools. See Permissions.

leaseVerified: false in the dev report — the server refused the lease on verification: expired, revoked, or bound to another node (--node-id). Claim again; check vagary node status.

runctl cancel says the run is still running. — the kill-switch integrity gate did not confirm the process died, so the run is reported truthfully. Retry; if it persists the process on the host needs attention.

Enrolment timed out or was cancelled. — the approval URL printed by vagary node enroll was not approved within two minutes. Run it again and approve promptly.

Warning: 'vagris' is deprecated and will be removed in the next release; use 'vagaris' instead. — you invoked the legacy alias. Harmless for now (it only writes to stderr), but the next release drops vagris; switch any scripts to vagaris.

Garbled or missing terminal output. — vagaris tui-demo renders a hello-world screen to confirm the ANSI renderer works in your terminal (--no-animation for a static render).

Skills not linked into ~/.claude/skills. — vagaris agent local-cli only writes there with --install-skills plus consent (--yes non-interactively). See Coding-Agent Integration.

Still stuck​

Collect a bundle and open a request — Support.