Back

[SOLVED] Having issues setting up appwrite on a raspberry pi 4

  • 0
  • Databases
  • Locale
  • Web
Yannik
17 Nov, 2023, 18:24

Hello, i was trying to setup appwrite on a raspberry pi 4, when I came across this issue. I would be so thankful for your response!

TypeScript
Database not ready. Retrying connection (1)...
Database not ready. Retrying connection (2)...
Database not ready. Retrying connection (3)...
Database not ready. Retrying connection (4)...
Database not ready. Retrying connection (5)...
Database not ready. Retrying connection (6)...
[Error] Type: Utopia\Exception
[Error] Message: Error handler had an error: Failed to create connection: SQLSTATE[HY000] [1130] Host 'my ip' is not allowed to connect to this MariaDB server
[Error] File: /usr/src/code/vendor/utopia-php/framework/src/App.php
[Error] Line: 551
Database not ready. Retrying connection (7)...
Database not ready. Retrying connection (8)...
Database not ready. Retrying connection (9)...
Database not ready. Retrying connection (10)...

Fatal error: Uncaught Exception: Failed to connect to database: Failed to create connection: SQLSTATE[HY000] [1130] Host 'my ip' is not allowed to connect to this MariaDB server in /usr/src/code/app/http.php:82
Stack trace:
#0 {main}
  thrown in /usr/src/code/app/http.php on line 82
[2023-11-17 18:17:03 *34.0]     ERROR   php_swoole_server_rshutdown() (ERRNO 503): Fatal error: Uncaught Exception: Failed to connect to database: Failed to create connection: SQLSTATE[HY000] [1130] Host 'my ip' is not allowed to connect to this MariaDB server in /usr/src/code/app/http.php:82
Stack trace:
#0 {main}
  thrown in /usr/src/code/app/http.php on line 82
Database not ready. Retrying connection (1)...
Database not ready. Retrying connection (2)...
Database not ready. Retrying connection (3)...
TL;DR
I have issues setting up Appwrite on a Raspberry Pi 4. The error message says "Failed to create connection: SQLSTATE[HY000] [1130] Host 'my ip' is not allowed to connect to this MariaDB server." The solution is to check the database connection settings and make sure the host IP is allowed to connect.
D5
17 Nov, 2023, 19:05

Seems database isn't available?

Yannik
17 Nov, 2023, 19:28

It is running but I didn‘t set the username and password anywhere in appwrite might that be the problem? And where can i set it?

D5
17 Nov, 2023, 20:07

Yes

D5
17 Nov, 2023, 20:07

You can set it in the docker compose file

Yannik
17 Nov, 2023, 20:08

I will try that ty

D5
17 Nov, 2023, 20:08

It's located in your appwrite install folder

Yannik
18 Nov, 2023, 17:59

Fixed it ty

D5
18 Nov, 2023, 18:03

Great!

D5
18 Nov, 2023, 18:03

[SOLVED] Having issues setting up appwrite on a raspberry pi 4

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