Back

[SOLVED] Upgrading from 1.3.7 to 1.4.0 Database Error

  • 0
  • Self Hosted
wkijedi
15 Dec, 2023, 13:57

I get an error message on the browser after upgrading and restoring my backup. "Table 'appwrite._console_rules' doesn't exist in engine".

TL;DR
User is experiencing a database error while upgrading from version 1.3.7 to 1.4.0. Solution: - Restore from backup and upgrade to version 1.3.8. - Run migration command after upgrading to version 1.3.8. - Upgrade directly to the latest patch, version 1.4.13. - Run the migration command after upgrading to version 1.4.13. Note: From version 1.3.8 onwards, use the `--entrypoint="upgrade"` command for updating.
D5
15 Dec, 2023, 14:25

You should have upgraded to 1.3.8 previously and then to 1.4.13

wkijedi
18 Dec, 2023, 10:42

Did you mean 1.4.3?

wkijedi
18 Dec, 2023, 10:50

I have upgraded to 1.3.8 then to 1.4.3 but the error still persists.

Ernest
18 Dec, 2023, 11:26
  1. Roll back to 1.3.7
  • Upgrade to 1.3.8 (modify command to use --entrypoint="install")
  • Upgrade to 1.4.13 (latest release; not 1.4.3) From version 1.3.8+ the update command uses --entrypoint="upgrade"
wkijedi
18 Dec, 2023, 14:02

docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "upgrade": executable file not found in $PATH: unknown.

wkijedi
18 Dec, 2023, 14:05

sudo 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.0

wkijedi
18 Dec, 2023, 14:07

when I upgrade to 1.4.13, it successfully runs but gives me this error on the browser

Guille
18 Dec, 2023, 14:08

did you ran the migration after upgrade?

Guille
18 Dec, 2023, 14:09
TypeScript
cd appwrite/
docker compose exec appwrite migrate
wkijedi
19 Dec, 2023, 05:30

i get errors when I run the migrate tool

wkijedi
19 Dec, 2023, 05:31
Drake
19 Dec, 2023, 06:26

Weird...this table should have existed since several versions back 🧐

D5
19 Dec, 2023, 12:32

I think the main issue is that something went wrong because you have to go through 1.3.8. You should restore from backup and upgrade to 1.3.8, run migration command, and after that, upgrade to to latest patch directly (1.4.13) and run the migration command.

wkijedi
20 Dec, 2023, 06:01

Thank you so much. I was not running the migrate tool after every upgrade. Thanks @D5 and @Steven .

Drake
21 Dec, 2023, 00:30

[SOLVED] Upgrading from 1.3.7 to 1.4.0 Database Error

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