Unable to upload backup due to out of disk space

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:


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?


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

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.

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

1 Like

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

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