Skip to content

bug(cli): provisioning, acceptance and configuration-only failures hide their real cause #5172

Closed

Description

@tale-code-bot

Part of #4839 (split from it in task TALE-176).

Problem

#4839 addendum 4, defects 9 and 10, and addendum 5, defect 15. Paths are under tools/cli/src/lib/deployment/ unless noted.

# Defect Code What the operator sees
9 Configuration errors become a generic failure identity.ts:1070-1076 wraps the callback (tools/cli/src/commands/deploy/provision.ts:166) in a bare catch: :1073 } catch {, :1074 throw externalDepError('Native configuration provisioning failed.');. That replaces authored refusals operationalFailure keeps (tools/cli/src/commands/operational-failure.ts:31, :35): CliErrors (configuration.ts:42-43, configs.ts:39-40) and the ConfigError "release artifact checksum/size mismatch" (configs.ts:95, tools/cli/src/lib/config/releases/manifest.ts:167-169) Every configuration failure on the full provisioning path ends as "Native configuration provisioning failed.", exit code 5. Bundle deployment shows "… It reported: Native configuration provisioning failed. (exit 5)" (apply.ts:351, backend-cli.ts:89). The specific, safe reason is lost
10 The acceptance health check gives every failure one cause acceptance-health.ts:158 } catch { turns every failure into :160 "The declared origin did not prove the expected healthy serving version.", with no cause (:159-161). That covers DNS, TLS and connection errors (acceptance-request.ts:93), a non-200 answer (acceptance-request.ts:63-68; acceptance-health.ts:121-122), a bad identity (:123-128, :35), the 64 KiB bound (:137), decoding (:140-142), the 10 s timeout (:105-107) and an older version (:150-151 throw new Error('health version');) tale deploy accept (acceptance.ts:298) reports an origin that doesn't resolve like a version mismatch, exit code 5, with no Cause: line even with --verbose. The operator can't tell whether to fix DNS or certificates, or to wait for the rollout. The backend check (:153-156) checks no version but gets the same sentence
15 A configuration-only apply is refused in terms of credential export tale deploy --bundle <dir> --configuration-only calls observeReadyRuntime (apply.ts:722-724, :752), which runs observeReadyState (runtime-apply.ts:1415), written for export callers (:1412-1414). Six of its eight refusals name credential export (:1434, :1439, :1450, :1461, :1475, :1488), for example :1434 "Credential export requires the exact ready runtime receipt."; :1465 and :1495 are neutral An operator updating configuration on a drifted or not-ready runtime is told credential export failed, an operation they didn't run, exit code 3 (runtime-model.ts:182). Nothing helps them repair the runtime for the apply they started

Notes, all at 29e9445:

Expected

Regression:

Severity and owner

Activity

  1. added
    bug
    agent-ready
    on Oct 30, 2026
  2. added a commit that references this issue on Oct 31, 2026
    37a7e03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readybug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions