deploy(prod): Overview 818775b3 installed on app-vp03/vp04 (:5320, PROD registry; 5 Up, mxgw vp04 down on #60, PAR mxgw not installed)

Claude-Session: https://claude.ai/code/session_01GT67AD5mc2BnaaAfY3hqqQ
This commit is contained in:
Joseph Doherty
2026-11-20 16:30:32 -05:00
parent 5e7bbc9144
commit 0a3c37ab8c
@@ -0,0 +1,67 @@
# 2026-11-20 PROD Overview dashboard install, build 818775b3 (plan Phase 8a)
Owner go: "setup the dashboard on the 2 central servers". Boxes: wonder-app-vp03 and wonder-app-vp04 only.
Driven from the Mac with the `winrm` CLI (profiles `vp03`, `vp04`, NAM\adm_dohertj2). Nothing else on the boxes was
touched: `ScadaBridge-Central`, `MxAccessGw` and their folders were not stopped or changed (another agent was working on
them at the same time). No firewall changes. No security-software alerts seen.
Plan: [`docs/plans/2026-11-19-prod-scadabridge-mxgw-install.md`](../plans/2026-11-19-prod-scadabridge-mxgw-install.md)
Phase 8a. Stage pack: `E:\psrem-stage\overview-818775b3\` (local copy
[`2026-11-19-prod-stage/overview/`](2026-11-19-prod-stage/overview/)).
## Pre-checks (both boxes, 21:27Z)
- Staged hashes match `SHA256SUMS.txt` and the local copies:
zip `25178C5C…1283DF`, `install-overview.ps1` `32D64D62…6BF5`, `appsettings.Prod.json` `3CED9601…482A`.
- No `ZbOverview` service, no `E:\ApiInstall\Overview`, nothing listening on 5320. PowerShell 5.1.20348.
## Run (UTC)
| Box | Dry run | Real run `-Mode real -Start` | Result |
|---|---|---|---|
| vp03 | 21:27:49Z, `DONE mode=dry`, 400 files, `dry\` removed | 21:28:01Z → 21:28:18Z | `service Running; /health/ready 200=True`, `DONE mode=real` |
| vp04 | 21:28:47Z, `DONE mode=dry`, 400 files, `dry\` removed | 21:28:58Z → 21:29:14Z | `service Running; /health/ready 200=True`, `DONE mode=real` |
**No patch needed.** The staged `install-overview.ps1` ran unchanged on both boxes under PS 5.1 with
`$ErrorActionPreference='Stop'`. `nssm`, `sc.exe` and `icacls` wrote nothing to stderr, so the PS 5.1 native-stderr
problem seen with the mxgw installer did not occur. There is no `.orig`.
## Verification (both boxes identical)
- Service `ZbOverview`: Running, StartMode Auto, account `NT SERVICE\ZbOverview`, `AppEnvironmentExtra` =
`ASPNETCORE_ENVIRONMENT=Prod`.
- `ZB.MOM.WW.Overview.exe` ProductVersion `1.0.0+818775b3115e341b1859dd9f5ed3e4c192bdc41f`.
- ACLs: `E:\ApiInstall\Overview` = `NT SERVICE\ZbOverview` (OI)(CI)(RX), Administrators F, SYSTEM F, CREATOR OWNER
(Users removed). `logs\` and `data\` add `NT SERVICE\ZbOverview` (OI)(CI)(M).
- Log `E:\ApiInstall\Overview\logs\overview-20261120.log`: `Now listening on: http://[::]:5320`,
`Hosting environment: Prod`. On vp04, one startup WRN: `last-poll-cycle-completed` Degraded, "No poll cycle has
completed yet". This is expected before the first poll, and `/health/ready` still returned 200. The log does not record
per-instance poll results, so the table below comes from the rendered page.
- From the Mac at 21:29:44Z: `http://wonder-app-vp03.zmr.zimmer.com:5320/health/ready` 200 and `/` 200;
same for vp04. The page is anonymous with no login. vp03 ready payload: `registry-loaded` "Watching 8 instance(s)
across 2 application(s)", `last-poll-cycle-completed` Healthy.
## What the dashboard shows (both boxes the same, 21:28:31Z on vp03 and 21:29:44Z on both)
Totals: **Up 5 · Degraded 0 · Down 1 · Unreachable 2 · Stale 0** (8 instances).
| App | Instance | Role | State | ready / active | Detail |
|---|---|---|---|---|---|
| ScadaBridge central | central-a (vp03) :8085 | Active | Up | 200 / 200 | 4/4 checks (akka-cluster, bundle-signing-policy, database, required-singletons); leader `akka.tcp://scadabridge@10.220.153.205:8081`, 2 members, 0 unreachable |
| ScadaBridge central | central-b (vp04) :8085 | Standby | Up | 200 / 503 | 4/4; self `…@10.220.153.210:8081` |
| ScadaBridge site | node-a (par-vp03) :8084 | Active | Up | 200 / 200 | 2/2 (akka-cluster, localdb); leader `…@10.201.75.86:8082`, 2 members, 0 unreachable |
| ScadaBridge site | node-b (par-vp04) :8084 | Standby | Up | 200 / 503 | 2/2; self `…@10.201.75.87:8082` |
| MxAccessGateway | vp03 :5130 | Active | Up | 200 / 200 | 3/3 (auth-store, galaxy-sql, worker-executable) |
| MxAccessGateway | vp04 :5130 | Active | **Down** | 503 / 200 | 2/3: `galaxy-sql` "Galaxy Repository SQL ping timed out after 5s" (expected: scadaproj#60) |
| MxAccessGateway | par-vp03 :5130 | ? | **Unreachable** | fail / — | "No connection could be made because the target [machine actively refused it]" (expected: not installed, plan Q3) |
| MxAccessGateway | par-vp04 :5130 | ? | **Unreachable** | fail / — | same as par-vp03 |
Every instance matches what we expected; nothing else is Down. The centrals reach the PAR boxes on 8084
(10.220.153.x → 10.201.75.x, 23–33 ms). On 5130 the PAR boxes actively refuse the connection, which means the
connection reaches the host and there is no listener. It does not look like a firewall drop, which would time out
instead. 5130 can only be proven reachable once mxgw is installed there. The Leader chips show raw Akka IP addresses, as
designed for build 818775b3 with FQDN BaseUrls.
## Rollback (if ever needed)
`nssm stop ZbOverview`, `nssm remove ZbOverview confirm`, delete `E:\ApiInstall\Overview`. Nothing else depends on it.