5.9 KiB
Verified plugin fleet installation
Use only the installer and JARs emitted together by canonical plugin CI. This installer is for existing servers, not bootstrap provisioning. It never discovers or guesses server paths, assigns plugins to a server, removes unrelated backends, deploys website files, or downloads third-party dependencies.
The coordinator supplies an independently verified inventory JSON. Each servers entry requires id, absolute root, existing serviceUnit, and an explicit list of artifact filenames from release-manifest.json. Do not populate these from historical example paths. DuneMenus requires JARVIS, DunerealmsGUI and the existing MCGUI runtime; DuneNPC is retained.
Inventory must explicitly set "mode": "gui-preserve-backends". This release ships only DuneMenus.jar, DunerealmsGUI.jar, DuneRealms-NPC.jar and DuneRealms-Lobby.jar; select Lobby only on the lobby server. The installer rejects incoming JARVIS, Essentials, Core or Terrain. CI still compiles/tests their source, but those binaries are excluded from this GUI artifact. Retained JARVIS/Core/Essentials must match independently reviewed live hashes in preserved-backend-abi.json. Planning checks actual frontend method/field descriptors against those retained JARs, including reflective HouseBridge calls. Their bytes and current UID/GID/mode are checked again before installation and restart. The existing backend remains authoritative for transactions and permissions.
First run a read-only plan with --artifacts, --inventory, and --expected-source set to the exact CI source SHA. Apply that same inventory with --apply --backup-root only through the authorised host deployment entry point. No SSH implementation is embedded in this tool.
All artifacts, descriptors, installed-file snapshots and backups are verified. Services must be fully stopped before JAR replacement; active services restart afterward, previously stopped services remain stopped. Old filenames are replaced by actual plugin identity. On an installation/start failure, original bytes and filenames are restored after verifying the service is stopped, and a rollback receipt is retained. A rollback that cannot stop the service halts without replacing active JARs. A multi-server failure may leave earlier servers installed; inspect each receipt.
An installed-service-active receipt proves file installation and systemd state only. It does not prove Minecraft finished loading or an NPC interaction worked. Verify server logs, enabled versions, resource-pack publication/configuration, actual GUI/NPC actions and retained progression separately before reporting rollout complete. Resource-pack publication uses the separate built publisher; required menu configuration is verified and managed by this installer as described in MENU-PACK-ROLLOUT.md.
A missing existing MCGUI runtime may be staged privately by the authorised coordinator. Inventory privatePrerequisites.MCGUI requires an absolute path and the reviewed SHA-256 69a454291cc27c36cdbc680bfbde245a90a3913de53cc1591c502a5a49124300; the server entry must explicitly list prerequisites: ["MCGUI"]. The installer verifies plugin name MCGUI, version0.8.6 and main ai.resourcepack.ui.MCGUIPlugin before including those privately staged bytes. They are never added to the public source/release artifact. Unknown private prerequisites or different bytes/identities fail planning. The private runtime's installation and rollback follow the same stopped-service, backup and checksum path as first-party JARs.
For unified central-pack releases, inventory menuPack.url is mandatory even when selecting only DunerealmsGUI.jar, and actual public bytes must match the built complete pack. Owned config bytes are hashed, backed up and restored with JAR rollback; existing unmanaged config fails closed. The current installer manages exactly four server.properties keys: resource-pack, resource-pack-sha1, resource-pack-id and require-resource-pack. Every other semantic property is preserved. Receipt3 backs up the original properties bytes and UID/GID/mode; rollback refuses unknown later semantic changes and restores the original backup. Paper may rewrite its generated comment timestamp during startup, so full-file byte equality after restart is not an acceptance claim. Legacy stacked releases do not request these property changes. See MENU-PACK-ROLLOUT.md and CENTRAL-PACK-INTEGRATION.md for the current persistent publication and runtime contracts.
Rollback after application readiness failure
Systemd active is insufficient: check Paper startup and plugin readiness before proceeding beyond a canary. To restore a selected receipt after an application-level failure, use the same built tools:
python3 install-plugin-fleet.py --rollback-receipt /verified/backup/receipt.json --expected-source EXACT_40_CHARACTER_SOURCE_SHA
# Review the plan, then repeat with --apply.
Current version3 receipts capture original filenames, hashes, UID/GID/mode, owned configuration bytes/metadata, optional four-key server-properties changes/backups and whether the service was active. Version2 receipts remain supported for the previous stacked release without a server-properties change. Rollback verifies backups and refuses to overwrite later unknown changes before stopping anything. It restores original metadata exactly and restarts only an originally active service. An already restored receipt is idempotent. Minecraft readiness still needs independent verification.
Legacy receipts lacking ownership/state require explicitly verified --legacy-owner UID:GID --legacy-was-active yes|no; never infer historical ownership from a backup copied as root. For the already recovered e19 lobby canary, the coordinator independently verified current restored JAR metadata as UID988/GID988/mode0644 and original active state. Original owner metadata was not captured in that legacy receipt. These facts do not authorise applying guessed values to other receipts.

Staff