Uploading backup -> not enough space on disk

AI-generated summary

Uploading backup → not enough space on disk discussion summary:

hedgehog is trying to upload a 14.4MB backup to their VPS but receives a “not enough space on disk” error despite df showing 23% usage. codinghorror wonders if there’s an issue with the VPS, given this is the second unexplained out-of-disk error.

michaeld suggests creating a backup on the VPS first to ensure the public/backups directory exists, as this can cause a function to fail. codinghorror asks if this is a bug.

sam notes that the folder should exist when using Discourse Docker. codinghorror suspects hedgehog is using the official Docker install but asks for clarification.

hedgehog tries creating a backup first but still can’t upload the desired one, which uploads successfully but doesn’t appear in the backup list. michaeld suggests seeking support from the installation script’s author, as this issue may be specific to hedgehog’s setup.

I’m trying to upload a 14.4MB backup to my VPS and get this message after 20%

//cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/original/3X/6/9/690beb2215180e83a5effd4b472f6095c20d65f9.jpg

this is the output of df though:

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/ploop21283p1 11220208 2410508 8285604 23% /
none 4 0 4 0% /sys/fs/cgroup
none 104860 72 104788 1% /run
none 524288 0 524288 0% /dev/shm
none 5120 0 5120 0% /run/lock
none 524288 0 524288 0% /run/shm
none 102400 0 102400 0% /run/user

What could be the cause of this error?

I wonder if there is something wrong with your VPS since this is the second time you have reported unexplainable out of disk errors.

Try making a backup first on that VPS, then upload the existing one.

  def has_enough_space_on_disk?(size)
    `df -Pk #{Rails.root}/public/backups | awk 'NR==2 {print $4 * 1024;}'`.to_i > size
  end

This function fails when the public/backups directory does not exist (making a backup creates it).
Maybe add another check?

Hmm, @techapj can you repro that, is this a bug when the folder does not exist?

If using Discourse Docker the folder will be there.

Based on previous discussions I thought @hedgehog is using our official Docker install for his Discourse.. perhaps he can clarify on this point?

After creating a backup and then uploading the one I want to use I get the message that it uploaded successfully but it never appears in the backup-list. Any ideas?

@codinghorror
After trying the whole weekend I wasn’t able to get Discourse running on the pesky OVH-host so I tried pl3bs’ installation-script. I know I could pay more and get better Discourse-hosting but I’m dead set on the cheap solution just for the sake of beeing able to say “yes, it does work”.

Maybe go there for support? Since this clutters meta with all kinds of weird stuff that never happens to other people.