Back

[SOLVED] 500 error on a 1.4.9 fresh install

  • 0
  • Self Hosted
Disk_MTH
4 Nov, 2023, 18:24

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

TL;DR
Title: [SOLVED] 500 error on a 1.4.9 fresh install Summary: The user encountered a 500 error after installing Appwrite 1.4.9 on a new Debian 12 system. They had changed the HTTPS port but were unsure if that caused the error. After troubleshooting and reinstalling, the issue was resolved. Solution: The user reinstalled Appwrite, specifying the desired port for HTTPS during the installation process. This resolved the 500 error.
D5
4 Nov, 2023, 18:26

Did you had installed another Appwrite version prior to this?

Disk_MTH
4 Nov, 2023, 18:26

no, it has been installed on a new empty debian 12

Disk_MTH
4 Nov, 2023, 18:27

and the only thing I have change is the https port from 443 to 30121 (its just for my port redirect)

D5
4 Nov, 2023, 18:27

So after changing that you get the error?

Disk_MTH
4 Nov, 2023, 18:28

No, I had it from the start. However this installation with the changed port I did it twice and it worked twice

D5
4 Nov, 2023, 18:29

What do you get after running this command? docker compose logs appwrite

Disk_MTH
4 Nov, 2023, 18:30

this database error x1000000000 πŸ˜‚

TypeScript

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)...
D5
4 Nov, 2023, 18:31

Weird, seems like DB password is incorrect

D5
4 Nov, 2023, 18:32

did you have modified something related to DB or DB password in the docker compose file?

Disk_MTH
4 Nov, 2023, 18:32

Yes but I dont have touch it, I think

D5
4 Nov, 2023, 18:32

The install doesnt has any data or something you want/need to keep, true?

Disk_MTH
4 Nov, 2023, 18:33

yep

Disk_MTH
4 Nov, 2023, 18:33

i will reinstall πŸ˜‚

D5
4 Nov, 2023, 18:34

I think reinstalling everything should solve the issue, and in the installation process you should directly specify the port you want for https

Disk_MTH
4 Nov, 2023, 18:34

juste how to change the db password without crash everything ? because I thinks it the problem

D5
4 Nov, 2023, 18:35

First you change the db password in the mariadb container and then after that, you add the new password in the docker compose file

D5
4 Nov, 2023, 18:35

In the corresponding variable called db password or similar, not sure πŸ˜…

Disk_MTH
4 Nov, 2023, 18:36

ok so I cant juste stop apwrite stack, change pswd and restart ?

D5
4 Nov, 2023, 18:36

Yes

D5
4 Nov, 2023, 18:37

That could solve the issue too

D5
4 Nov, 2023, 18:37

But not sure if it's needed knowing the previous password too

Disk_MTH
5 Nov, 2023, 13:26

[SOLVED] 500 error on a 1.4.9 fresh install

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