# Rebuild app complains about diskspace (AWS)

**URL:** <https://meta.discourse.org/t/rebuild-app-complains-about-diskspace-aws/67181>\
**Category:** Self-hosting\
**Created:** [2017年七月31日 17:08 UTC](https://meta.discourse.org/t/rebuild-app-complains-about-diskspace-aws/67181 "2017-07-31T17:08:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![donlucas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/donlucas/32/120794_2.png) [@donlucas](https://meta.discourse.org/u/donlucas)\
**Post date:** [2017年七月31日 17:08 UTC](https://meta.discourse.org/t/rebuild-app-complains-about-diskspace-aws/67181/1 "2017-07-31T17:08:04Z")

</div>

Been trying to walk through the [INSTALL-cloud.md](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md) documentation on an AWS ec2 instance. I’ve virtual linked /var/discourse to a drive with 33GB available but when I execute the ./launcher rebuild app command, I get the following error:

> You have less than 5GB of free space on the disk. You will need more space to continue

Not sure how to proceed. ‘cleaning’ docker images (this is the only image on the host) does not resolve the issue and there are 33GB available on the disk.

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [2017年七月31日 17:12 UTC](https://meta.discourse.org/t/rebuild-app-complains-about-diskspace-aws/67181/2 "2017-07-31T17:12:37Z")

</div>

We are testing for space on Docker folder (defaults to `/var/docker/aufs/`) which is where Docker images live and where having not enough space will fail a rebuild in the middle.

You can find the correct folder that need more space with:

`docker info --format '{{.DockerRootDir}}'`

---

<div class="post-metadata">

**Author:** ![donlucas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/donlucas/32/120794_2.png) [@donlucas](https://meta.discourse.org/u/donlucas)\
**Post date:** [2017年七月31日 17:41 UTC](https://meta.discourse.org/t/rebuild-app-complains-about-diskspace-aws/67181/3 "2017-07-31T17:41:58Z")

</div>

Thank you! That did the trick. I was able to redirect the directory to the proper drive.

---

<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日 18:19 UTC](https://meta.discourse.org/t/rebuild-app-complains-about-diskspace-aws/67181/4 "2017-07-31T18:19:35Z")

</div>

> [@Falco](#):
>
> You can find the correct folder that need more space with:
> 
> docker info --format ‘{{.DockerRootDir}}’

Ooh! Can we add this to `./launcher`? It seems like someone posts about this three times a week.

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [2017年七月31日 18:22 UTC](https://meta.discourse.org/t/rebuild-app-complains-about-diskspace-aws/67181/5 "2017-07-31T18:22:42Z")

</div>

> [@pfaffman](#):
>
> Ooh! Can we add this to ./launcher? It seems like someone posts about this three times a week.

Actually this comes from `launcher`. It checks this folder disk space and alarms the user.

You mean changing the message from:

`You have less than 5GB of free space on the disk`

to

`You have less than 5GB of free space on the disk where /var/docker is located`

?

---

<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日 18:29 UTC](https://meta.discourse.org/t/rebuild-app-complains-about-diskspace-aws/67181/6 "2017-07-31T18:29:53Z")

</div>

That’s what I was saying. It seems to have somehow solved the OP’s problem. But now that I see it here, it seems rather silly.

---

<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年七月31日 23:51 UTC](https://meta.discourse.org/t/rebuild-app-complains-about-diskspace-aws/67181/7 "2017-07-31T23:51:00Z")

</div>

> [@Falco](#):
>
> You mean changing the message from:
> 
> `You have less than 5GB of free space on the disk`
> 
> to
> 
> `You have less than 5GB of free space on the disk where /var/docker is located`

definitely change that please, much better clearer error!

---

<div class="post-metadata">

**Author:** ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)\
**Post date:** [2017年八月1日 00:08 UTC](https://meta.discourse.org/t/rebuild-app-complains-about-diskspace-aws/67181/8 "2017-08-01T00:08:01Z")

</div>

Go one even betterer: put the output of `df -h /var/lib/docker` in there, so people can see the filesystem, mount point, _and_ free space, all in one neat little package.
