Back

v1.5

  • 0
  • Self Hosted
alyapany
9 Apr, 2024, 00:07

After installing appwrite, when i go to the localhost/login it gives me Bad Gateway, when i try to trace the logs i see that it doesn't connect to the database, so how do i fix this:

TL;DR
Developers are troubleshooting the installation of Appwrite v1.5. The issue seems to stem from missing configurations required for Appwrite to function properly, leading to a Bad Gateway error when accessing localhost/login. They are advised to follow the official documentation to properly set up Appwrite with the required containers and configurations. To start from scratch and avoid potential conflicts from a previous installation, the suggestion is to remove existing data with a command before starting the stack again using docker compose.
alyapany
9 Apr, 2024, 00:08
Steven
9 Apr, 2024, 00:18

did you ever have another instance of appwrite installed?

alyapany
9 Apr, 2024, 00:27

Yes, I attempted to install it previously; however, my machine encountered difficulties and became unresponsive. Consequently, I uninstalled Docker. Therefore, I am uncertain whether I properly removed it or if it was ever successfully installed initially. So i think this is my first go running it locally!

Steven
9 Apr, 2024, 00:27

you may still have the old installation. if you're okay with wiping the data, you can run:

TypeScript
docker compose down -v

Then start up the stack with:

TypeScript
docker compose up -d
alyapany
9 Apr, 2024, 00:32

rn i don't even have docker-compose.yml to run those commands, someone here told me to reinstall it, and it didn't work, so here i am? trying to start it from scratch with you

Steven
9 Apr, 2024, 00:33

how did you get this?

Steven
9 Apr, 2024, 00:34

oh...you tried just running the appwrite image?

alyapany
9 Apr, 2024, 00:34

yes ig

alyapany
9 Apr, 2024, 00:34

im brand new with this so forgive me if im doing smth stupid

Steven
9 Apr, 2024, 00:34

that doesn't work. Appwrite needs 20 or so containers to run. Please follow the docs: https://appwrite.io/docs/advanced/self-hosting#install-with-docker

alyapany
9 Apr, 2024, 00:38

I followed it but i skipped this part : `Next steps Self-hosting Appwrite gives you more configurable options. Make these configurations to unlock the full power of Appwrite.

Configure Appwrite Functions

Configure email delivery

Configure SMS delivery

Configure Appwrite Storage

Configure TLS Certificates`

is that the problem?

Steven
9 Apr, 2024, 00:38

did you run the command?

alyapany
9 Apr, 2024, 00:40

yes, it takes some times but yes i did before

Steven
9 Apr, 2024, 00:40

so you had an installation before. what happened to it?

alyapany
9 Apr, 2024, 00:41

right now i uninstalled it since its not working, but i do install it atm

alyapany
9 Apr, 2024, 00:42

also i tried to pull the latest version directly form docker GUI, but it gaves me the same error

Steven
9 Apr, 2024, 00:44

again, you can't do this. it won't work

Steven
9 Apr, 2024, 00:44

so you just executed the command now and you're waiting for it to finish?

alyapany
9 Apr, 2024, 00:45

yes once its done i will update you

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