# 无法重建应用，提示磁盘空间少于 5GB

**URL:** <https://meta.discourse.org/t/cant-rebuilt-app-says-you-have-less-than-5gb-space-on-the-disk/106791>\
**Category:** Self-hosting\
**Tags:** server-resources\
**Created:** [2019年一月17日 12:21 UTC](https://meta.discourse.org/t/cant-rebuilt-app-says-you-have-less-than-5gb-space-on-the-disk/106791 "2019-01-17T12:21:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohammad](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mohammad/32/115484_2.png) [@Mohammad](https://meta.discourse.org/u/Mohammad)\
**Post date:** [2019年一月17日 12:21 UTC](https://meta.discourse.org/t/cant-rebuilt-app-says-you-have-less-than-5gb-space-on-the-disk/106791/1 "2019-01-17T12:21:19Z")

</div>

Hi I am finding it quite difficult to update my discourse through PuTTY. When I run the command

```
cd /var/discourse
git pull
./launcher rebuild app

```

I get the following message

> You have less than 5GB of free space on the disk where /var/lib/docker is located. You will need more space to continue  
> Filesystem Size Used Avail Use% Mounted on  
> /dev/disk/by-label/DOROOT 30G 24G 4.2G 86% /  
> Would you like to attempt to recover space by cleaning docker images and containers in the system?(y/N)

When I hit Y, it simply keep showing this message and nothing happens:

> Total reclaimed space: 0B  
> If the cleanup was successful, you may try again now

Please help on how to solve it. When I check my discourse backup, its just less than 500MB and I wonder how come I have used up all the space?

---

<div class="post-metadata">

**Author:** ![fhe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fhe/32/113345_2.png) [@fhe](https://meta.discourse.org/u/fhe)\
**Post date:** [2019年一月17日 12:36 UTC](https://meta.discourse.org/t/cant-rebuilt-app-says-you-have-less-than-5gb-space-on-the-disk/106791/2 "2019-01-17T12:36:40Z")

</div>

> [@Mohammad](#):
>
> When I check my discourse backup, its just less than 500MB and I wonder how come I have used up all the space?

Discourse needs much more disk space than the size of the backup, in fact it’s the complete Discourse docker image that runs a database server, redis and much more plus all the uncompressed data.

You can check the real occupied space on your system via  
`df -h`

Although it might be already performed by recovering space during rebuild, you can try this

```
apt-get autoclean
apt-get autoremove
cd /var/discourse
./launcher cleanup

```

---

<div class="post-metadata">

**Author:** ![Mohammad](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mohammad/32/115484_2.png) [@Mohammad](https://meta.discourse.org/u/Mohammad)\
**Post date:** [2019年一月17日 13:02 UTC](https://meta.discourse.org/t/cant-rebuilt-app-says-you-have-less-than-5gb-space-on-the-disk/106791/3 "2019-01-17T13:02:46Z")

</div>

Thank you that was a life saver!

---

<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:** [2019年二月16日 13:02 UTC](https://meta.discourse.org/t/cant-rebuilt-app-says-you-have-less-than-5gb-space-on-the-disk/106791/4 "2019-02-16T13:02:48Z")

</div>

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