Troubleshooting

Start with structured diagnosis. These commands are read-only unless the final command explicitly says cancel, purge, apply, or write:

readyci auth status
readyci config validate
readyci config explain --fields
readyci sync --dry-run --json
readyci check --dry-run --why --json CHECK_NAME
readyci doctor --repo --check CHECK_NAME --json
readyci runs explain --json RUN_ID

Do not repeatedly create new runs while an existing verification session is unknown. Recover the durable session first.

The CLI will not authenticate

Symptoms include exit 3, unauthorized, expired token, missing scope, or a login callback that never arrives.

  1. Run readyci auth status against the same API URL.
  2. Check whether READYCI_API_TOKEN is overriding a stored browser credential.
  3. For local browser login, use readyci login --no-browser only when the browser can reach the CLI's 127.0.0.1 callback. On remote hosts, use readyci login --device, forward the callback port over SSH, or use a scoped token. Device logins never hold tokens:*, members:*, secrets:* or cache:purge; a missing-scope error for those operations needs browser login or a dashboard token.
  4. Confirm the token belongs to the team owning the selected project.
  5. Compare the operation with the token's scopes in Dashboard → Tokens.
  6. Revoke exposed or uncertain tokens and create a short-lived replacement.

Never “solve” a scope failure by placing an admin token in an agent environment.

The wrong project or API is selected

Run readyci config explain --fields and inspect config_path, project_id, and the API origin. Precedence is command flag, environment, selected config/account context, then defaults. Remove stale READYCI_API_URL or READYCI_PROJECT_ID values rather than duplicating them across commands.

Configuration is rejected

Unknown fields and invalid combinations fail fast.

  • Use version: 1 and .readyci.yml.
  • A check sets command or steps, never both.
  • sync.respect_gitignore cannot be false.
  • Allowlist entries require network.mode: allowlist.
  • network.warm_allowlist requires network.warm_mode: allowlist.
  • Service checks require Docker; every service requires a health command.
  • Artifact/cache paths must be safe workspace/home-relative paths.
  • Run readyci config validate after each edit and use the configuration reference for field constraints.

Unexpected files would upload

Stop before submission and run readyci sync --dry-run --json.

  • Check whether --changes working, staged, or all is appropriate.
  • Use --changes staged for a tracked index-only bundle; staged bundles always omit untracked files. Set sync.include_untracked: false when a working/all bundle must omit unrelated new files.
  • Add build output to .gitignore, .readyciignore, or sync.exclude.
  • Do not rely on excludes to hide tracked source from verification policy; an independently registered policy owns authoritative source filtering.

.env*, .git, and known dependency/build directories receive built-in protection, but preview remains the source of truth.

A changed file selects no check

This is a coverage problem, not a successful no-op.

readyci affected explain --why-not path/to/file
readyci affected audit --strict --examples --duplicates

Add a precise rule, a deliberate comprehensive unmatched_checks fallback, or an audit_ignore only when the tracked path truly requires no check. Add an affected.tests fixture so the decision cannot regress.

A run remains queued

Inspect readyci runs status RUN_ID and readyci doctor --check NAME --json. Common causes are:

  • account concurrency or machine-time limits;
  • no fresh worker in the requested region (a region with no registered worker is rejected at creation with request_invalid instead of queueing; a session whose sealed region loses its workers before a later node starts is blocked with precondition_failed);
  • unsupported runner size or image;
  • Docker/service capability unavailable;
  • worker-selector labels that no fresh worker satisfies;
  • a concurrency group already at its limit;
  • billing hold or disabled project/team.

Changing requirements creates different work; do not silently widen region, network, image, or worker selection just to make the queue move.

Dependency installation or network access fails

Check the resolved network_mode in the dry-run plan and diagnosis.

  • Verification defaults to no network.
  • Put dependency download in an explicit warm check.
  • Use network.warm_mode: allowlist with every required registry/artifact host.
  • Include lockfiles in cache.key_files. Ready CI already places pnpm, npm, Cargo and other supported tool caches under /cache; use cache.paths for additional project caches.
  • Do not switch verification to unrestricted default network unless the contract intentionally requires it and policy allows it.

Inspect the observed error before changing network permissions. For example, Playwright downloads browser assets separately from package installation. A failed browser download can be dependency_download_failed even when package installation succeeded. Review the download endpoint, redirects, DNS/TLS, and the check's explicit network requirements before retrying the same check. Download inference uses the final observed execution phase and step. A recovered error in an earlier preparation phase or step does not replace a later code failure; the earlier output remains available for inspection.

ENOTFOUND establishes a name-resolution failure; it does not establish which allowlist, DNS, or upstream service caused it. Ready CI uses network_not_allowed when there is network-policy evidence or a required download failed with network_mode: none. It does not automatically add hosts or widen policy. When a failed or timed-out run with network_mode: none or allowlist logs a resolution or reachability failure naming a public host outside its allowlist, readyci agent explain adds a network_policy warning that names up to three such hosts and suggests the allowlist or dependency-preparation change. The warning is secondary: it keeps the recorded classification and does not prove that the host caused the failure.

A successful standalone readyci warm --skip-confirm does not bind a later readyci check --skip-warm to its worker or cache lane. Compare spec.cache_lane_id and summary.worker_id in readyci runs status --json RUN_ID for both runs. A different offline lane may lack dependency metadata even if the warm run reported every package reused. For example, pnpm can stall fetching registry metadata during lockfile policy verification before any tests start; repeated EAI_AGAIN messages alone do not establish an upstream registry outage.

Use readyci check CHECK_NAME with automatic preparation so the service binds the check to its successful prerequisite's exact cache lane. Select a component installer with checks.<name>.dependency_check when the project has different web and Rust upload scopes. Give each installer the source inputs its commands need. An installer may exclude large assets retained by its consumers, but a web-only scope cannot run cargo fetch over excluded Rust workspace members. Ready CI derives and validates both views from one complete uploaded snapshot while preserving the prepared cache binding. If an older CLI still reports a dependency/consumer sync-settings conflict, update it. See the configuration example. Do not bypass preparation with --skip-warm or enable network during tests to hide an unprepared cache. Cancellation before tests remains cancellation and does not establish a test failure.

Use readyci agent explain RUN_ID or readyci runs logs --summary RUN_ID for the failure and bounded evidence. Named pytest failures take priority over incidental warning locations. Warnings remain available as evidence, including warnings that pytest treats as errors. A stronger observed failure can refine an older stored warning summary for display; the recorded classification, process exit code, and verification outcome remain unchanged.

Docker or a service does not start

Use readyci doctor --check NAME --json and confirm:

  • the check has docker: true;
  • every attached service name exists;
  • a generic service image is preloaded on eligible workers;
  • ports use PORT/tcp or PORT/udp;
  • the health command works from the runner and its timeout is sufficient;
  • service logs are configured for post-failure evidence.

Ready CI does not pull arbitrary service images during a run.

A check failed

Run:

readyci runs explain --json RUN_ID
readyci runs logs --summary RUN_ID
readyci runs logs --tail 200 --errors-only RUN_ID

Use classification, failure_summary, primary_file, matched evidence, and repair hints before reading full logs. Fix deterministic test/lint/type/build failures before retrying. Use a session retry only for a retryable environment or platform failure.

environment_setup_failed means explicit command output identified an unmet runtime, toolchain, platform, or filesystem prerequisite. Check exact runtime versions, required executables and preparation PATH, supported operating systems, and temporary-file filesystem requirements. For storage exhaustion, inspect available bytes and inodes on the filesystem containing the failed path rather than assuming a persistent cache is full. Repair preparation or select a compatible runner before rerunning the same scope. This classification does not change the terminal status or exit code, and does not prove an application assertion failed. A Direct IO error establishes the failed operation; inspect the actual filesystem before attributing it to a mount type. It also covers a test command that exits on its own missing environment configuration, such as FATAL: DATABASE_URL must be configured, before reporting any failed test. Supply that variable through the check, an attached service, or project secrets. A failed test that only mentions a variable remains test_failed.

readyci agent explain RUN_ID shows the failing test, a file to investigate, classification confidence, evidence snippets, and artifact preview commands when available. The file is an investigation starting point, not a proven defect location. Confidence describes the failure classification; the JSON repair packet's root_cause describes the failure category rather than a diagnosed source-code defect. Use full logs when the supplied evidence is insufficient. Missing artifact access and truncated logs are reported explicitly.

When the guest agent disappears before reporting command completion, inspect runtime_diagnostics in readyci agent explain --json RUN_ID, or the runtime_diagnostics event in readyci runs logs --json RUN_ID. The bounded snapshot contains redacted serial/Firecracker log tails, launcher observations, run-specific host VM counters and explicit unavailable/truncated fields. Snapshots are captured before the runtime files are deleted and delivered with a short independent timeout. Delivery remains best-effort if the API is unavailable. Diagnostic bytes follow the ordinary 30-day log retention window. An EOF or host VM counter alone does not establish a guest OOM, an application failure, or an observed guest command exit.

Checks passed but the exit code is 6

Exit 6 means the result is not authoritative proof. Inspect verdict, classification, coverage, plan.authority, and currentness.

  • client_proposed_plan: activate reviewed registered policy if authoritative verification is required.
  • partial_verification: rerun without a narrowing --check.
  • harness_gap: add affected coverage for the reported files, then have an owner or admin review and activate the revision in Settings → Verification policy. Rerunning alone cannot close a gap in registered policy.
  • untrusted_execution_evidence: use a production-approved worker/evidence path; rerunning the same untrusted setup cannot upgrade it.
  • stale: rerun against the current workspace.

The human-readable verification summary displays currentness, the terminal reason, up to ten uncovered files, and recovery guidance. A recorded verified verdict with currentness: stale still exits 6: the result describes an earlier snapshot. Partial verification suggests a fresh affected run without --check; policy and evidence gaps explain the required setup change instead of suggesting an ineffective retry. A stale result that also failed or was blocked directs you to inspect and address the recorded problem first. Recovery commands are only suggested when the saved recipe passes the same validation as sessions rerun; otherwise, start a new verification with explicitly reviewed settings. JSON retains the complete coverage and authoritative session fields.

Do not coerce exit 6 to zero in automation.

The terminal was interrupted or disconnected

Foreground verify attempts to cancel on the first signal and prints recovery commands. If the connection disappeared, use the known session ID:

readyci sessions get --json SESSION_ID
readyci sessions watch --json SESSION_ID

If only an idempotency key is known, use readyci runs latest --by-idempotency-key KEY --json. Reuse the same idempotency key instead of creating duplicate work.

Artifacts are missing or will not apply

  • Inspect runs tests --json RUN_ID for collection omissions. Reports may have been emitted but omitted at the collection limit; partial retained counts do not describe the complete test run. Downloaded archives include .readyci/artifact-retention.json with the bounded omission details.
  • When selected artifacts exceed the bundle limit, an otherwise successful run fails as artifact_limit_exceeded / reduce_scope. Inspect the omission metadata, then narrow the artifact paths or compress the selected output rather than retrying the same selection. Workspace source-upload limits remain sync_too_large; bounded test-index truncation does not mean the retained raw artifacts were lost.
  • Confirm artifacts.paths, check-level artifact_paths, or outputs.reviewable in the dry-run plan.
  • A missing configured path is ignored and should produce a warning after the run; it does not create an empty archive entry.
  • Check the artifact retention expiry and project scope.
  • Run artifacts apply ... --dry-run --json with at least one --paths pattern.
  • Use --allow-empty only when an empty selection is genuinely acceptable.
  • Resolve local edits in destination paths before --confirm.

Cache changes do not take effect

Ensure the relevant lockfile/toolchain file appears in cache.key_files and the actual package/build store appears in cache.paths. readyci cache ls shows lanes; purge is a last resort after confirming the project because it discards reusable state and makes the next warm run rebuild it.

Billing or quota prevents runs

Run readyci usage --json, then open Dashboard → Usage & billing for the signed- in team. A project query parameter does not retarget checkout to another team. Resolve expired subscription, billing hold, concurrent-slot saturation, monthly machine time, or cache quota as reported; these are not worker failures.

Report a product problem

Use:

readyci feedback --run RUN_ID --category bug --message "What happened"

Add --include-logs only after reviewing the run content. For security issues, use security@readyci.com or the published /.well-known/security.txt, not the general feedback path.