# AWS connection has timed out

**URL:** https://meta.discourse.org/t/aws-connection-has-timed-out/144681
**Category:** Self-hosting
**Created:** [March 18, 2020, 6:52am UTC](https://meta.discourse.org/t/aws-connection-has-timed-out/144681 "2020-03-18T06:52:48Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![papertrail-ai](https://avatars.discourse-cdn.com/v4/letter/p/e36b37/32.png) [@papertrail-ai](https://meta.discourse.org/u/papertrail-ai)
#### Post date: [March 18, 2020, 6:52am UTC](https://meta.discourse.org/t/aws-connection-has-timed-out/144681/1 "2020-03-18T06:52:48Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![schleifer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schleifer/32/86416_2.png) [@schleifer](https://meta.discourse.org/u/schleifer)
#### Post date: [March 18, 2020, 2:19pm UTC](https://meta.discourse.org/t/aws-connection-has-timed-out/144681/2 "2020-03-18T14:19:11Z")

</div>

Have you configured the security group to allow access?

---

<div class="post-metadata">

### Author: ![papertrail-ai](https://avatars.discourse-cdn.com/v4/letter/p/e36b37/32.png) [@papertrail-ai](https://meta.discourse.org/u/papertrail-ai)
#### Post date: [March 18, 2020, 4:45pm UTC](https://meta.discourse.org/t/aws-connection-has-timed-out/144681/3 "2020-03-18T16:45:53Z")

</div>

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

---

<div class="post-metadata">

### Author: ![schleifer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schleifer/32/86416_2.png) [@schleifer](https://meta.discourse.org/u/schleifer)
#### Post date: [March 19, 2020, 4:05am UTC](https://meta.discourse.org/t/aws-connection-has-timed-out/144681/4 "2020-03-19T04:05:11Z")

</div>

That error suggests the discourse container is not running.

- Does it show up in the docker process list?
- Does `curl localhost` connect successfully?

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [March 19, 2020, 4:18am UTC](https://meta.discourse.org/t/aws-connection-has-timed-out/144681/5 "2020-03-19T04:18:28Z")

</div>

Have you rebuilt since editing the security group?

---

<div class="post-metadata">

### Author: ![papertrail-ai](https://avatars.discourse-cdn.com/v4/letter/p/e36b37/32.png) [@papertrail-ai](https://meta.discourse.org/u/papertrail-ai)
#### Post date: [March 19, 2020, 7:03pm UTC](https://meta.discourse.org/t/aws-connection-has-timed-out/144681/6 "2020-03-19T19:03:06Z")

</div>

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

```plaintext
<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:

```plaintext
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

```

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [March 19, 2020, 9:24pm UTC](https://meta.discourse.org/t/aws-connection-has-timed-out/144681/7 "2020-03-19T21:24:18Z")

</div>

Are you able to share the address for your community?

---

<div class="post-metadata">

### Author: ![papertrail-ai](https://avatars.discourse-cdn.com/v4/letter/p/e36b37/32.png) [@papertrail-ai](https://meta.discourse.org/u/papertrail-ai)
#### Post date: [March 20, 2020, 9:24am UTC](https://meta.discourse.org/t/aws-connection-has-timed-out/144681/8 "2020-03-20T09:24:00Z")

</div>

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