Back

Error when migrate

  • 0
  • Self Hosted
Reyvax
10 Apr, 2024, 15:20

Hi, i peform an upgrade on my instance of appwrite, all run succcessfully but then i cant login to the console and all of my files is unaccessible

TL;DR
Developers encountering error 404 on Appwrite after migrating version 1.2.0 to 1.3.0. Make sure API keys match, especially _APP_OPENSSL_KEY_V1. Try incognito login due to cache issues. If unable to log in due to API key changes, compare and update keys. To migrate database, run `docker run` command as well as `sudo docker compose exec appwrite migrate`.
ZachHandley
10 Apr, 2024, 15:24

Did you upgrade the database?

Reyvax
10 Apr, 2024, 15:25

i just run :

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.3.0
Reyvax
10 Apr, 2024, 15:26

and then

TypeScript
cd appwrite/
sudo docker compose exec appwrite migrate
Evdog
10 Apr, 2024, 15:31

Are they inaccessible because you can't login?

Evdog
10 Apr, 2024, 15:33

If you changed your API key when migrating, that will prevent you from logging in on existing accts as that key is used to hash passwords. Compare the _APP_OPENSSL_KEY_V1 env variable w/ the backup in the folder and ensure that it matches the old one, otherwise you won't be able to login

Reyvax
10 Apr, 2024, 15:33

I comapre both and there are the at the same value

Evdog
10 Apr, 2024, 15:35

What version did you start on and what are you trying to migrate to?

Reyvax
10 Apr, 2024, 15:38

i started from version 1.2.0 and i try to migrate to 1.3.0

Evdog
10 Apr, 2024, 15:40

What's the exact error including console logs when you try to login? Cache can be weird between migrations so you might need to try in an incognito tab to rule it out

Reyvax
10 Apr, 2024, 15:48

i have this error when try to access on any file: { "message": "Project with the requested ID could not be found. Please check the value of the X-Appwrite-Project header to ensure the correct project ID is being used.", "code": 404, "type": "project_not_found", "version": "1.2.0" }

Reyvax
10 Apr, 2024, 15:48

and i cannot send u the error message for bad credentials cause i have a rate limit exception for now

Evdog
10 Apr, 2024, 15:53

What's the output of docker ps -a

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