Migration Failed from 1.7.4 β 1.8.1: "Collection not found" error on sites collection
- 0
- Self Hosted
- Sites
- General
Hey everyone! π
I'm trying to upgrade my self-hosted Appwrite from 1.7.4 to 1.8.1 and the migration is consistently failing
Environment:
- Current version: 1.7.4
- Target version: 1.8.1
- Deployment: Self-hosted on Dokploy (modified docker-compose)
- Database: MariaDB 10.11
The Error: Migration fails during document migration phase with:
Failed to migrate project with error: Collection not found
[Error] Type: Utopia\Database\Exception\NotFound
[Error] Message: Collection not found
[Error] File: /usr/src/code/vendor/utopia-php/database/src/Database/Database.php
[Error] Line: 7225
The error occurs in Migration.php(178) β V23.php(63) when trying to process the sites collection.
What I Found:
- β
Sites collection exists globally:
_8_sitestable present in MariaDB - β
Sites metadata is properly defined in
_8__metadata - β The sites table is empty (0 records) - I never used the sites feature
- β All other collections migrated successfully (databases, users, buckets, etc.)
- β Migration script tries to iterate over project-level sites documents that don't exist
- β Error happens in the
foreach('sites', ...)call
What Works:
- All my actual data (collections, documents, buckets) migrated successfully
- Rolling back to 1.7.4 works fine with the partially migrated database
- The only failure is on the sites collection (a new 1.8.x feature I never used)
Questions:
- Has anyone else hit this migrating from 1.7.4 β 1.8.1?
- Is there a workaround for the sites collection migration issue?
- Should I upgrade through intermediate versions (1.7.5, 1.8.0) if they exist?
- Is this a known bug that might be fixed in 1.8.2?
Attempted Solutions:
- Running migrate multiple times (same error every time)
- Manually updating version flag to 1.8.1 (caused additional internalId attribute errors)
- Verified sites collection exists and is properly defined, just the migration logic fails on empty collection
Any help appreciated!
Recommended threads
- Method EQUAL not wrking in REST API Quer...
Request: β¨``` postman request 'https://nyc.cloud.appwrite.io/v1/tablesdb/{databaseId}/tables/{tableId}/rows?queries[]={%22method%22%3A%22select%22%2C%22values%2...
- OIDC not working on Appwrite cloud
tl;dr: same project settings, same OIDC credentials. Auth works on self hosted but not in cloud. I have a project in my self hosted instance with a single web ...
- Is it possible to deploy pre-built Nuxt ...
Hi, is it possible to only deploy the ./.output folder of a Nuxt App that uses server side routes to Appwrite Sites? Background is that the build produced ...