muster explain

muster explain

Explain why a deploy, rollback or health check failed, and what to do next.

Synopsis

Terminal
muster explain [service] [flags]

Description

It works offline: the newest log is matched against a fixed table of known problems (port in use, image pull errors, timeouts, SSH host keys and so on). Fixes are built only from validated values and run only after you confirm.

Flags

Targets

FlagDescription
(none), --lastThe most recent failure in this project.
<service>The newest deploy or rollback log for a service.
--log FILEAny log file (works outside a project too).

Options

FlagDescription
--jsonMachine-readable output.
--fixOffer to run the suggested fix.
--yesWith --fix: run it without asking.
--exit-code NExit code of the failed hook (improves matching).
--rulesList every known problem pattern.
-h, --helpShow help.

Examples

Terminal
muster explain                  # why did the last deploy fail?
muster explain api              # explain api's newest log
muster explain --log build.log  # explain any log file
muster explain --fix            # explain, then offer the one-key fix

Exit codes and JSON

--json returns the matched rule under hint, next to service, action, exit_code, log and matched. The alias muster why does the same.