Skip to main content

Troubleshooting

Start with:

zyonix doctor

It checks the configuration, the address, TLS, the key and the connection, and says what to do for each failure. Errors are always one line on stderr, zyonix <command>: <reason>, with exit code 2. Add --debug (or ZYONIX_DEBUG=1) to see a traceback; credentials are removed from it.

Connecting​

You seeWhat to do
endpoint host zyonix.example.com is not local and not listed in egress_allow (local-only mode)allow your Zyonix host: export ZYONIX_EGRESS_ALLOW=zyonix.example.com, or egress_allow: [zyonix.example.com] in zyonix.yaml
endpoint host ... is not local and the endpoint is plain http://use the https:// address of your Zyonix deployment
the server's certificate is not trusted hereyour deployment uses a private certificate authority: set ZYONIX_CA_FILE to its PEM file (or --ca-file)
cannot load the CA bundle ...the CA file path is wrong or not a PEM file
cannot reach https://...check the address (ZYONIX_ENDPOINT, --endpoint, endpoint in zyonix.yaml) and that the deployment is up
... answered with a redirect to ...you used an address that only redirects (for example http:// on port 80): use the final https:// address
... did not answer with JSON; is it a Zyonix endpoint?the address points somewhere else, for example the website behind a different path
a command goes to http://localhost:8000no address is set anywhere: set ZYONIX_ENDPOINT

Signing in and permissions​

You seeWhat to do
no API key or user sessionsign in with zyonix auth login, or set ZYONIX_API_KEY (a cli key from an administrator: zyonix auth keys --create cli)
HTTP 401 ... authentication failedthe key is not valid on this deployment (revoked, rotated, or for another deployment), or your session expired: sign in again
HTTP 403 ... (this needs an admin key)the command makes a decision: run it as an administrator, or with an admin key
HTTP 403 ... (this needs a cli or admin key)the command records results (test, replay, deploy): use a member's session or a cli key, not a viewer's session or an agent key
user administration needs a user admin sessionteam and key commands need an administrator signed in (zyonix auth login); an admin API key does not work there
this needs a person's session, not an API keyzyonix auth agents, use, add-agent and logout work on your session: sign in, or unset ZYONIX_API_KEY for this command
two_step_required / asked for a codeenter the 6-digit code from your authenticator app, or a recovery code. Lost both? Ask an administrator to reset two-step sign-in on the website
you get another agent's dataan API key wins over your session. Check zyonix auth whoami; unset ZYONIX_API_KEY or zyonix auth use the right agent
... is readable by group/others; run chmod 600 on itthe local session file has loose permissions: run chmod 600 on the file it names
Windows: the session cannot be savedthe CLI needs Windows Credential Manager for sessions; it does not fall back to a file. Use an API key instead
no stored user session; use --local ... (logout)you are not signed in at this address; zyonix auth logout --local clears anything left locally

Tests, replays and previews​

You seeWhat to do
`zyonix test` sends the step's (redacted) outputs to the server ... capture is hash_only hereset capture: full in zyonix.yaml (redaction still applies) or pass --config with such a file. Nothing was run or sent
N of M case(s) carry the config recorded when they failed ... no replay.config_provider is setset replay.config_provider in zyonix.yaml (or --config-provider module:function), or pass --use-recorded-config. Nothing was uploaded
all N case(s) failed to run for the same reason (...)a setup problem on this machine, not regressions: check replay.setup, replay.config_provider, your LLM provider key and the step's signature. Nothing was uploaded
a step cannot be imported or calledrun from your repository root, or add import folders with replay.python_path / --python-path. Only functions marked @zyonix.step(..., replayable=True) are called
previewing a candidate needs --locala preview takes --issue N --candidate-file FILE --local; a real replay takes --fix N
zyonix replay --fix on a runtime_policy fix stops with exit 2verifying a Guard fix needs the Guard on this machine, which customer installations do not include
a preview ends INCOMPLETE (exit 3)a gate could not be evaluated: the issue has no regression case yet, a case did not reproduce, cases were not run before --timeout, or results are missing. It is not a pass
HTTP 422 ... may not carry a verdict ... upgrade zyonix-cliyour CLI is older than the server: pip install -U zyonix-cli

Coding agents​

You seeWhat to do
the MCP server needs the optional mcp packagepip install "zyonix-cli[mcp]"
the Zyonix MCP server was started with a '...' key and will not use itgive the MCP server an agent key in ZYONIX_API_KEY
zyonix mcp --check lists "the key is a cli key"reads and previews work, drafts do not: use an agent key
zyonix init --agent needs the zyonix-cli packageinstall zyonix-cli, not only zyonix-sdk

Imports​

You seeWhat to do
tracing is off: set ZYONIX_API_KEYzyonix import needs an API key (cli, admin or sdk); it does not use your session
record N: skipped: record without 'doc_id'every record needs a document id; use --doc-id-field if yours has another name
invalid JSON on a lineeach line of a JSONL file must be one JSON object; try --dry-run first

When Zyonix could not look at everything​

Commands say so instead of reporting a failure or showing blanks.

You seeIt meansWhat to do
Capture: the output of step 'ocr' was truncated at capture; grounding skipped, "not verified"the document is larger than max_payload_bytes; values in the part not captured could not be checkedraise max_payload_bytes in zyonix.yaml to the size the message names
Detection: capture_truncatedthe output record itself was cut, so nothing could be checkedthe same
not frozen: run ... under regression cases, or BLOCKED in zyonix goldenthe run could not be frozen into a case (usually a truncated input of the replayable step); the reason followsfollow the reason; an issue stays DETECTED until one of its runs can be frozen
Content expired by the retention policythe run is older than the retention period: values, messages and snippets were removed; results and verdicts are keptnothing; regression and golden cases keep their documents
Detection: content_not_capturedno content of the run was ever stored: capture: hash_only, or the SDK sent no bodyexpected in that mode
Detection: payload_expiredthe content was stored and later removed by the retention periodnothing
Detection: no_spec_for_schema; N run(s) of schema 'X' are not checked in zyonix statusthe run's output schema is not the one the active spec describespush a spec for that schema (zyonix spec push)
grounding skipped: image-only source (or no usable text); outcome not_checkablethe model was given images or no usable text: values cannot be compared with a documentnothing; these runs are counted apart, never as passes
not verified: invoice_no (MOBILE) masked at capturea redaction pattern in your zyonix.yaml replaced an extracted valuegive that pattern a context so it only masks where it should
degraded: N failed call(s) inside a step that handled the failurefor example an OCR service failed and your step fell back; the run still deliverednothing for the output; the failed calls show under provider health in zyonix status
numeric dates "may be swapped" in zyonix statusday and month of the printed dates are ambiguous, so they were not verifiedset the locale (for example en-IN) or day-first in your spec

Output looks wrong​

You seeWhat to do
escape codes in a logcolour is only used on a terminal; force it off with --no-color or NO_COLOR=1
no colour in lessset ZYONIX_COLOR=always and page with less -R
? or -> instead of a characteryour console cannot show it; the text was replaced instead of crashing. --json always has the exact value
tables cut too narrow in a pipeset ZYONIX_WIDTH=160
--json output mixed with other textonly stdout is JSON; progress, headers and errors go to stderr. Redirect stdout only (> out.json)