Back

Installing appwrite on WSL Docker

  • 0
  • Self Hosted
Ahmed Hammad
18 Jun, 2024, 12:52

I have Ubntu under my windows docker trying to install using UNIX Command , all containers was installed fine , but I am getting error appwrite-task-maintenance | Failed to create connection: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mariadb failed: Name does not resolve

the env file

TypeScript
_APP_DB_HOST=mariadb
_APP_DB_PORT=3306
_APP_DB_SCHEMA=appwrite
_APP_DB_USER=user
_APP_DB_PASS=password
_APP_DB_ROOT_PASS=rootsecretpassword
_APP_INFLUXDB_HOST=influxdb

idk why can't connecto to database there is only 2 container can't run

mariadb & appwrite-assistant nothing running on same ports . and their logs shows 1 error 2024-06-18 15:53:42 exec /usr/local/bin/docker-entrypoint.sh: exec format error

TL;DR
Developers are encountering an error when trying to install Appwrite on WSL Docker, specifically related to connecting to the database. The error message indicates a failure to create a connection to mariadb. Containers for mariadb and appwrite-assistant are not running on the same ports. The error log mentions an "exec format error." Solution: Check the container configurations to ensure they are set up correctly and that there are no conflicts with ports. Additionally, verify the network settings to ensure proper connectivity between the containers.
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