canasta list
canasta > list
canasta list
List all registered Canasta instances
Synopsis
Display all Canasta instances in the local registry.
With --cleanup, remove registry entries for instances whose directories are confirmed missing. Entries for hosts that are unreachable (DNS failure, SSH refused, etc.) are left alone — a transient network problem shouldn't cause entries to be silently dropped. Pass --force to remove unreachable entries too, or --dry-run to preview without removing anything.
The STATUS column reports what the orchestrator says about the web container: RUNNING, STOPPED, or UNHEALTHY when the container is crash-looping or failing its health check (canasta doctor -i <id> names the cause). It can read RUNNING while MediaWiki itself is failing. With --check-wikis, each wiki of every running instance is also probed over HTTP and annotated REACHABLE, NOT REACHABLE or UNKNOWN — the last meaning the instance's host could not be reached, so the wiki's state is unknown rather than known-bad. This costs one request per wiki, so it is off by default.
DB ACCOUNT MOVE PENDING after the status means MediaWiki still connects as the database administrator account (root on the bundled database), which canasta upgrade moves it off. An upgrade skips the move for an instance that is stopped, so start the instance and run canasta upgrade again to complete it. Setting CANASTA_DB_ROOT_ACCOUNT=true keeps the instance on the administrator account and clears the indicator.
canasta list [flags]
Examples
canasta list
canasta list --check-wikis
canasta list --cleanup
canasta list --cleanup --dry-run
canasta list --cleanup --force
Flags
| Flag | Shorthand | Description | Default | Required | Orchestrator |
|---|---|---|---|---|---|
--check-wikis |
Probe each wiki over HTTP and report whether it responds | Both | |||
--cleanup |
Remove stale entries whose directories are confirmed missing | Both | |||
--dry-run |
With --cleanup, print what would be removed without removing | Both | |||
--force |
-f |
With --cleanup, also remove entries for unreachable hosts | Both | ||
--host |
-H |
Filter output by host (default: all hosts) | Both |
Global flags
| Flag | Shorthand | Description | Default | Required | Orchestrator |
|---|---|---|---|---|---|
--help |
-h |
Show help message and exit | Both | ||
--verbose |
-v |
Enable verbose output | Both |