# Problem installing Discourse on AWS EC2 instance

**URL:** https://meta.discourse.org/t/problem-installing-discourse-on-aws-ec2-instance/286110
**Category:** Self-hosting
**Tags:** server-resources
**Created:** [November 20, 2023, 6:52pm UTC](https://meta.discourse.org/t/problem-installing-discourse-on-aws-ec2-instance/286110 "2023-11-20T18:52:31Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![wokaman972](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wokaman972/32/342710_2.png) [@wokaman972](https://meta.discourse.org/u/wokaman972)
#### Post date: [November 20, 2023, 6:52pm UTC](https://meta.discourse.org/t/problem-installing-discourse-on-aws-ec2-instance/286110/1 "2023-11-20T18:52:31Z")

</div>

Hi everyone !

I’m trying to install Discourse on a AWS EC2 instance (t2.micro) but it gets stuck here…  
SHould I get a bigger instance or something wrong happened ?  
Thank you guys !

 ![Capture d’écran du 2023-11-20 19-51-27](https://global.discourse-cdn.com/meta/original/4X/0/d/1/0d1b36dd5f95c32b6c0d6fe622345a3732bb9f34.png)

---

<div class="post-metadata">

### Author: ![tentacleskilt](https://avatars.discourse-cdn.com/v4/letter/t/e56c9b/32.png) [@tentacleskilt](https://meta.discourse.org/u/tentacleskilt)
#### Post date: [November 20, 2023, 8:00pm UTC](https://meta.discourse.org/t/problem-installing-discourse-on-aws-ec2-instance/286110/2 "2023-11-20T20:00:47Z")

</div>

The t2.micro instance may not be powerful enough to handle the demands of installing Discourse. Consider upgrading to a larger instance like t2.medium or t2.large for better performance.

---

<div class="post-metadata">

### Author: ![wokaman972](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wokaman972/32/342710_2.png) [@wokaman972](https://meta.discourse.org/u/wokaman972)
#### Post date: [November 20, 2023, 10:15pm UTC](https://meta.discourse.org/t/problem-installing-discourse-on-aws-ec2-instance/286110/3 "2023-11-20T22:15:45Z")

</div>

Thank you, it works well as expected.  
(I was trying to find a free solution lmaoo)

---

<div class="post-metadata">

### Author: ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)
#### Post date: [November 21, 2023, 7:10pm UTC](https://meta.discourse.org/t/problem-installing-discourse-on-aws-ec2-instance/286110/4 "2023-11-21T19:10:54Z")

</div>

If an installation stalls, I would recommend  
`vmstat 5 5`  
to see what the machine is doing. This will also tell us how the memory and swap are configured. Also worthwhile to check for out-of-memory conditions  
`dmesg | egrep -2 -i oom`

For a given machine size, a large enough forum will have performance problems. But if RAM+swap is big enough, things should still work, but slowly.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [December 21, 2023, 7:11pm UTC](https://meta.discourse.org/t/problem-installing-discourse-on-aws-ec2-instance/286110/5 "2023-12-21T19:11:42Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
