Skip to content
Back

Installing Apprite via Docker on aaPanel

  • 0
  • Self Hosted
ruccc
15 Nov, 2024, 14:25

Hello, I have aaPanel installed on a VPS. aaPanel has a specific section to manage Docker, and is very easy to install docker images with that.

But when I try to start the container I receive this error message on the console:

`[1;33mDatabase not ready. Retrying connection (9)...

Fatal error: Uncaught Exception: Failed to connect to database: Failed to create connection: php_network_getaddresses: getaddrinfo for redis failed: Name does not resolve in /usr/src/code/app/http.php:84 Stack trace: #0 [internal function]: {closure}() #1 {main} thrown in /usr/src/code/app/http.php on line 84 [2024-11-15 14:21:58 #1.4] ERROR php_swoole_server_rshutdown() (ERRNO 503): Fatal error: Uncaught Exception: Failed to connect to database: Failed to create connection: php_network_getaddresses: getaddrinfo for redis failed: Name does not resolve in /usr/src/code/app/http.php:84 Stack trace: #0 [internal function]: {closure}() #1 {main} thrown in /usr/src/code/app/http.php on line 84 Database not ready. Retrying connection (10)... Worker 2 started successfully`

Searching I see it has something to do with Redis, and that possibly it could be fixed if I let the official docker command (which includes the interactive setup with -it), but aaPanel doesn't allow this -it.

So, maybe I could fix it starting the container defining some ENV variables? If so, which ones should be?

Thank you very much! 🙂

TL;DR
Developers trying to install Apprite via Docker on aaPanel are encountering a database connection error related to Redis. To resolve this, they need to set up environment variables to connect Apprite to the Redis and MariaDB databases. The error message suggests that the issue lies in failing to create a connection to Redis. The solution involves checking the environment variables and ensuring the connection to the Redis database is properly configured.
D5
15 Nov, 2024, 14:43

You need to create have a Redis database and MariaDB and connect appwrite to the databases

D5
15 Nov, 2024, 14:44

To connect it to the database, you need to setup the env variables

D5
15 Nov, 2024, 14:44

Remember there are other containers needed such as the executor and workers

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