Skip to content
Back

Error during migration

  • 1
  • Self Hosted
Amberon
25 Jun, 2025, 19:40

my current appwrite version is 1.7.0, and i want to upgrade it to the latest version 1.7.4, since i am experiencing an issue where my appwrite console is not opening and it seems to be fixed in 1.7.4 but i get error when running docker compose exec appwrite migrate this is the error

TypeScript
.......
Migrating documents for collection "devKeys"
Migrating documents for collection "webhooks"
Migrating documents for collection "certificates"
Migrating documents for collection "realtime"
Migrating documents for collection "rules"
Project "console" not found for rule "66565e012432595fd059"
Failed to update document "66565e012432595fd059" in collection "rules":Invalid document structure: Unknown attribute: "region"
Failed to update document "6671c437c7f4b4e3a2c3" in collection "rules":Invalid document structure: Unknown attribute: "region"
Failed to update document "66782daf73ac6d5583a1" in collection "rules":Invalid document structure: Unknown attribute: "region"
Failed to update document "6678492d73470ad0bc2a" in collection "rules":Invalid document structure: Unknown attribute: "region"
Failed to update document "66bfbca15f769a4081c0" in collection "rules":Invalid document structure: Unknown attribute: "region"
Migrating documents for collection "installations"
Migrating documents for collection "repositories"
Migrating documents for collection "vcsComments"
Migrating documents for collection "vcsCommentLocks"
Migrating documents for collection "cache"
Migrating documents for collection "users"
Migrating documents for collection "tokens"
Migrating documents for collection "authenticators"
Migrating documents for collection "challenges"
Migrating documents for collection "sessions"
Migrating documents for collection "identities"
Migrating documents for collection "teams"
......

i am safely able to upgrade to 1.7.2, but after that at 1.7.3 and 1.7.4 i get this migration error. and my applications stop working and opening

TL;DR
Developers experiencing migration errors when upgrading Appwrite from version 1.7.2 to 1.7.4 due to invalid document structure. The error specifically mentions an unknown attribute "region" causing the migration to fail for collections such as "rules." This results in applications becoming unresponsive. A potential solution would be to perform a manual migration by adjusting the document structure to include the required attribute "region" to successfully update the documents and allow the upgrade to proceed without issues.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more