{"id":"6b0574239a23f6a45cb0dcce","title":"2026 11 23 Issue 424 Refuse To Deploy From An Out Of Date Copy Of The Environments","path":"how-to/committee/release-notes/2026-11-23-issue-424-refuse-to-deploy-from-an-out-of-date-copy-of-the-environments","contentMarkdown":"# 23-Nov-2026 — refuse to deploy from an out-of-date copy of the environments config [#424](https://github.com/Ramblers-GB/ngx-ramblers/issues/424)\n\n## [build 1116](https://github.com/Ramblers-GB/ngx-ramblers/actions/runs/45381659053) — [commit f8ceda6](https://github.com/Ramblers-GB/ngx-ramblers/commit/f8ceda6b5a61b3ad32dafd117604a07021f212d5)\n\n_____\n\n## Release notes\n\n- Deploys, health checks and command-line tools now stop with a clear message if they read the environments config from an old copy of the staging database, for example one left behind on a previous cluster after a move. Before, they carried on and gave sites whose database had since moved a database address that no longer exists, which took those sites offline.\n\n## Technical detail\n\n- `currentEnvironmentsConfig` checks that the config's own database is listed on the cluster it was read from (`staleEnvironmentsConfigReason`), and throws `StaleEnvironmentsConfigError` if it isn't. Both read paths use it: `loadFromDatabase` and the `server/.env` staging fallback (`environmentsConfigFromStagingDocument`). The error is rethrown rather than swallowed on both, so it stops deploy-to-environments before any site is touched, and the message names the cluster `MONGODB_URI` / `ADMIN_MONGODB_URI` should point at.\n- Specs cover a current config, a stale copy, databases the config does not list, and the staging fallback accepting a current copy, refusing a stale one and returning nothing when empty.","contentHtml":"<h1>23-Nov-2026 — refuse to deploy from an out-of-date copy of the environments config <a href=\"https://github.com/Ramblers-GB/ngx-ramblers/issues/424\">#424</a></h1>\n<h2><a href=\"https://github.com/Ramblers-GB/ngx-ramblers/actions/runs/45381659053\">build 1116</a> — <a href=\"https://github.com/Ramblers-GB/ngx-ramblers/commit/f8ceda6b5a61b3ad32dafd117604a07021f212d5\">commit f8ceda6</a></h2>\n<hr>\n<h2>Release notes</h2>\n<ul>\n<li>Deploys, health checks and command-line tools now stop with a clear message if they read the environments config from an old copy of the staging database, for example one left behind on a previous cluster after a move. Before, they carried on and gave sites whose database had since moved a database address that no longer exists, which took those sites offline.</li>\n</ul>\n<h2>Technical detail</h2>\n<ul>\n<li><code>currentEnvironmentsConfig</code> checks that the config&#39;s own database is listed on the cluster it was read from (<code>staleEnvironmentsConfigReason</code>), and throws <code>StaleEnvironmentsConfigError</code> if it isn&#39;t. Both read paths use it: <code>loadFromDatabase</code> and the <code>server/.env</code> staging fallback (<code>environmentsConfigFromStagingDocument</code>). The error is rethrown rather than swallowed on both, so it stops deploy-to-environments before any site is touched, and the message names the cluster <code>MONGODB_URI</code> / <code>ADMIN_MONGODB_URI</code> should point at.</li>\n<li>Specs cover a current config, a stale copy, databases the config does not list, and the staging fallback accepting a current copy, refusing a stale one and returning nothing when empty.</li>\n</ul>\n"}