Repository navigation
fix(install): name the failed preflight checks in the install error - #77
Merged
Merged
Conversation
Docker install preflight returned a bare "Installation preflight failed", so cli_operation telemetry (error + install.log tail from an earlier native install) could not tell which precondition blocked the reinstall. Six Windows install.ps1 reinstalls on v0.6.4 hit this on 2026-11-30. The error now lists every failed check with its detail, e.g. "Installation preflight failed: Target directory is not empty or unavailable (<dir>)". Passed checks are omitted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
lbctl install --driver dockerpreflight failures surface only asInstallation preflight failed/安装前置检查未通过. The failed check list exists in the result data, but the error message (and socli_operationtelemetryerror) doesn't name it. The telemetrydetails.logthen attaches the tail of an older nativeinstall.log, which is misleading.Stability patrol LANG-775 (2026-11-30): 6 Windows
install.ps1reinstalls on v0.6.4 (2 instances) failed preflight with only this generic text. In each case a previous install was still in the same directory or Compose project, but telemetry couldn't show which check failed.Fix
PreflightInstallnow builds the precondition error from every failed check's reason and detail. Passed checks are left out. CJK punctuation is converted to ASCII in English mode viai18n.Punct.错误:安装前置检查未通过:目标目录不为空或不可用(/path/inst)Error: Installation preflight failed: Target directory is not empty or unavailable (/path/inst)Paths still go through the existing telemetry identity sanitizer.
Tests
TestPreflightErrorNamesFailedChecks(non-empty dir + existing Compose project). It fails on master and passes with the fix.go test ./internal/deploy ./internal/app ./internal/i18n ./internal/telemetrypass.lbctl install --driver docker --dir <non-empty> --dry-run(zh and en) prints the messages shown above.🤖 Generated with Claude Code