Back

Issue when i try to migrate from 1.3.8 to 1.4 on self hosted

  • 0
  • Self Hosted
  • General
D5
9 Jan, 2025, 10:28

Do you have used the same OpenSSL key?

TL;DR
Developers are experiencing issues migrating from version 1.3.8 to 1.4 on self-hosted Appwrite. Errors include "Invalid document structure: Unknown attribute: 'database'," empty database and storage post-update, invalid credentials upon login, and user not found during password reset. Upgrade directly to version 1.4.13, check backups, and ensure to use the same OpenSSL key. Issue seems to be data migration-related, leading to connection problems, and missing user scope errors in logs.
Reyvax
9 Jan, 2025, 10:28

yes i have check the .env

D5
9 Jan, 2025, 10:29

I recommend trying to upgrade to 1.4.13 directly and run migrations. Also have you made backups?

Reyvax
9 Jan, 2025, 10:29

but even when i try to use forgot password appwrite seems to no find the user

Reyvax
9 Jan, 2025, 10:29

yes i have a backup

Reyvax
9 Jan, 2025, 10:30

i try even the 1.4.14 but i have the same issue the update it's perform but data migration isn't

D5
9 Jan, 2025, 10:30

What do you mean?

D5
9 Jan, 2025, 10:31

What are the commands you're running to upgrade?

Reyvax
9 Jan, 2025, 10:31

i use these command :

TypeScript
docker run -it --rm     --volume /var/run/docker.sock:/var/run/docker.sock     --volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw     --entrypoint="upgrade"     appwrite/appwrite:1.4.14
Reyvax
9 Jan, 2025, 10:31

and then i run the migration command

D5
9 Jan, 2025, 10:32

And it's successful?

Reyvax
9 Jan, 2025, 10:32

yes for the upgrade but not for data migration

Reyvax
9 Jan, 2025, 10:33

i can recreate an user but all my project and data have been deleted

D5
9 Jan, 2025, 10:33

What do you get after running docker compose exec appwrite doctor

D5
9 Jan, 2025, 10:34

You should not

D5
9 Jan, 2025, 10:34

What's it throwing?

D5
9 Jan, 2025, 10:34

What error?

Reyvax
9 Jan, 2025, 10:35

when i'm trying to log in the console i have invalid credentials error and when i try forgot password i have an error user with the requested id could not be found

Reyvax
9 Jan, 2025, 10:36

and after a check all of bdd and storage is empty after update

Reyvax
9 Jan, 2025, 10:43

i have these error Failed to update document: Invalid document structure: Unknown attribute: "database"

Reyvax
9 Jan, 2025, 10:45

the is the complete output :

D5
9 Jan, 2025, 10:48

When running the migrations you get that? 👀

Reyvax
9 Jan, 2025, 10:48

yes

D5
9 Jan, 2025, 10:48

Are you sure you're running it inside the appwrite folder?

Reyvax
9 Jan, 2025, 10:49

yes i'm sure

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