Back

[SOLVED] migration failed

  • 0
  • Self Hosted
rohan
2 Sep, 2023, 23:29

hi im getting this error on migrate command

TypeScript
docker compose exec appwrite migrate
WARN[0000] The "Usssf" variable is not set. Defaulting to a blank string. 
WARN[0000] The "Usssf" variable is not set. Defaulting to a blank string. 
WARN[0000] The "Usssf" variable is not set. Defaulting to a blank string. 
WARN[0000] The "Usssf" variable is not set. Defaulting to a blank string. 
Failed to create connection: php_network_getaddresses: getaddrinfo failed: Try again
TL;DR
Migration failed and unable to access Appwrite after adding a custom domain. There is an error with the default OAuth. The user received a 404 error and it is unclear if it is resolved. If the issue persists, the user can try manually replacing files or looking into the provided Docker documentation. The upgrade command fails due to using Docker rootless. There is an error when running the migrate command. Solution: - If the default OAuth error persists, try looking at the API documentation for more information. - For the upgrade command, try running it with sudo or check the Docker daemon status. - If the migrate command fails
Drake
2 Sep, 2023, 23:32

you might have some bad values in your .env file or something. also your appwrite instance might not be workign right after the upgrade. please try to run docker compose restart and then docker compose ps to check the status of the containers

rohan
2 Sep, 2023, 23:32

the upgrade command fails as im using docker rootless

docker run -it --rm --volume /$XDG_RUNTIME_DIR/:/var/run/docker.sock --volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw --entrypoint="upgrade" appwrite/appwrite:1.4.1 Failed to install Appwrite dockers Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

rohan
2 Sep, 2023, 23:33

/$XDG_RUNTIME_DIR/ this is my docker.sock location

Drake
2 Sep, 2023, 23:33

maybe run with sudo? im not really sure about docker rootless

rohan
2 Sep, 2023, 23:34

eveything is the same but just have to replace unix:///var/run/docker.sock to /$XDG_RUNTIME_DIR/

Drake
2 Sep, 2023, 23:35

sorry im not sure. you can also try looking into manually replacing your files: https://appwrite.io/docs/self-hosting#manual

rohan
2 Sep, 2023, 23:57

thanks i got it worked 🙂

D5
3 Sep, 2023, 00:03

Does it work now then?

rohan
3 Sep, 2023, 00:03

@Steven I'm getting

TypeScript
Error 404
The requested route was not found. Please refer to the API docs and try again.

Type

general_route_not_found

Error on default oauth

rohan
3 Sep, 2023, 00:03

Yes it worked

D5
3 Sep, 2023, 00:04

What do you mean in default OAuth?

rohan
3 Sep, 2023, 00:04

the route which is used for mobile callback

rohan
3 Sep, 2023, 00:17

i have added my custom domain

rohan
3 Sep, 2023, 00:17

still im not able to access appwrite

Drake
3 Sep, 2023, 00:19

please create a new post with your code and the url

D5
3 Sep, 2023, 00:25

[SOLVED] migration 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