Description
Summary
void platform upgrade <installation> --yes on void@1.10.0 (upgrading from 1.9.1) failed during the Worker cutover with:
platform: Worker void-platform-tail changed concurrently after activation; refusing to overwrite the newer deployment.
Nothing else had deployed to that Worker. Every deployment entry on the platform Workers that day was a Void platform activation … or Void platform restoration … written by these CLI runs. The upgrade stopped mid-cutover, and the hosted applications answered 503 until the upgrade was re-run. The CLI's own recovery command (void platform upgrade <installation> --yes) failed once more the same way, on the api Worker this time, and then completed on the second retry. The applications were unavailable for about 12 minutes in total.
Where it comes from
In dist/platform-lifecycle-*.mjs (1.10.0), the activation path runs versions.deploy for the new version and then reads the deployment list once:
const deploymentsAfterActivation = await readPlatformWorkerDeployments(...);
const lineage = classifyPlatformWorkerDeploymentLineage(deploymentsAfterActivation, uploadedVersionId, previousDeploymentId);
if (lineage.kind === "concurrent-after") { ... throw new Error(`... changed concurrently after activation ...`) }classifyPlatformWorkerDeploymentLineage returns concurrent-after whenever deployments[0] does not yet run only the uploaded version at 100%. The deployments list is read immediately after versions.deploy, so a read that is stale for a moment (the new deployment not yet listed first) looks the same as a real concurrent deployment. A later read of the same Worker's deployment history showed the activation as expected, with no foreign deployment.
Expected
Treat a stale read as a transient condition and do not abort the cutover over it. For example:
- Re-read the deployment list a few times with a short backoff while
deployments[0]is still the previous deployment (previousDeploymentId). Throwconcurrent-afteronly when the head is a deployment that is neither the previous one nor the new one. - Optionally, look the new deployment up by the id or message returned from
versions.deployinstead of relying on list order.
Environment
void@1.10.0CLI (Windows 11, Node 26), hosted platform installation upgraded from1.9.1,--storage-location apac.- It happened twice in a row on two different platform Workers (tail, then api), and the third run succeeded with nothing changed in between. That points to a read-after-write timing window rather than a real concurrent deployer.
Happy to provide timestamps or a redacted CLI stream if useful.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
Retry stale deployment reads after platform activation, closes voidze…
fix: pre-release audit findings since v1.10.0 (#874)
fix(platform): name the failing credential in deploy, repair and upgr…
chore: wait for a lagging Cloudflare Worker version list during deploy (