WordPress.org

Forums

BackWPup Free - WordPress Backup Plugin
Huge files being created (8GB) (7 posts)

  1. David Robinson
    Member
    Posted 10 months ago #

    I set up the plugin to make backups to folders for a client. They started off at around 30MB. I got an email from my client saying that he has been charged £150 by his hosting provider for sing 1000GB of storage.

    I went into the WP backend and saw that some of the backups were 8GB in size. An example of one of the log files is:

    [09-Aug-2014 07:49:52] PHP Warning: feof(): supplied argument is not a valid stream resource in /export/home/sawtooth/mw133932/webs/www.wheelocks.co.uk/htdocs/wp-content/plugins/backwpup/inc/class-job.php on line 1077
    [09-Aug-2014 07:49:52] PHP Warning: fgets(): supplied argument is not a valid stream resource in /export/home/sawtooth/mw133932/webs/www.wheelocks.co.uk/htdocs/wp-content/plugins/backwpup/inc/class-job.php on line 1078
    [09-Aug-2014 07:49:52] PHP Warning: ftell(): supplied argument is not a valid stream resource in /export/home/sawtooth/mw133932/webs/www.wheelocks.co.uk/htdocs/wp-content/plugins/backwpup/inc/class-job.php on line 1091
    [09-Aug-2014 07:49:52] PHP Warning: feof(): supplied argument is not a valid stream resource in /export/home/sawtooth/mw133932/webs/www.wheelocks.co.uk/htdocs/wp-content/plugins/backwpup/inc/class-job.php on line 1077
    [09-Aug-2014 07:49:52] PHP Warning: fgets(): supplied argument is not a valid stream resource in /export/home/sawtooth/mw133932/webs/www.wheelocks.co.uk/htdocs/wp-content/plugins/backwpup/inc/class-job.php on line 1078
    [09-Aug-2014 07:49:52] PHP Warning: ftell(): supplied argument is not a valid stream resource in /export/home/sawtooth/mw133932/webs/www.wheelocks.co.uk/htdocs/wp-content/plugins/backwpup/inc/class-job.php on line 1091
    [09-Aug-2014 07:49:52] PHP Warning: feof(): supplied argument is not a valid stream resource in /export/home/sawtooth/mw133932/webs/www.wheelocks.co.uk/htdocs/wp-content/plugins/backwpup/inc/class-job.php on line 1077

    Over and over again.

    What has been happening here? If you need me to provide you with any more information please let me know and I will provide it.

    https://wordpress.org/plugins/backwpup/

  2. David Robinson
    Member
    Posted 10 months ago #

    Hello can someone help me with this as I need to get back to the client and his hosting provider with a reason for this occurring.

    I have used BackWPUp on many different hosting providers without issue so I am hoping this is a problem with the hosting provider rather than this plugin. I may have to foot the bill for this and am keen not to.

    Thanks,

    David

  3. labarbiche
    Member
    Posted 10 months ago #

    Hi David,

    I've a dedicated server for my wordpress sites, so I wasn't charged £150 :)
    I ran into a similar probem (the apache error.log was growing very quickly / the BackWPUp admin panel was not responding, but it seems that a job was running and stuck near 11%), with the same kind of error message:

    feof() expects parameter 1 to be resource, boolean given in /home/...onMyServer.../wordpress/wp-content/plugins/backwpup/inc/class-job.php on line 1077

    Then I found that directory
    /home/...onMyServer.../wordpress/wp-content/uploads/backwpup-7c5caf-temp

    In that directory I found out that a file named backwpup-working.php contained an incorrect log path.

    I (made a backup then) deleted the whole backwpup-7c5caf-temp directory.

    I restarted the apache2 service. The error went away.

    I think it's a bug in backwpup when
    - you move your wordpress directory on disk and
    - you upgrade backwpup (but I don't remember from which version... I made several upgrades)

    Hope this helps...
    Labarbiche

    Please note: I've replaced in this post my wordpress location on disk with /home/...onMyServer.../wordpress

  4. kathieker
    Member
    Posted 7 months ago #

    Hi, not sure where to post this. I am receiving similar error on a WP site I created for a client. Her hosting company contacted her stating they are received these errors. I have the STAY Theme. Sooo confused.

    Here are some of the errors and the are growing!

    [Wed Dec 03 07:26:17 2014] [warn] [client 157.55.39.65] mod_fcgid: stderr: PHP Warning: fgets() expects parameter 1 to be resource, boolean given in /var/www/vhosts/stonylakefurniture.ca/httpdocs/wp-content/themes/stay-wpcom/header.php on line 70
    [Wed Dec 03 07:26:17 2014] [warn] [client 157.55.39.65] mod_fcgid: stderr: PHP Warning: feof() expects parameter 1 to be resource, boolean given in /var/www/vhosts/stonylakefurniture.ca/httpdocs/wp-content/themes/stay-wpcom/header.php on line 69

  5. kathieker
    Member
    Posted 7 months ago #

    Please help, the hosting company is about to shut the website down :(

  6. Daniel Hüsken
    Member
    Plugin Author

    Posted 7 months ago #

    @kathieker: has nothing todo with BackWPup.

    @David Robinson: Sorry, for the late dely i have improved that so that the error not longer comes

  7. damien_vancouver
    Member
    Posted 4 months ago #

    @kathieker: has nothing todo with BackWPup.

    Nice attitude! Actually, it has everything to do with BackWPUp. A design flaw in the plugin causes it to DoS any server it's running on if the path to the website files change. This sharp edge needs to be adequately documented at the very least, if not mitigated by proper sanitization of the log path before trying to use it.

    The PHP error in question can and hopefully now is tested for in code, preventing the plugin from doing anything catastrophic like writing endlessly as fast as it can to the PHP error log (which will completely take down any server regardless of hosting company).

    If you are having this problem don't worry, you can fix it by either removing wp-content/plugins/BackWPUp from your codebase, or moving it to another location. Then you can address the problem (by removing the temporary files as suggested in @labarbiche answer above, or hopefully by upgrading the plugin to the latest version).

    Of course upgrading is impossible if you have just moved your site and now the whole server is down.. your only option to get back online in that case is to remove/move the wp-content/plugins/BackWPUp folder so that WordPress loads without it.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.