
I got this error when trying to migrate (I have appwrite in WSL):
SQLSTATE[HY000] [1045] Access denied for user 'admin'@'ip'

Where did you run the upgrade command? What's in your appwrite folder?

i have this folder struct:
dev/
appwrite/
.env
docker-compose.yml
I followed instructions here: (https://appwrite.io/docs/upgrade) appwrite 1.21 was running (docker compose) then I run "docker run -it ..." in dev folder then "docker compose exec appwrite migrate" inside appwrite folder

is this exactly what's in the appwrite folder now? or are there more files?

there are more .backup files (one for .env, one for docker-compose)

ok that's good. and appwrite is online and running fine?
can you check the .env file and the backup one to compare the mariadb variables?

yeah both env files contain same variables. appwrite dont work, returns "Bad Gateway" when trying to connect localhost

what are the logs for that container?

the log for traefik is: level=error msg=the router appwrite_realtime_wss@docker uses a non-existent resolver: dns\n","stream":"stdout",
the log for mariadb is: [Warning] Access denied for user 'admin'@'172.27.0.17' (using password: YES)

i meant the appwrite container

oh, sorry
127.0.0.1 is not a publicly accessible domain. Skipping SSL certificate generation.

that line can be ignored

it works now. I run "docker compose down" then up again and it let me run the command "docker compose exec appwrite migrate" Maybe the error appear cause i start the migration process without turning down docker compose
Thank you @Steven

[SOLVED] Can not migrate
Recommended threads
- Unable to select my region when signing ...
I am from India and trying to use appwrite for the first time, I was creating my first project when it asked me to select my region, Frankfurt is selected on it...
- DigitalOcean Droplet SMTP failure with m...
Is there any way to get the appwrite 1.6 mailer docker image working on a droplet? I can send emails via the appwrite console, but my magiclinks always fiail wi...
- unable to remove project 500 error
We are unable to remove a project, when clicking setting option it showing 500 Server Error
