• Resolved emilygraham

    (@emilygraham)


    Hi there, i am trying to backup using UpdraftPlus, but get the error ‘You have less than 35 MB of free disk space on the disk which UpdraftPlus is configured to use to create backups. UpdraftPlus could well run out of space. Contact your the operator of your server (e.g. your web hosting company) to resolve this issue’

    According to the company that host the website, “this is down to the storage of the application that you are using in Building your website” and that the issue is not with their server since we have a maximum 50GB storage of you website files.

    Any other ideas on what could be causing the issue?

    https://wordpress.org/plugins/updraftplus/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author David Anderson

    (@davidanderson)

    Hi Emily,

    this is down to the storage of the application that you are using in Building your website”

    That’s not correct – it doesn’t refer to remote storage (e.g. Dropbox. Google Drive). This message is the result of calling PHP’s disk_free_space function – https://secure.php.net/disk_free_space – and refers to space on the physical disk that your website is on (i.e. not to your web hosting account quota – but the physical bit of hardware that the site is on).

    If it persists, you’ll want to point your web hosting company to that link, and then they should understand the issue.

    Best wishes,
    David

    Thread Starter emilygraham

    (@emilygraham)

    Thanks David, much appreciated. They have since come back and suggested that i try installing the development version of the plugin (http://updraftplus.com/faqs/devversion), so that if the disk_free_space() check fails, it doesn’t treat that as 0Mb free – since it is reporting 35Mb free (as opposed to 0, which is what the devversion checks for), would this potentially fix the issue and would you recommend installing this as a solution?

    Plugin Author David Anderson

    (@davidanderson)

    Hi Emily,

    That reply you’ve had from them isn’t making much sense… that part of the code is both a) identical in the release and development versions and b) also doesn’t trigger if the disk_free_space() check fails. Here’s the code (in both versions – it’s not had any changes for a long time):

    if ($this->disk_space_check(1048576*35) === false) add_action('all_admin_notices', array($this, 'show_admin_warning_diskspace'));
    
            private function disk_space_check($space) {
                    global $updraftplus;
                    $updraft_dir = $updraftplus->backups_dir_location();
                    $disk_free_space = @disk_free_space($updraft_dir);
                    if ($disk_free_space == false) return -1;
                    return ($disk_free_space > $space) ? true : false;
            }

    The PHP manual – https://secure.php.net/disk_free_space – says that disk_free_space() “Returns the number of available bytes as a float or FALSE on failure.” Note that the function disk_space_check() above returns -1 both if the disk reports zero bytes free, or a failure – and doesn’t trigger the dashboard notice. The dashboard notice can only trigger if disk_free_space() returns something that’s both greater than zero, and less than 35Mb.

    Do you have a vaguely current version of UD installed?

    Thread Starter emilygraham

    (@emilygraham)

    Thanks David, i will go back to them with that. Yes it is the most up to date version, i only installed it (and WordPress) this week.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘You have less than 35 MB of free disk space on the disk’ is closed to new replies.