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 see | What 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 here | your 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:8000 | no address is set anywhere: set ZYONIX_ENDPOINT |
Signing in and permissions
| You see | What to do |
|---|---|
no API key or user session | sign in with zyonix auth login, or set ZYONIX_API_KEY (a cli key from an administrator: zyonix auth keys --create cli) |
HTTP 401 ... authentication failed | the 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 session | team 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 key | zyonix 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 code | enter 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 data | an 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 it | the local session file has loose permissions: run chmod 600 on the file it names |
| Windows: the session cannot be saved | the 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 see | What to do |
|---|---|
`zyonix test` sends the step's (redacted) outputs to the server ... capture is hash_only here | set 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 set | set 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 called | run 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 --local | a 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 2 | verifying 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-cli | your CLI is older than the server: pip install -U zyonix-cli |
Coding agents
| You see | What to do |
|---|---|
the MCP server needs the optional mcp package | pip install "zyonix-cli[mcp]" |
the Zyonix MCP server was started with a '...' key and will not use it | give 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 package | install zyonix-cli, not only zyonix-sdk |
Imports
| You see | What to do |
|---|---|
tracing is off: set ZYONIX_API_KEY | zyonix 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 line | each 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 see | It means | What 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 checked | raise max_payload_bytes in zyonix.yaml to the size the message names |
Detection: capture_truncated | the output record itself was cut, so nothing could be checked | the same |
not frozen: run ... under regression cases, or BLOCKED in zyonix golden | the run could not be frozen into a case (usually a truncated input of the replayable step); the reason follows | follow the reason; an issue stays DETECTED until one of its runs can be frozen |
Content expired by the retention policy | the run is older than the retention period: values, messages and snippets were removed; results and verdicts are kept | nothing; regression and golden cases keep their documents |
Detection: content_not_captured | no content of the run was ever stored: capture: hash_only, or the SDK sent no body | expected in that mode |
Detection: payload_expired | the content was stored and later removed by the retention period | nothing |
Detection: no_spec_for_schema; N run(s) of schema 'X' are not checked in zyonix status | the run's output schema is not the one the active spec describes | push a spec for that schema (zyonix spec push) |
grounding skipped: image-only source (or no usable text); outcome not_checkable | the model was given images or no usable text: values cannot be compared with a document | nothing; these runs are counted apart, never as passes |
not verified: invoice_no (MOBILE) masked at capture | a redaction pattern in your zyonix.yaml replaced an extracted value | give that pattern a context so it only masks where it should |
degraded: N failed call(s) inside a step that handled the failure | for example an OCR service failed and your step fell back; the run still delivered | nothing for the output; the failed calls show under provider health in zyonix status |
numeric dates "may be swapped" in zyonix status | day and month of the printed dates are ambiguous, so they were not verified | set the locale (for example en-IN) or day-first in your spec |
Output looks wrong
| You see | What to do |
|---|---|
| escape codes in a log | colour is only used on a terminal; force it off with --no-color or NO_COLOR=1 |
no colour in less | set ZYONIX_COLOR=always and page with less -R |
? or -> instead of a character | your console cannot show it; the text was replaced instead of crashing. --json always has the exact value |
| tables cut too narrow in a pipe | set ZYONIX_WIDTH=160 |
--json output mixed with other text | only stdout is JSON; progress, headers and errors go to stderr. Redirect stdout only (> out.json) |