Hey team — wanted to flag a bug I hit migrating from Appwrite Cloud (FRA region, legacy DB) to self-hosted 1.9.0. It fails silently with no useful log/UI feedback so it's easy to miss. Patch inline.
Worth noting upfront: I kept the same project ID on both the Cloud project and the new self-hosted project (so any data referencing my user ID and other resource IDs would resolve cleanly).
Migration completes in <1s with statusCounters={} and errors=[] — but 0 databases come through, even though Users/Files/Functions/Messages all migrate fine.
Root cause: Migrations.php:243 hardcodes SourceAppwrite::SOURCE_DATABASE which makes the source's database reader read from the LOCAL project DB (via $projectDB) instead of via the Cloud API. Because I kept the same project ID, the local lookup hits my freshly-created self-hosted project — which is empty for databases — so the reader correctly returns 0 rows from the local DB and the migration finishes "successfully" with nothing transferred.
Users/messages/etc. don't go through the reader (they use SDK clients bound to the Cloud endpoint), which is why they migrate fine — and why this bug is database-specific and very confusing.
Fix in src/Appwrite/Platform/Workers/Migrations.php:
- SourceAppwrite::SOURCE_DATABASE,
+ SourceAppwrite::SOURCE_API,
After applying this, my migration succeeded cleanly: 1 database / 3 tables / 21 columns / 1223 rows, 0 errors.
Thanks for Appwrite guys !
Recommended threads
- Redis with user/pass doesn't work NO_AUT...
When trying to externalize my redis to a valkey server, i saw the user/pass doesn't work. After looking the appwrite code, i saw some of the init does not pass...
- Export, Import or Migration giving this ...
As you can see in yhe screenshot i am not able to export any data or export the data from tables. Also it is affecting the migration from appwrite to appwrite h...
- local (self-hosted) sites issues
setup: - `composer run installer:dev` issues - Getting error when visiting the site ```Synchronous function execution timed out. Use asynchronous execution in...