# I Have an Issue With Swap File (2GB) During Installation

**URL:** https://meta.discourse.org/t/i-have-an-issue-with-swap-file-2gb-during-installation/57028
**Category:** Self-hosting
**Tags:** server-resources
**Created:** [7 בפברואר,‏ 2017,‏ 2:23am UTC](https://meta.discourse.org/t/i-have-an-issue-with-swap-file-2gb-during-installation/57028 "2017-02-07T02:23:26Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![elmurph](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elmurph/32/67391_2.png) [@elmurph](https://meta.discourse.org/u/elmurph)
#### Post date: [7 בפברואר,‏ 2017,‏ 2:23am UTC](https://meta.discourse.org/t/i-have-an-issue-with-swap-file-2gb-during-installation/57028/1 "2017-02-07T02:23:26Z")

</div>

Hello,

I am currently having issues with the last step of discourse installation. I got this reply from my from ssh client while trying to enter " ./discourse-setup"

 ![](https://global.discourse-cdn.com/meta/original/3X/3/e/3eccb4e99a05ecda63a541e7fce3b70d7dde1ae6.PNG)

Please what should I do?

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [7 בפברואר,‏ 2017,‏ 2:46am UTC](https://meta.discourse.org/t/i-have-an-issue-with-swap-file-2gb-during-installation/57028/2 "2017-02-07T02:46:39Z")

</div>

From the output you provided it would appear that you have a 1 GB swap file, not a 2 GB one as required by Discourse. I’d suggest disabling the existing swap file by running

```plaintext
swapoff /swapfile

```

then running

```plaintext
./discourse-setup

```

again so it can create the 2 GB file. Did you previously set up a 1 GB swap file?

---

<div class="post-metadata">

### Author: ![elmurph](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elmurph/32/67391_2.png) [@elmurph](https://meta.discourse.org/u/elmurph)
#### Post date: [7 בפברואר,‏ 2017,‏ 2:50am UTC](https://meta.discourse.org/t/i-have-an-issue-with-swap-file-2gb-during-installation/57028/3 "2017-02-07T02:50:02Z")

</div>

Yes I did set up a 1GB swap file because it was part of the instructions in vultr instruction documentation

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [7 בפברואר,‏ 2017,‏ 2:52am UTC](https://meta.discourse.org/t/i-have-an-issue-with-swap-file-2gb-during-installation/57028/4 "2017-02-07T02:52:47Z")

</div>

This? [https://www.vultr.com/docs/how-to-install-discourse-on-ubuntu-14-04](https://www.vultr.com/docs/how-to-install-discourse-on-ubuntu-14-04) Those docs are pretty outdated: `Modified on: Thu, Feb 26, 2015 at 12:32 pm EST`

The up-to-date instructions are here:  
[discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md)

---

<div class="post-metadata">

### Author: ![elmurph](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elmurph/32/67391_2.png) [@elmurph](https://meta.discourse.org/u/elmurph)
#### Post date: [7 בפברואר,‏ 2017,‏ 2:56am UTC](https://meta.discourse.org/t/i-have-an-issue-with-swap-file-2gb-during-installation/57028/5 "2017-02-07T02:56:04Z")

</div>

I have turned off swap file but am still getting an “insufficient swap space” message.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [7 בפברואר,‏ 2017,‏ 2:57am UTC](https://meta.discourse.org/t/i-have-an-issue-with-swap-file-2gb-during-installation/57028/6 "2017-02-07T02:57:07Z")

</div>

I suggest resetting your VPS with a clean Ubuntu Server 16.04 install and starting over from scratch.

---

<div class="post-metadata">

### Author: ![elmurph](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elmurph/32/67391_2.png) [@elmurph](https://meta.discourse.org/u/elmurph)
#### Post date: [7 בפברואר,‏ 2017,‏ 2:57am UTC](https://meta.discourse.org/t/i-have-an-issue-with-swap-file-2gb-during-installation/57028/7 "2017-02-07T02:57:59Z")

</div>

Ok I will try that now. Thanks

---

<div class="post-metadata">

### Author: ![elmurph](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elmurph/32/67391_2.png) [@elmurph](https://meta.discourse.org/u/elmurph)
#### Post date: [7 בפברואר,‏ 2017,‏ 3:12am UTC](https://meta.discourse.org/t/i-have-an-issue-with-swap-file-2gb-during-installation/57028/8 "2017-02-07T03:12:44Z")

</div>

[quote=“codinghorror, post:6, topic:57028, full:true”]  
I suggest resetting your VPS with a clean Ubuntu Server 16.04 install and starting over from scratch.  
[/quote]I have done what you said but am still having problem with the swap space stuff. Please what do I do?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [7 בפברואר,‏ 2017,‏ 3:28am UTC](https://meta.discourse.org/t/i-have-an-issue-with-swap-file-2gb-during-installation/57028/9 "2017-02-07T03:28:35Z")

</div>

The easiest thing would be to use digital ocean.

You could try to create a 2gb swap file yourself. If you do that and are still having trouble, include the output from

```
free -h

```
