Workers SDK Issue Reports

← Back to Dashboard

#6953 Wrangler error deploying Platform Worker updates with DO migrations

Recommendation:CLOSE
Difficulty:n/a
Reasoning:

Fixed in PR #7011 (wrangler 3.83.0) on 2024-10-23, 12 days after issue reported. getMigrationsToUpload now handles dispatch namespaces correctly.

Suggested Action:

Close with comment explaining fix is available in 3.83.0+

Analysis Report

Issue Review: cloudflare/workers-sdk#6953

Summary

Wrangler fails to deploy Platform Worker updates with DO migrations, erroring with "Migration tag precondition failed" on second deploy.

Findings

  • Created: 2024-10-11
  • Updated: 2025-10-30
  • Version: 3.80.4 (reported) → 4.60.0 (current)
  • Component: Wrangler (Workers for Platforms / Durable Objects)
  • Labels: bug
  • Comments: 1 (maintainer suggested duplicate)

Key Evidence

  1. Fix Already Merged: PR #7011 "Correctly apply Durable Object migrations for namespaced scripts" was merged on 2024-10-23, 12 days after this issue was reported.

  2. Released in 3.83.0: The fix was included in wrangler 3.83.0 as a patch change:

    fix: Correctly apply Durable Object migrations for namespaced scripts

  3. Root Cause Addressed: The fix modified getMigrationsToUpload in src/durable.ts to correctly handle dispatchNamespace when querying for the current migration tag. Previously, it was not aware of dispatch namespaces and would fail to find the script's current migration tag.

  4. Related Issue Closed: Issue #6354 "getMigrationsToUpload is not aware of dispatch namespaces" was closed by PR #7011 - this is the exact same underlying bug.

Recommendation

Status: CLOSE

Reasoning: This issue was fixed by PR #7011, released in wrangler 3.83.0 on 2024-10-23. The reporter was using 3.80.4, and the current version is 4.60.0. The fix has been available for over a year. A maintainer (GregBrimble) already noted this as a possible duplicate of #6354, which was fixed by this same PR.

Action: Close as fixed, referencing PR #7011 and wrangler 3.83.0.

Suggested Comment

This issue was fixed in wrangler 3.83.0 via PR #7011 (which also closed the related issue #6354). The fix ensures that getMigrationsToUpload correctly queries for migration tags when deploying to dispatch namespaces.

Please upgrade to wrangler 3.83.0 or later (current version is 4.60.0) to resolve this issue. If you're still experiencing problems after upgrading, please let us know and we can reopen.

Notes & Feedback (0)

No notes yet.

Add Note