Back

[SOLVED] Database problems after upgrade

  • 0
  • Self Hosted
  • Databases
eroo36
3 Jul, 2023, 12:23

Hello, i recently upgraded appwrite to the master branch. I was using self built image for a custom oauth2 provider and self hosting. After building a new image from master branch i also ran migration command: docker compose exec appwrite migrate

But i am getting database errors(this one when creating a database):

TypeScript
[Error] Timestamp: 2023-07-03T12:18:16+00:00
appwrite  | [Error] Method: POST
appwrite  | [Error] URL: /v1/databases
appwrite  | [Error] Type: Utopia\Database\Exception\Structure
appwrite  | [Error] Message: Invalid document structure: Unknown attribute: "enabled"
appwrite  | [Error] File: /usr/src/code/vendor/utopia-php/database/src/Database/Database.php
appwrite  | [Error] Line: 2504

i dont want to reset the database because i have data in them

TL;DR
After upgrading Appwrite to the master branch, a user encountered database errors when creating a database. The error message indicated an invalid document structure with an unknown attribute. They did not want to reset the database because of existing data. The solution involves checking the migration note and ensuring that the upgrade is done in sequence, one version at a time.
eroo36
3 Jul, 2023, 12:27

ah i did not read the note about the migration. I dont remember what version i was on but probably skipped multiple versions while upgrading.

Drake
3 Jul, 2023, 12:30

Ya that would definitely break things

eroo36
3 Jul, 2023, 12:32

so everytime i want to update the appwrite i have to update one by one ?

eroo36
3 Jul, 2023, 12:33

starting from v0.1 for example, if latest is v0.4 i have to create image for 0.2 first, do migration and then 0.3 and 0.4 ?

eroo36
3 Jul, 2023, 12:33

this is not good

Drake
3 Jul, 2023, 12:53

Correct

eroo36
3 Jul, 2023, 12:54

alright thanks

Drake
3 Jul, 2023, 13:00

[SOLVED] Database problems after upgrade

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