# Not enough disk space for upgrade when Postgres is upgraded

**URL:** <https://meta.discourse.org/t/not-enough-disk-space-for-upgrade-when-postgres-is-upgraded/86966>\
**Category:** Self-hosting\
**Tags:** server-resources\
**Created:** [May 8, 2018, 5:40am UTC](https://meta.discourse.org/t/not-enough-disk-space-for-upgrade-when-postgres-is-upgraded/86966 "2018-05-08T05:40:20Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![gauthier](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gauthier/32/59292_2.png) [@gauthier](https://meta.discourse.org/u/gauthier)\
**Post date:** [May 8, 2018, 5:40am UTC](https://meta.discourse.org/t/not-enough-disk-space-for-upgrade-when-postgres-is-upgraded/86966/1 "2018-05-08T05:40:21Z")

</div>

Hello,

Due to a disk place problem, i cannot upgrade my installation since long time.  
I’m curruntly using v2.0.0beta1…

I’ve 20gb on my VPS and i’ve 5.6gb free  
I’ve alredy delete backups and lot of uploads…

When i try to upgrade, i’ve this:

```
WARNING: Docker version 17.05.0-ce deprecated, recommend upgrade to 17.06.2 or newer.

WARNING: We are about to start downloading the Discourse base image
This process may take anywhere between a few minutes to an hour, depending on your network speed

Please be patient

Unable to find image 'discourse/base:2.0.20171231' locally
2.0.20171231: Pulling from discourse/base
50aff78429b1: Pulling fs layer
f6d82e297bce: Pulling fs layer
275abb2c8a6f: Pulling fs layer
9f15a39356d6: Pulling fs layer
fc0342a94c89: Pulling fs layer
35787b1294ac: Pulling fs layer
9f15a39356d6: Waiting
fc0342a94c89: Waiting
35787b1294ac: Waiting
275abb2c8a6f: Verifying Checksum
275abb2c8a6f: Download complete
f6d82e297bce: Verifying Checksum
f6d82e297bce: Download complete
9f15a39356d6: Verifying Checksum
9f15a39356d6: Download complete
fc0342a94c89: Verifying Checksum
fc0342a94c89: Download complete
50aff78429b1: Verifying Checksum
50aff78429b1: Download complete
50aff78429b1: Pull complete
f6d82e297bce: Pull complete
275abb2c8a6f: Pull complete
9f15a39356d6: Pull complete
fc0342a94c89: Pull complete
35787b1294ac: Verifying Checksum
35787b1294ac: Download complete
35787b1294ac: Pull complete
Digest: sha256:5452defe724d2940ae2fd11ec690fbcd1d49cf7607ca9044502f2817c0f76647
Status: Downloaded newer image for discourse/base:2.0.20171231
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/vda1 20G 16G 3.8G 81% /

Would you like to attempt to recover space by cleaning docker images and containers in the system?(y/N)y
WARNING! This will remove:
        - all stopped containers
        - all volumes not used by at least one container
        - all networks not used by at least one container
        - all dangling images
Are you sure you want to continue? [y/N] y
Total reclaimed space: 0B
If the cleanup was successful, you may try again now

```

What can i do?

Ncdu tell me that:

```
--- /var --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
. 12.6 GiB [##########] /lib
    4.4 GiB [###] /discourse
   65.0 MiB [] /cache

--- /var/lib ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
   12.4 GiB [##########] /docker
  142.2 MiB [] /apt
   43.0 MiB [] /dpkg

--- /var/lib/docker ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
   12.1 GiB [##########] /aufs
  315.7 MiB [] /containers
   15.4 MiB [] /image
   60.0 KiB [] /network
   28.0 KiB [] /volumes
   20.0 KiB [] /plugins
e 4.0 KiB [] /trust
e 4.0 KiB [] /tmp-old
e 4.0 KiB [] /tmp
e 4.0 KiB [] /swarm

```

Is it normal?  
Thanks

---

_[View the full topic](https://meta.discourse.org/t/not-enough-disk-space-for-upgrade-when-postgres-is-upgraded/86966)._
