Back

docker compose example not working

  • 1
  • Self Hosted
  • General
Super_Nove
8 Apr, 2024, 08:00

Hi, I downloaded the docker compose and .env file from the official documentation page.

https://appwrite.io/docs/advanced/self-hosting

When I start up the compose with the given command i get the following errors in the log:

TypeScript
appwrite-maintenance exited with code 0
appwrite-mariadb              | 2024-04-08  7:59:33 928 [Warning] Access denied for user 'user'@'172.18.0.16' (using password: YES)
appwrite-mariadb              | 2024-04-08  7:59:34 929 [Warning] Access denied for user 'user'@'172.18.0.18' (using password: YES)
appwrite-mariadb              | 2024-04-08  7:59:34 930 [Warning] Access denied for user 'user'@'172.18.0.13' (using password: YES)
appwrite-mariadb              | 2024-04-08  7:59:34 931 [Warning] Access denied for user 'user'@'172.18.0.14' (using password: YES)
appwrite-mariadb              | 2024-04-08  7:59:34 932 [Warning] Access denied for user 'user'@'172.18.0.16' (using password: YES)
appwrite-mariadb              | 2024-04-08  7:59:35 933 [Warning] Access denied for user 'user'@'172.18.0.18' (using password: YES)
appwrite-mariadb              | 2024-04-08  7:59:35 934 [Warning] Access denied for user 'user'@'172.18.0.13' (using password: YES)
appwrite-scheduler-functions  | Failed to create connection: SQLSTATE[HY000] [1045] Access denied for user 'user'@'172.18.0.13' (using password: YES)

I am just trying to host it on my local machine.

Could it be that there is an error in the default compose/.env file?

TL;DR
Developers encountered issues with a Docker Compose example from the official documentation of an app. Errors indicated access denied for a user in the MariaDB service when starting the compose. One developer resolved the problem by removing all existing containers, images, and volumes before updating Docker Desktop and re-trying the installation. Another provided a solution to solve the issue by deleting certain resources, then running `docker compose up -d --remove-orphans --renew-anon-volumes --force-recreate`.
ideclon
8 Apr, 2024, 11:56

Is there any reason you can’t use the regular install method?

Super_Nove
8 Apr, 2024, 11:58

what do you mean by that? for me docker compose is the regular install method

ideclon
8 Apr, 2024, 12:00

The regular install method is the “Install with Docker” header - running the command there will prompt you with a few questions, then generate your docker-compose.yml and .env files

Super_Nove
8 Apr, 2024, 12:21

i see. I want to use the manual thing, since when going to production i want to use nearly the same compose file.

Binyamin
8 Apr, 2024, 13:28

Have you also fetched the .env file?

apexx-gaming
8 Apr, 2024, 13:44

The install doesnt work for me either. the maintenence container keeps restarting. logs show filter not found

ideclon
8 Apr, 2024, 13:49

Did you also install by downloading the docker-compose.yml and .env files?

apexx-gaming
8 Apr, 2024, 14:12

no i did the regular install. but i think mine may have been a docker issue. I resolved the issue by deleting all containers images and volumes that aren't in use (by my other stuff), deleting all builds, updating docker desktop then tried again and it (kind of) worked. All 22 containers are now running. but now i get a gateway timeout localhost (80 and 443). before i could get the home page but no functionality.

apexx-gaming
8 Apr, 2024, 14:13

I did originally. this may have caused my initial woes... as i was getting the npm ci error

apexx-gaming
8 Apr, 2024, 14:24

OK I managed to solve it finally by deleting everything described above and doing a fresh regular install then going to the appwrite folder where the generated .env and .yaml are and running docker compose up -d --remove-orphans --renew-anon-volumes --force-recreate. hope that helps

apexx-gaming
8 Apr, 2024, 14:28

windows btw... obviously. smh. 🤦‍♂️

Super_Nove
8 Apr, 2024, 16:36

Yes I downloaded the newest env file. I did everything according to the documentation page.

Binyamin
8 Apr, 2024, 16:47

Do you have any important information on that production? Maybe you had previous information on that server?

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