# Message if you don't have enough space for installation

**URL:** https://meta.discourse.org/t/message-if-you-dont-have-enough-space-for-installation/56667
**Category:** Feature
**Created:** [2017年一月31日 19:09 UTC](https://meta.discourse.org/t/message-if-you-dont-have-enough-space-for-installation/56667 "2017-01-31T19:09:30Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![JohnGinger](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@JohnGinger](https://meta.discourse.org/u/JohnGinger)
#### Post date: [2017年一月31日 19:09 UTC](https://meta.discourse.org/t/message-if-you-dont-have-enough-space-for-installation/56667/1 "2017-01-31T19:09:30Z")

</div>

I had problems installing because there wasn’t enough space on the virtual machine for discourse, I tried to have a look to see if this is an existing issue but I can’t find anything.

How easy would it be to add a quick check before running the install script to check that there is enough space?

I could put in a pull request if it would be easy / generally helpful.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [2017年一月31日 21:35 UTC](https://meta.discourse.org/t/message-if-you-dont-have-enough-space-for-installation/56667/2 "2017-01-31T21:35:09Z")

</div>

> [@JohnGinger](#):
>
> How easy would it be to add a quick check before running the install script to check that there is enough space?

We already do

> <https://github.com/discourse/discourse_docker/blob/master/discourse-setup#L54>

Maybe it’s not working in your VM?

---

<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: [2017年一月31日 21:35 UTC](https://meta.discourse.org/t/message-if-you-dont-have-enough-space-for-installation/56667/3 "2017-01-31T21:35:22Z")

</div>

Hmm. The script currently checks that there is 5GB available. Did you have more than that, and if so, was it not enough? Is it possible that the VM lied about how much space was available?

On an install I did today, Discourse, Docker, and the OS (Ubuntu 16.04) take up 6.6GB. Discourse itself is 75MB. `/var/lib/docker` is 4.4GB. 5GB seems like a pretty reasonable requirement.

---

<div class="post-metadata">

### Author: ![JohnGinger](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@JohnGinger](https://meta.discourse.org/u/JohnGinger)
#### Post date: [2017年一月31日 22:51 UTC](https://meta.discourse.org/t/message-if-you-dont-have-enough-space-for-installation/56667/4 "2017-01-31T22:51:27Z")

</div>

Hmm, thats very odd.

It was an 8GB AWS Ubuntu 16.04 instance, which had some other things installed on it, I still have the snapshot if there is anything helpful I can do to debug it.

Increasing the space made it work, so I’m pretty confident it was the space that was the issue, but I’m not sure why this script didn’t work.

Thanks for the help.

---

<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: [2017年二月1日 03:40 UTC](https://meta.discourse.org/t/message-if-you-dont-have-enough-space-for-installation/56667/5 "2017-02-01T03:40:53Z")

</div>

Did you have less than 5gb space available?

---

<div class="post-metadata">

### Author: ![JohnGinger](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@JohnGinger](https://meta.discourse.org/u/JohnGinger)
#### Post date: [2017年二月1日 12:20 UTC](https://meta.discourse.org/t/message-if-you-dont-have-enough-space-for-installation/56667/6 "2017-02-01T12:20:54Z")

</div>

I’m not sure how much space was left before installing, I didn’t think to check, but after running ./discourse-setup df -h gives

```
Filesystem Size Used Avail Use% Mounted on
udev 476M 0 476M 0% /dev
tmpfs 100M 4.7M 95M 5% /run
/dev/xvda1 7.8G 6.1G 1.4G 82% /
tmpfs 496M 0 496M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 496M 0 496M 0% /sys/fs/cgroup
/dev/loop0 145M 145M 0 100% /snap/rocketchat-server/451
/dev/loop1 77M 77M 0 100% /snap/core/888
tmpfs 100M 0 100M 0% /run/user/1000

```

---

<div class="post-metadata">

### Author: ![David\_Collantes](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david_collantes/32/87919_2.png) [@David\_Collantes](https://meta.discourse.org/u/David_Collantes)
#### Post date: [2017年二月1日 12:27 UTC](https://meta.discourse.org/t/message-if-you-dont-have-enough-space-for-installation/56667/7 "2017-02-01T12:27:01Z")

</div>

Could you edit and use three grave accents at the beginning and three at the end of the `df -h` output? Will make it more legible.

---

<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: [2017年二月1日 12:36 UTC](https://meta.discourse.org/t/message-if-you-dont-have-enough-space-for-installation/56667/8 "2017-02-01T12:36:01Z")

</div>

Nah just indent by 4 spaces, much easier.

---

<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: [2017年二月1日 14:25 UTC](https://meta.discourse.org/t/message-if-you-dont-have-enough-space-for-installation/56667/9 "2017-02-01T14:25:50Z")

</div>

So you have over a GB left. Is this the image you say was broken because of disk space?

---

<div class="post-metadata">

### Author: ![JohnGinger](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@JohnGinger](https://meta.discourse.org/u/JohnGinger)
#### Post date: [2017年二月10日 14:24 UTC](https://meta.discourse.org/t/message-if-you-dont-have-enough-space-for-installation/56667/10 "2017-02-10T14:24:45Z")

</div>

Sorry I’ve been out of the the country for a few days.

Yes this is the one which is broken.

Here is a gist of running sudo ./launcher rebuild app [Discourse install error · GitHub](https://gist.github.com/JohnGinger/a3a3ea29d96e0d09d70f093fc33129b4)
