# Less than 5GB of disk space, can't upgrade Discourse

**URL:** <https://meta.discourse.org/t/less-than-5gb-of-disk-space-cant-upgrade-discourse/107011>\
**Category:** Self-hosting\
**Tags:** server-resources\
**Created:** [January 20, 2019, 9:58am UTC](https://meta.discourse.org/t/less-than-5gb-of-disk-space-cant-upgrade-discourse/107011 "2019-01-20T09:58:44Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![ssvenn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ssvenn/32/86740_2.png) [@ssvenn](https://meta.discourse.org/u/ssvenn)\
**Post date:** [January 20, 2019, 10:26am UTC](https://meta.discourse.org/t/less-than-5gb-of-disk-space-cant-upgrade-discourse/107011/4 "2019-01-20T10:26:55Z")

</div>

use either `du -sh *` and drill down into the large directories or `ncdu` if you have that package available, and try to figure out where exactly your space has gone

if it is user content you will probably have to increase diskspace on your server, but a common problem on servers that run docker for a while is that the default json logging engine never rotates the logs

```
[root@discocent discourse]# cd /var/lib/docker/containers/
[root@discocent containers]# du -sh *
5.1M	86981cd18ab1d8e95e502bf08a1fdc949030cddc29079b53a8e17b2c6a98ba6f
36K	cecf3b8565bce6156c61f61b27af425d0f956b8ce439f2519300ebfdc7bb4cf9
[root@discocent containers]# cd 86981cd18ab1d8e95e502bf08a1fdc949030cddc29079b53a8e17b2c6a98ba6f/
[root@discocent 86981cd18ab1d8e95e502bf08a1fdc949030cddc29079b53a8e17b2c6a98ba6f]# ls -lh
total 5.1M
-rw-r-----. 1 root root 5.0M Jan 16 10:07 86981cd18ab1d8e95e502bf08a1fdc949030cddc29079b53a8e17b2c6a98ba6f-json.log

```

that’s 5M of log for my idle test instance after a couple days, an active server will be larger. if you run other containers they might be logging even more.

You can configure docker to handle log rotation, check out [Configure logging drivers | Docker Docs](https://docs.docker.com/config/containers/logging/configure/) ..not sure why it’s not the default.

---

_[View the full topic](https://meta.discourse.org/t/less-than-5gb-of-disk-space-cant-upgrade-discourse/107011)._
