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
| Flag | Description |
|---|---|
(none), --last | The most recent failure in this project. |
<service> | The newest deploy or rollback log for a service. |
--log FILE | Any log file (works outside a project too). |
Options
| Flag | Description |
|---|---|
--json | Machine-readable output. |
--fix | Offer to run the suggested fix. |
--yes | With --fix: run it without asking. |
--exit-code N | Exit code of the failed hook (improves matching). |
--rules | List every known problem pattern. |
-h, --help | Show 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 fixExit 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.