Skip to content

platform upgrade: post-activation lineage check fails on a stale deployments read ("changed concurrently after activation") #868

Closed

Description

@iPLAYCAFE-dev

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). Throw concurrent-after only 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.deploy instead of relying on list order.

Environment

  • void@1.10.0 CLI (Windows 11, Node 26), hosted platform installation upgraded from 1.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.

Activity

  1. added a commit that references this issue on Nov 18, 2026
    305661a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions