Back

Support for appwrite in selfhosted env with remote redis and mariadb

  • 1
  • Databases
  • Self Hosted
debug
11 Mar, 2025, 13:45

I'm trying to run appwrite in a self-hosted env with a remote redis and mariadb.

i have edited the .env value like this :

Redis Configuration

_APP_REDIS_HOST=51.75.20.47 _APP_REDIS_PORT=6379 _APP_REDIS_USER=redacted _APP_REDIS_PASS=redacted

MariaDB Configuration

_APP_DB_HOST=51.75.20.47 _APP_DB_PORT=3306 _APP_DB_SCHEMA=appwrite _APP_DB_USER=redacted _APP_DB_PASS=redacted _APP_DB_ROOT_PASS=redacted

but when i run appwrite doctor i have this : [Connectivity] šŸ”“ Console.DB.(console)...........................disconnected šŸ”“ Projects.DB.(database_db_main).................disconnected šŸ”“ Cache(cache_redis_main)........................disconnected šŸŸ¢ Queue(queue)......................................connected šŸ”“ PubSub(pubsub).................................disconnected šŸ”“ SMTP...........................................disconnected

and this error in the logs : Fatal error: Uncaught Exception: Failed to connect to database: Failed to create connection: ERR AUTH <password> called without any password configured for the default user. Are you sure your configuration is correct? in /usr/src/code/app/http.php:84 appwrite | Stack trace: appwrite | #0 [internal function]: {closure}() appwrite | #1 {main} appwrite | thrown in /usr/src/code/app/http.php on line 84 appwrite | Database not ready. Retrying connection (10)... appwrite | [2025-03-11 13:42:47 #1.8] ERROR php_swoole_server_rshutdown() (ERRNO 503): Fatal error: Uncaught Exception: Failed to connect to database: Failed to create connection: ERR AUTH <password> called without any password configured for the default user. Are you sure your configuration is correct? in /usr/src/code/app/http.php:84 appwrite | Stack trace: appwrite | #0 [internal function]: {closure}() appwrite | #1 {main} appwrite | thrown in /usr/src/code/app/http.php on line 84

If someone can give me an hint about why i can't connect to my remote database and why i got this error ?

Thanks in advance for your support.

TL;DR
Developers are trying to run appwrite in a self-hosted env with remote Redis and MariaDB but are facing connection issues. The error indicates a problem with database authentication. Make sure the MariaDB connection details in the .env file are correct, including the password. Also, check if the remote MariaDB user has the necessary permissions.
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