Back

Failed to update project when 1.1.2 upgrade to 1.4.1

  • 0
  • Self Hosted
Binyamin
4 Sep, 2023, 16:13

You can also check Stevne's gist for database backup.

TL;DR
Title: Failed to update project when upgrading from version 1.1.2 to 1.4.1 - User is unable to update their project and has encountered various issues after upgrading from version 1.1.2 to 1.4.1. - Suggestion is made to check if a database backup was made before the upgrade. - User expresses concern about their files being lost, but suggested to restore from the database backup. - User is unable to login and reports missing data in the database. - Support suggests comparing the current `.env` file with a backup to ensure correct values. - Support recommends checking the
Vaytrex
4 Sep, 2023, 16:14

so after backup i just run this command ?

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.2.1

Binyamin
4 Sep, 2023, 16:18

That should work Just, in older versions the --entrypoint was "install" so like so:

TypeScript
docker run -it --rm --volume /var/run/docker.sock:/var/run/docker.sock     --volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw     --entrypoint="install"     appwrite/appwrite:1.2.1
Vaytrex
4 Sep, 2023, 16:42

I tried install to 1.2.1 and then migrate still 500 internal error

Binyamin
4 Sep, 2023, 16:43

Run

TypeScript
docker logs appwrite

And share the results

Vaytrex
4 Sep, 2023, 16:44
Binyamin
4 Sep, 2023, 16:45

Check your .env file for all the right values

Vaytrex
4 Sep, 2023, 16:45

which one is .env file

Binyamin
4 Sep, 2023, 16:46

In the same folder you'll have .env file which contains all the information for your Appwrite instance.

Binyamin
4 Sep, 2023, 16:46

Do you have a snapshot backup for your server?

Vaytrex
4 Sep, 2023, 16:48

I ran the backup script as in here

Vaytrex
4 Sep, 2023, 16:49

why i dont see .env file

Binyamin
4 Sep, 2023, 16:49

It's hidden run

TypeScript
ls -lah
Binyamin
4 Sep, 2023, 16:50

And you should have backup of all your old .env files

Vaytrex
4 Sep, 2023, 16:53

ya i do see all env is there

Binyamin
4 Sep, 2023, 16:54

Good

Binyamin
4 Sep, 2023, 16:54

Now you can compere current .env file with some backup to see that all the values are correct

Vaytrex
6 Sep, 2023, 06:18

Hi there I am able to fix the 500 already but

Vaytrex
6 Sep, 2023, 06:18

all my database gone i think. The account all missing

Vaytrex
6 Sep, 2023, 06:18

I cant login back

Binyamin
6 Sep, 2023, 14:58

Restore to the DB backup you've made

Vaytrex
8 Sep, 2023, 05:42

gg I tried to restore but still same

Vaytrex
8 Sep, 2023, 05:42

so means that all my file are gone?

Binyamin
8 Sep, 2023, 13:40

Files?

Binyamin
8 Sep, 2023, 13:40

Have you made a db backup?

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