# Unable to upload backup due to out of disk space

**URL:** https://meta.discourse.org/t/unable-to-upload-backup-due-to-out-of-disk-space/104832
**Category:** Self-hosting
**Tags:** server-resources
**Created:** [21.Декабрь.2018 10:50:45 UTC](https://meta.discourse.org/t/unable-to-upload-backup-due-to-out-of-disk-space/104832 "2018-12-21T10:50:45Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Amethi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/amethi/32/88690_2.png) [@Amethi](https://meta.discourse.org/u/Amethi)
#### Post date: [21.Декабрь.2018 10:50:45 UTC](https://meta.discourse.org/t/unable-to-upload-backup-due-to-out-of-disk-space/104832/1 "2018-12-21T10:50:45Z")

</div>

Hi, I’m trying to do an emergency migration to a new server (old one is fubar, site offline!) and when uploading my backup from the old server to the new one I get this lovely message after about 37% through the upload:

 ![image](https://global.discourse-cdn.com/meta/original/3X/7/b/7be6935aecd5fa90fd273cae665ade88c31c84b8.png)

The backup is 10GB and the server has 1.8TB free.

I did see another post about uploading the backup to the server and then transferring it internally into the container but that was for a Mac installation and didn’t work for me (I’m running Ubuntu 18.04).

I have managed to upload the backup to the server though, so my question is either:

1 - How can I fix the browser error?  
2 - How could I transfer the backup into the container when it’s on the server already?

Thanks.

---

<div class="post-metadata">

### Author: ![Amethi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/amethi/32/88690_2.png) [@Amethi](https://meta.discourse.org/u/Amethi)
#### Post date: [21.Декабрь.2018 11:00:03 UTC](https://meta.discourse.org/t/unable-to-upload-backup-due-to-out-of-disk-space/104832/2 "2018-12-21T11:00:03Z")

</div>

Oh, perhaps related. I just tried to complete the Discourse install by adding another package and got this space error:

```
apt-get install libpam-cracklib
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  cracklib-runtime libcrack2 wamerican
The following NEW packages will be installed:
  cracklib-runtime libcrack2 libpam-cracklib wamerican
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 385 kB of archives.
After this operation, 1,831 kB of additional disk space will be used.
E: You don't have enough free space in /var/cache/apt/archives/.

```

Using my minimal bash skills I can see this for free space:

```
# df -h
Filesystem Size Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3.2G 956K 3.2G 1% /run
/dev/md3 20G 19G 0 100% /
tmpfs 16G 0 16G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/md2 487M 78M 380M 17% /boot
/dev/sda1 510M 6.1M 504M 2% /boot/efi
/dev/md4 1.8T 68M 1.7T 1% /home
tmpfs 3.2G 0 3.2G 0% /run/user/0
overlay 20G 19G 0 100% /var/lib/docker/overlay2/5662fd7e3e531af9e63790ca20126d62254bb2268d70efe799d6830818baf0d8/merged
shm 512M 0 512M 0% /var/lib/docker/containers/15955103d8bf3ca844db5cf570bceaed5162e47c9ec4cc10e636e5c9d4eac63d/mounts/shm

```

---

<div class="post-metadata">

### Author: ![Amethi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/amethi/32/88690_2.png) [@Amethi](https://meta.discourse.org/u/Amethi)
#### Post date: [21.Декабрь.2018 11:10:28 UTC](https://meta.discourse.org/t/unable-to-upload-backup-due-to-out-of-disk-space/104832/3 "2018-12-21T11:10:28Z")

</div>

I’m a little out of my depth here, but I think it’s because the partition layout in the template my host provides by default is not giving enough space where I need it.

I am able to change the partition configuration when provisioning the server so hopefully can fix this.

---

<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: [21.Декабрь.2018 11:12:57 UTC](https://meta.discourse.org/t/unable-to-upload-backup-due-to-out-of-disk-space/104832/4 "2018-12-21T11:12:57Z")

</div>

This really doesn’t have anything to do with Discourse, this is more of a “how to admin a server” type of question?

---

<div class="post-metadata">

### Author: ![Amethi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/amethi/32/88690_2.png) [@Amethi](https://meta.discourse.org/u/Amethi)
#### Post date: [21.Декабрь.2018 11:13:29 UTC](https://meta.discourse.org/t/unable-to-upload-backup-due-to-out-of-disk-space/104832/5 "2018-12-21T11:13:29Z")

</div>

Seems to be developing that way. Sorry. More of a Windows guy 🙂

---

<div class="post-metadata">

### Author: ![Amethi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/amethi/32/88690_2.png) [@Amethi](https://meta.discourse.org/u/Amethi)
#### Post date: [21.Декабрь.2018 15:30:06 UTC](https://meta.discourse.org/t/unable-to-upload-backup-due-to-out-of-disk-space/104832/6 "2018-12-21T15:30:06Z")

</div>

All fixed! Had to customise the partition layout and re-provision the server.

---

<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: [21.Декабрь.2018 23:10:56 UTC](https://meta.discourse.org/t/unable-to-upload-backup-due-to-out-of-disk-space/104832/7 "2018-12-21T23:10:56Z")

</div>


