Unable to upload backup due to out of disk space

סיכום מבוסס בינה מלאכותית

The user, Amethi, encountered issues uploading a 10GB backup to a new server due to an ‘out of disk space’ error, despite having 1.8TB free. The error occurred during a backup upload and later when installing a package via apt-get, which failed due to insufficient space in /var/cache/apt/archives/. The issue was traced to the server’s partition layout, specifically the root (/) partition being full at 100%, while the /home partition had ample space. Amethi realized the problem stemmed from the default template’s partition configuration. After customizing the partition layout and re-provisioning the server, the issue was resolved Amethi. The discussion was noted as more related to server administration than Discourse itself codinghorror.

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?

Thanks.

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?

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.