# 1GB ram Discourse setup / swap file error

**URL:** https://meta.discourse.org/t/1gb-ram-discourse-setup-swap-file-error/72898
**Category:** Support
**Tags:** server-resources
**Created:** [October 27, 2017, 7:35am UTC](https://meta.discourse.org/t/1gb-ram-discourse-setup-swap-file-error/72898 "2017-10-27T07:35:00Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![dimu001](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dimu001/32/80176_2.png) [@dimu001](https://meta.discourse.org/u/dimu001)
#### Post date: [October 27, 2017, 7:35am UTC](https://meta.discourse.org/t/1gb-ram-discourse-setup-swap-file-error/72898/1 "2017-10-27T07:35:00Z")

</div>

Hi ,

I am trying to install discourse on vultr sever with 1 gb Ram, but I can not do final setup ( ./discourse-setup )  
getting error 2gb swap file needed.

 ![swap](https://global.discourse-cdn.com/meta/original/3X/b/9/b90a78b4776eb58b56e2acf2d1abe2d254a7587e.png)

help!!

---

<div class="post-metadata">

### Author: ![Bas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bas/32/294929_2.png) [@Bas](https://meta.discourse.org/u/Bas)
#### Post date: [October 27, 2017, 7:42am UTC](https://meta.discourse.org/t/1gb-ram-discourse-setup-swap-file-error/72898/2 "2017-10-27T07:42:06Z")

</div>

How much swap do you have?  
Can you increase it?

---

<div class="post-metadata">

### Author: ![dimu001](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dimu001/32/80176_2.png) [@dimu001](https://meta.discourse.org/u/dimu001)
#### Post date: [October 27, 2017, 7:44am UTC](https://meta.discourse.org/t/1gb-ram-discourse-setup-swap-file-error/72898/3 "2017-10-27T07:44:06Z")

</div>

> [@Bas](#):
>
> How much swap do you have?  
> Can you increase it?

currently 1GB ram = 1GB swap , is it possible to increase more swap \> 1gb

---

<div class="post-metadata">

### Author: ![Bas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bas/32/294929_2.png) [@Bas](https://meta.discourse.org/u/Bas)
#### Post date: [October 27, 2017, 7:45am UTC](https://meta.discourse.org/t/1gb-ram-discourse-setup-swap-file-error/72898/4 "2017-10-27T07:45:52Z")

</div>

I would suggest you increase swap to 2GB or more

---

<div class="post-metadata">

### Author: ![dimu001](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dimu001/32/80176_2.png) [@dimu001](https://meta.discourse.org/u/dimu001)
#### Post date: [October 27, 2017, 7:47am UTC](https://meta.discourse.org/t/1gb-ram-discourse-setup-swap-file-error/72898/5 "2017-10-27T07:47:55Z")

</div>

> [@Bas](#):
>
> I would suggest you increase it to 2GB or more

OK , will check …

---

<div class="post-metadata">

### Author: ![dimu001](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dimu001/32/80176_2.png) [@dimu001](https://meta.discourse.org/u/dimu001)
#### Post date: [October 27, 2017, 8:13am UTC](https://meta.discourse.org/t/1gb-ram-discourse-setup-swap-file-error/72898/6 "2017-10-27T08:13:10Z")

</div>

> [@Bas](#):
>
> I would suggest you increase it to 2GB or more

It worked. …

---

<div class="post-metadata">

### Author: ![Bas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bas/32/294929_2.png) [@Bas](https://meta.discourse.org/u/Bas)
#### Post date: [October 27, 2017, 8:15am UTC](https://meta.discourse.org/t/1gb-ram-discourse-setup-swap-file-error/72898/7 "2017-10-27T08:15:12Z")

</div>

Great! 🙂

fyi: the debug message that you showed kind of hinted to this as well; Discourse needs to move some stuff around during setup and it needs at least \>2GB of memory (but part of that can be in swap) to make that happen.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 8, 2024, 12:43pm UTC](https://meta.discourse.org/t/1gb-ram-discourse-setup-swap-file-error/72898/8 "2024-06-08T12:43:59Z")

</div>

This topic was automatically closed after 2416 days. New replies are no longer allowed.
