Skip to content
Back

[CLOSED] migration from 1.3.4 to 1.3.8 failed

  • 0
  • General
  • Self Hosted
obiwanzenobi
20 Jul, 2023, 14:26

migration throws

TypeScript
Failed to update project ("646f8d89f40b2eaeadcd") version with error: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'appwrite._2__metadata' doesn't exist
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'appwrite._2__metadata' doesn't exist
TL;DR
The migration from version 1.3.4 to 1.3.8 failed for the user. They had to reinstall Appwrite to get their service running again. It seems that there was an issue with the migration tool. The user mentions that there are no collections with "_2_" in their database tables. The user also clarifies that they have removed a project with that name. The user receives an error when running the upgrade command, indicating that a table called "_2__metadata" does not exist. The user has not upgraded from any previous version before 1.3.4.
D5
20 Jul, 2023, 16:05

Did you have upgraded previously to 1.3.4 from any version?

obiwanzenobi
20 Jul, 2023, 16:26

no

kathelia.dokgu
20 Jul, 2023, 16:33

Correct me if I'm wrong but doesn't the documentation say that you don't need to run the migration tool if you're upgrading from patch to patch versions?

D5
20 Jul, 2023, 16:41

Yes, it's true

D5
20 Jul, 2023, 16:42

@obiwanzenobi Are you receiving this error when running upgrade command?

Drake
20 Jul, 2023, 17:13
  1. Do you know what project that is? 646f8d89f40b2eaeadcd
  2. Do you have any other tables in your database that start with _2_?
obiwanzenobi
20 Jul, 2023, 17:44
  1. one of dev env projects - i removed this instance already so I cant check
  2. all the tables have names with snake_case convention
Drake
20 Jul, 2023, 17:54
  1. Ok so it's an old project that was already deleted?
  2. Yes, I know all the tables have that convention, but are there any tables that start with _2_?
obiwanzenobi
20 Jul, 2023, 17:56
  1. Yes
  2. I' mean my collections - no there are no collections with _2_
Drake
20 Jul, 2023, 18:10

I' mean my collections - no there are no collections with 2

Sorry, I meant if you connect to your mariadb database and look at the tables in there, are there tables that start with 2?

hamed
20 Jul, 2023, 19:34

I believe the current version is 1.3.7 🧐

obiwanzenobi
21 Jul, 2023, 17:57

I think we can close it, I had to reinstall appwrite to get my service back and running so cant tell much more about it

D5
21 Jul, 2023, 18:43

Now 1.3.8

Drake
21 Jul, 2023, 19:20

[CLOSED] migration from 1.3.4 to 1.3.8 failed

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