Everything is in the title, I install appwrite 1.4.9 with the official command from the doc and got this error. Its my 3rd installation of this version and its the first time with this error
Did you had installed another Appwrite version prior to this?
no, it has been installed on a new empty debian 12
and the only thing I have change is the https port from 443 to 30121 (its just for my port redirect)
So after changing that you get the error?
No, I had it from the start. However this installation with the changed port I did it twice and it worked twice
What do you get after running this command?
docker compose logs appwrite
this database error x1000000000 π
appwrite | Fatal error: Uncaught Exception: Failed to connect to database: Failed to create connection: SQLSTATE[HY000] [1045] Access denied for user '6TUdV3763pfhGu'@'172.21.0.22' (using password: YES) in /usr/src/code/app/http.php:82
appwrite | Stack trace:
appwrite | #0 {main}
appwrite | thrown in /usr/src/code/app/http.php on line 82
appwrite | [2023-11-04 18:29:35 *45.0] ERROR php_swoole_server_rshutdown() (ERRNO 503): Fatal error: Uncaught Exception: Failed to connect to database: Failed to create connection: SQLSTATE[HY000] [1045] Access denied for user '6TUdV3763pfhGu'@'172.21.0.22' (using password: YES) in /usr/src/code/app/http.php:82
appwrite | Stack trace:
appwrite | #0 {main}
appwrite | thrown in /usr/src/code/app/http.php on line 82
appwrite | Database not ready. Retrying connection (10)...
appwrite | Database not ready. Retrying connection (1)...
appwrite | Database not ready. Retrying connection (2)...
appwrite | Database not ready. Retrying connection (3)...
appwrite | Database not ready. Retrying connection (4)...
Weird, seems like DB password is incorrect
did you have modified something related to DB or DB password in the docker compose file?
Yes but I dont have touch it, I think
The install doesnt has any data or something you want/need to keep, true?
yep
i will reinstall π
I think reinstalling everything should solve the issue, and in the installation process you should directly specify the port you want for https
juste how to change the db password without crash everything ? because I thinks it the problem
First you change the db password in the mariadb container and then after that, you add the new password in the docker compose file
In the corresponding variable called db password or similar, not sure π
ok so I cant juste stop apwrite stack, change pswd and restart ?
Yes
That could solve the issue too
But not sure if it's needed knowing the previous password too
[SOLVED] 500 error on a 1.4.9 fresh install
Recommended threads
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Migrate from cloud to localhost
Hello everyone. I need to migrate my test project from cloud to localhost, however it seems that this is possible only if a self-hosted appwrite instance it's h...