#Failed migration 1.3 > 1.5

18 messages · Page 1 of 1 (latest)

mental moat
#
❯ docker compose -f appwrite.yml --env-file appwrite.env exec appwrite migrate
Migrated 1/3 projects...
Failed to update project ("abc") version with error: Utopia\DSN\DSN::__construct(): Argument #1 ($dsn) must be of type string, null given, called in /usr/src/code/app/cli.php on line 103
❯ docker logs appwrite-task-maintenance
Appwrite maintenance process v1 has started
[2024-06-01 16:42:39.720] Notifying workers with maintenance tasks every 86400 seconds
Filter not found
limpid turret
mental moat
#

No, 1.3 to 1.5

grave thistle
grave thistle
#

You need to go through intermediate versions

limpid turret
mental moat
#

Thanks

#

Trying that now, getting this, 1.3 > 1.4:

Migrating Domains
Error migrating domain mydomain.com: Missing projectId or projectInternalId
2 / 2
Error migrating domain mydomain.com: Duplicated document: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'mydomain.com' for key '_key_domain'
Migrating Buckets
1 / 1
Migrating Bucket bucket_1 default (Default)
'bucketInternalId' from bucket_1: Attribute already exists
Migrating Documents
Migrating Collection projects:
2 / 2
Migrating Collection schedules:
0 / 0
Migrating Collection platforms:
2 / 2
Migrating Collection keys:
1 / 1
Migrating Collection webhooks:
0 / 0
Migrating Collection certificates:
1 / 1
Migrating Collection realtime:
1 / 1
Migrating Collection rules:
2 / 2
Migrating Collection installations:
0 / 0
Migrating Collection repositories:
0 / 0
Migrating Collection vcsComments:
0 / 0
Migrating Collection vcsCommentLocks:
0 / 0
Migrating Collection users:

Fatal error: Uncaught Utopia\Database\Exception: Filter not found in /usr/src/code/vendor/utopia-php/database/src/Database/Database.php:4760
Stack trace:
#0 /usr/src/code/vendor/utopia-php/database/src/Database/Database.php(4633): Utopia\Database\Database->decodeAttribute('subQueryTargets', NULL, Object(Utopia\Database\Document))
#1 /usr/src/code/vendor/utopia-php/database/src/Database/Database.php(4366): Utopia\Database\Database->decode(Object(Utopia\Database\Document), Object(Utopia\Database\Document), Array)
#2 /usr/src/code/src/Appwrite/Migration/Migration.php(217): Utopia\Database\Database->find(Object(Utopia\Database\Document), Array)
#3 /usr/src/code/src/Appwrite/Migration/Version/V19.php(820): Appwrite\Migration\Migration->documentsIterator('users')
#4 {main}
  thrown in /usr/src/code/vendor/utopia-php/database/src/Database/Database.php on line 4760
grave thistle
#

Were you in the latest 1.3.x version?

mental moat
#

Latest 1.4

#

I'm using tag 1.4

grave thistle
#

And in what 1.3.x version you were at?

mental moat
#

latest 1.3

mental moat
#

Going back to 1.3:

Fatal error: Uncaught Exception: Filter not found in /usr/src/code/vendor/utopia-php/database/src/Database/Database.php:4221
Stack trace:
#0 /usr/src/code/vendor/utopia-php/database/src/Database/Database.php(4106): Utopia\Database\Database->decodeAttribute('userSearch', '6452bdfc8e41140...', Object(Utopia\Database\Document))
#1 /usr/src/code/vendor/utopia-php/database/src/Database/Database.php(3767): Utopia\Database\Database->decode(Object(Utopia\Database\Document), Object(Utopia\Database\Document), Array)
#2 /usr/src/code/src/Appwrite/Migration/Migration.php(186): Utopia\Database\Database->find(Object(Utopia\Database\Document), Array)
#3 /usr/src/code/src/Appwrite/Migration/Migration.php(143): Appwrite\Migration\Migration->documentsIterator('users')
#4 {main}
  thrown in /usr/src/code/vendor/utopia-php/database/src/Database/Database.php on line 4221
grave thistle
mental moat
#

I don't have a backup, I'm deleting everything and starting from scratch.

#

Deleted appwrite database and started again from 1.5, but I'm getting this: Tables not ready yet. Console is not ready yet. Please try again later.