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
- function subdomain ssl certs
The generated subdomain isn't getting a valid ssl cert, I was wondering if appwrite automatically generates one or uses a wildcard for *.functions.domain.com? ...
- Whats best practise for Appwrite Cloud?
Appwrite Teams map very nicely to my needs, it is how i group users together. ... I use roles to define permissions. Should I also map a table to each team ? ...
- Error getting preview of file
Rest Response: ``` { "message": "Server Error", "code": 500, "type": "general_unknown", "version": "1.8.1" } ``` Appwrite Logs ``` appwrite ...