#Can't visit locally hosted Appwrite on local server.

95 messages · Page 1 of 1 (latest)

regal grove
#

Hi all. I'm having trouble using Appwrite in my remote Linux server. On my local home network, I have a local appwrite server that works very well. However, when I move to a public server to host my services, I have trouble making it publically available. I don't know if there's a problem with firewall cuz I'm not really experienced with firewall. Here's the log

regal grove
#

😄 please help by

static moth
#

Please avoid tagging folks individually as it can be disruptive

barren mortar
#

On what ports are you running Appwrite?

regal grove
#

My server is public, whoch means I can ssh to it from anywhere

barren mortar
regal grove
#

You mean I have to add 443 with sudo ufw ?

mellow finch
regal grove
#

Yeah. I haven’t figured why it doesn’t work on ny public server

#

Everything works well on my local laptop, which is then being tuned to ngrok for public access

elder cedar
regal grove
#

I added but still can't curl localhost on port 80

grim notch
regal grove
elder cedar
regal grove
#

it doesnt return anything (timeout)

elder cedar
#

Could you please try running docker compose logs appwrite -n 0 -f, then curl again, and see if anything comes up?

regal grove
elder cedar
regal grove
#

I installed it with docker compose up -d and docker-compose.yml + .env

wintry swan
#

what happens if you use ports other than 80 & 443?

elder cedar
regal grove
elder cedar
#

Just to make sure - you have the .env file in the appwrite/ directory?

#

Is there any reason you didn’t go the recommended install route?

regal grove
#

both of the docker-compose.yml and .env are in the same folder. I run docker compose in that folder 😄

elder cedar
regal grove
#

isn't docker-compose the recommended method for advanced settings?

grim notch
regal grove
#

doesnt work too 😄

#

same config hosted on my local laptop

#

it works on my local laptop but doenst work on my public gpu server

grim notch
# regal grove

something must be screwed up with the docker installation 🧐

grim notch
# regal grove

what about curl -I http://127.0.0.1 and have you tried letting it run without canceling?

grim notch
regal grove
#

I just checked docker compose versin on both computer. They all run docker compose version v2.24.5

#

btw my local laptop runs ubuntu 22 while the gpu server runs ubuntu 20

regal grove
grim notch
regal grove
#

here's my docker version

#

both of my server runs on the same docker version

grim notch
regal grove
#

yeah. I have no idea why

#

I also tried hosting a web server with npm on port 3000 and still works fine when I curl on this port

grim notch
#

what if you stop the appwrite stack and then curl?

regal grove
grim notch
#

can you try:

docker run -p 5678:5678 --rm -d hashicorp/http-echo -text="hello world"
curl -v http://localhost:5678
regal grove
#

thanks. Let me try it again

#

yeap it works

#

the problem remains the same

grim notch
regal grove
#

Actually, I also tried that option but it didnt work neithr

grim notch
elder cedar
wintry swan
#

does it work if you do a clean install and use ports other than 80/443? 👀

regal grove
#

I just tried sudo npm run dev -- port=80 to test my project on localhost port 80 and it still works fine!

regal grove
wintry swan
#

thats what a clean install is 😅, starting from scratch.
Can you edit the docker-compose.yml and change the default ports to something like 4444 & 5555 & restart appwrite?

#

I've had issues on my local installs as well with 80 & 443, so I use other ports.

elder cedar
regal grove
elder cedar
grim notch
#

this would indicate the container isn't working right...i wonder if it's some IP V6 problem...

elder cedar
grim notch
elder cedar
grim notch
grim notch
#

how many cores does the server have?

regal grove
#

😌

grim notch
regal grove
#

haizz