AWS connection has timed out

I have recently opted to do a self-host of discourse on aws.

I followed all the instructions on the github page. I receive a connection timeout error. The installation works fine. The DNS A record is set up correctly and my host has confirmed that it works.

On aws my instance is a Ubuntu Server 18.04 LTS (HVM), SSD Volume Type with 2GB and 1vCPU.

Every time I access the page I receive a connection timeout error.

Please help.

Have you configured the security group to allow access?

1 Like

Thanks so much, I edited the security group to allow inbound and outbound on All traffic. I am now receiving the following error:

Unable to connect

Firefox can’t establish a connection to the server at

That error suggests the discourse container is not running.

  • Does it show up in the docker process list?
  • Does curl localhost connect successfully?
1 Like

Have you rebuilt since editing the security group?

1 Like

Thanks so much. You guys lead me in the right direction.

The security group was wrong. Curl localhost was also not connecting. After which I released that the docker installation did not work correctly. The default memory size for my instance on aws was to small and as a result docker was not being installed correctly.

Curl localhost now shows

<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx/1.17.4</center>
</body>
</html>

Docker process list shows the following:

CONTAINER ID        IMAGE                 COMMAND             CREATED             STATUS              PORTS                                      NAMES
646fd4d2               local_discourse/app   "/sbin/boot"        6 minutes ago       Up 6 minutes        0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp   app

Are you able to share the address for your community?

1 Like

Thanks it started working this morning. Thanks so much for all the help.