mesa-doc
/mesa-pro/docs/runbook
docs
Support runbook (shape)
License
| symptom | check | action |
|---|
LICENSE_REQUIRED | MESA_LICENSE_FILE set? | set path; license is a file, not env content |
LICENSE_INVALID | modu license verify <file> --json | check expiry/public key/customer signature |
PLUGIN_NOT_LICENSED | limits.plugins + docs/plans.md | reissue with the right preset/plugin |
| project quota | limits.projects | raise quota in a new license |
Base CLI / contracts
| symptom | check | action |
|---|
MODU_NOT_FOUND | MESA_MODU_BIN/PATH | point to built base CLI |
| contracts mismatch | modu contract --json | install pinned release; rebuild base contracts in dev |
| e2e contract import fails | contracts dist built? | npm -w @modu/contracts run build in base |
MCP
| symptom | check | action |
|---|
APPLY_DISABLED | MESA_MCP_ALLOW_APPLY | set only after explicit confirmation |
| tool missing | license plugin | reissue or use tools/list |
| stdio invalid | stdout pollution | diagnostics must go to stderr |
Control plane
| symptom | check | action |
|---|
UNAUTHORIZED from client | token in MESA_CONTROL_PLANE_TOKEN matches an enabled row | mesa-control-plane token issue --license-serial <serial>; rotate with token disable --token <raw> then reissue |
QUOTA_EXCEEDED but customer says quota was raised | license in CP still has old limits_json | re-import the new license (license import); serial must match |
SYNC_UNAVAILABLE on every create | server down / TLS / port | mesa-control-plane health; check reverse proxy; creation stays blocked (fail closed), reads unaffected |
LICENSE_REVOKED after revocation was meant to be lifted | revocation is explicit | import a new serial; re-import of a revoked serial is refused by design |
| cache/server drift | mesa-project reconcile | read-only report; fix by releasing/re-reserving, never by hand-editing the registry |
| disk full / corrupt DB | server refuses to start (fail closed) | restore from backup: stop server, cp backup.db control.db (+ -wal/-shm removed), health to verify |
Ops drills:
- Backup:
mesa-control-plane backup --out /var/backups/control-$(date +%F).db (online, cronable). - Restore drill (quarterly): stop serve → replace db from backup → start serve →
health
shows expected license/project counts → one mesa-project create against a scratch license. - Token rotation:
token issue (new token) → update client env → verify entitlements →
token disable --token <old raw> (sha256 accepted too). - Clock: expiry is judged by the server clock (UTC ISO). Keep NTP on the host; a small skew is
tolerated only in the sense that expiry flips exactly at the stored
expires_at.
Connectors
| symptom | check | action |
|---|
PLUGIN_NOT_LICENSED | datasource.<kind> | issue per-kind grant |
| connector refuses | manifest plugin/kind | fix manifest; base modu connector validate |
| upstream down | mesa-datasource health | check connector process/upstream; no write fallback |
Escalation: capture pro-release.json, license customer/limits (never signature contents), base
modu contract --json, and the exact failing command; do not paste private keys.
源文件 · mesa-pro/docs/runbook.md