Forums

BackUpWordPress
Backup fails after Update to Version 1.6.2 (45 posts)

  1. myblog@0112
    Member
    Posted 4 months ago #

    Hi all,

    after the newest update I get the following error messages:

    zip: sh: /usr/bin/zip: No such file or directory
    zip: The backup file was not created
    pclzip: PCLZIP_ERR_READ_OPEN_FAIL (-2) : Unable to open temporary file '/var/www/vhosts/domain/blog/wp-content/backupspclzip-4f04cdb462937.tmp' in binary write mode

    Before I used this wonderful Plugin for "years". Any idea?
    Thanks

    http://wordpress.org/extend/plugins/backupwordpress/

  2. Tom Willmot
    Member
    Posted 4 months ago #

    Hi myblog,

    Thanks for the error report, looks like this is a bug in the PclZip tmp path.

    Could you try adding the following line to your wp-config.php

    define( 'PCLZIP_TEMPORARY_DIR', ABSPATH . 'wp-content/backups/' );

  3. myblog@0112
    Member
    Posted 4 months ago #

    Hi Tom,
    after I inserted the code line into the wp-config.php file. The pclzip message has disappeared.

    The following error message is still being displayed:

    zip: sh: /usr/bin/zip: No such file or directory
    zip: The backup file was not created

    When I look into the backup folder during a started backup process, I can see the following temp files:

    .backup_running
    database_name.sql
    name.backup.2012-01-01-23-03-05.zip (actual date and time during process time)
    name.backup.2012-01-01-23-03-05.zip.mq23x1

    after the backup is done, the following files are left in the directory:

    .backup_errors
    .htaccess
    name.backup.2011-12-31-23-06-35.zip (the old and exiting backups)
  4. Tom Willmot
    Member
    Posted 4 months ago #

    Excellent thanks for reporting back.

    I've now know what the issue is and will have a fix out in 1.6.3 asap.

  5. sidewalkstv
    Member
    Posted 4 months ago #

    Hi,
    I'm not an expert on any of this (i.e. coding), but my recent update is now having problems. Backing up was fine until I updated the other day (I just downloaded the latest patch you released today). This is still not working. I have been getting this statement:

    BackUpWordPress detected issues with your last backup.
    zip: zip warning: No such file or directory zip warning: Permission denied

    Help!

  6. myblog@0112
    Member
    Posted 4 months ago #

    Thanks Tom,

    for this quick reaction. Now it's working fine. Even removing define( 'PCLZIP_TEMPORARY_DIR', ABSPATH . 'wp-content/backups/' ); is ok now.

    Great and a good New Year to you.

  7. myblog@0112
    Member
    Posted 4 months ago #

    @sidewalkstv has it ever worked on your system? It looks like there is a permission problem! Try setting the directory permission of:
    /wp-content/backups
    to 777, to see if that solves the problem.

    myblog@0112

  8. trendyweb
    Member
    Posted 4 months ago #

    I had the same problem with 1.6.2

    After updating to 1.6.3 it became worse. I now get:

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/local/bin/mysqldump) is not within the allowed path(s): (/home/domain/:/tmp:/var/tmp:/usr/local/lib/php/) in /home/domain/domains/domain.com/public_html/main/wp-content/plugins/backupwordpress/hm-backup/hm-backup.php on line 714

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/local/mysql/bin/mysqldump) is not within the allowed path(s): (/home/domain/:/tmp:/var/tmp:/usr/local/lib/php/) in /home/domain/domains/domain.com/public_html/main/wp-content/plugins/backupwordpress/hm-backup/hm-backup.php on line 714

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/mysql/bin/mysqldump) is not within the allowed path(s): (/home/domain/:/tmp:/var/tmp:/usr/local/lib/php/) in /home/domain/domains/domain.com/public_html/main/wp-content/plugins/backupwordpress/hm-backup/hm-backup.php on line 714

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/bin/mysqldump) is not within the allowed path(s): (/home/domain/:/tmp:/var/tmp:/usr/local/lib/php/) in /home/domain/domains/domain.com/public_html/main/wp-content/plugins/backupwordpress/hm-backup/hm-backup.php on line 714

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/opt/local/lib/mysql6/bin/mysqldump) is not within the allowed path(s): (/home/domain/:/tmp:/var/tmp:/usr/local/lib/php/) in /home/domain/domains/domain.com/public_html/main/wp-content/plugins/backupwordpress/hm-backup/hm-backup.php on line 714

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/opt/local/lib/mysql5/bin/mysqldump) is not within the allowed path(s): (/home/domain/:/tmp:/var/tmp:/usr/local/lib/php/) in /home/domain/domains/domain.com/public_html/main/wp-content/plugins/backupwordpress/hm-backup/hm-backup.php on line 714

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/opt/local/lib/mysql4/bin/mysqldump) is not within the allowed path(s): (/home/domain/:/tmp:/var/tmp:/usr/local/lib/php/) in /home/domain/domains/domain.com/public_html/main/wp-content/plugins/backupwordpress/hm-backup/hm-backup.php on line 714
    1
    ✓ Automatic backups are disabled.

  9. sidewalkstv
    Member
    Posted 4 months ago #

    Hi myblog, everything was working perfectly until the update. As I said, the latest patch doesn't fix it either. The only thing I noticed before the update, BackUp wasn't creating a daily backup...but it looked like it did make a backup after I created a new post.

  10. sidewalkstv
    Member
    Posted 4 months ago #

    Another thing myblog, I did change my permission to 777 as you mentioned, and the same thing pops up -- zip: zip warning: Permission denied.

  11. myblog@0112
    Member
    Posted 4 months ago #

    @Tom,

    all seems to work fine now, expect one thing. This message appears in the backend, despite the backup files are being created.

    BackUpWordPress detected issues with your last backup.Dismiss
    zip: The backup file was not created

    Any ideas?
    myblog

  12. ChrJFri
    Member
    Posted 4 months ago #

    To Tom, I also get the error message that myblog reported 4 days ago.At the end of the routine I get a report in Manage Backups that a backup was done but the backup file is 618B only. Backup runs for several minutes. At first I thought everything was fine until I tried your Restore instructions and realized I had nothing in case of disaster. The sql file seems to be created (1.4MB) but disappears once the process ends. Any thoughts on what might be wrong on my side and steps to correct. Thank You.

  13. Tom Willmot
    Member
    Posted 4 months ago #

    Thanks for reporting your issues everyone.

    The message

    zip: The backup file was not created

    Does not mean your backup didn't work, just that it failed using the command line zip command, in that case backupwordpress uses either ziparchive or pclzip. The message will be removed in a future version.

    @ChrJFri could you email me off list so I can debug your issue in more detail support@humanmade.co.uk

  14. Tom Willmot
    Member
    Posted 4 months ago #

    @trendyweb could you try the development version of backupwordpress and see if that fixes the issue.

  15. ChrJFri
    Member
    Posted 4 months ago #

    Thanks for the quick reply Tom ! Just wrote as requested.

  16. trendyweb
    Member
    Posted 4 months ago #

    I'd try the development version if I could find it?

  17. myblog@0112
    Member
    Posted 4 months ago #

    @trendyweb

    look here at the end of the page!

    @Tom Thanks

    myblog

  18. trendyweb
    Member
    Posted 4 months ago #

    @myblog@0112
    ok thanks, found it.
    Unfortunately, no change.
    I suspect this has something to do with me running Php 5.2.17 ?

  19. pfrancois
    Member
    Posted 4 months ago #

    Probably the same problem here. More information:
    1. The zip file doesn't include any SQL dump file.
    2. I can't download the zip file from the dashboard.
    3. The error.log file of apache contain next lines:

    [Tue Jan 10 13:00:52 2012] [crit] [client 83.101.90.47] (13)Permission denied: /var/sites/www.romanliturgy.org/wordpress/wp-content/backups/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://www.romanliturgy.org/wordpress/wp-admin/tools.php?page=backupwordpress
    [Tue Jan 10 13:03:13 2012] [crit] [client 83.101.90.47] (13)Permission denied: /var/sites/www.romanliturgy.org/wordpress/wp-content/backups/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://www.romanliturgy.org/wordpress/wp-admin/tools.php?page=backupwordpress

    4. When I change the permissions of the .htaccess file into -rw--r--r--, the problem is not solved and the previous rights -rw-------- are restored after a manual backup.

  20. trendyweb
    Member
    Posted 4 months ago #

    @myblog@0112
    Just to make things clear, the last version that works without problems is 1.5.1

  21. myblog@0112
    Member
    Posted 4 months ago #

    @trendyweb have you tried to roll back your last working version?

  22. trendyweb
    Member
    Posted 4 months ago #

    @myblog@0112
    Yes, I am running 1.5.1 now.
    Anything later gives errors.

  23. ChrJFri
    Member
    Posted 4 months ago #

    @myblog, for those of us who never d'loaded 1.5.1, where can we find a copy to try ? Thx.

  24. myblog@0112
    Member
    Posted 4 months ago #

    @ChrJFri

    Here we are: Download Page and
    Download Version 1.5.1

    myblog

  25. ChrJFri
    Member
    Posted 4 months ago #

    Thanks myblog ! Will try it and report back.

  26. ChrJFri
    Member
    Posted 4 months ago #

    @myblog. Process has been running for an hour now and seems to just hang there. This is 1.5.1 as suggested. I can email a screenshot if you like.

  27. pfrancois
    Member
    Posted 4 months ago #

    With version 1.5.1, I can download the zip file from the dashboard, which is already a progress, but I can't make a backup manually, and no error message is appearing. So, downgrading to 1.5.1 doesn't solve my problem.

  28. ChrJFri
    Member
    Posted 4 months ago #

    My last backup with 1.5.1 failed as well. It seemed to be running for several hours from what I could see in Filezilla and even started creating the .sql file, said backup is running etc.. When I checked back in to Filezilla this morning it did not show a new entry for 1/10. The last entry is for 1/9 but that was done with 1.6.3 and is less than 1Kb in size. I managed to do a manual backup of the .sql through the GoDaddy host and that one completed well and is 1.3MB in size. Hope you can fix this, manual backups with GoDaddy are a pain. Thanks...

  29. Tom Willmot
    Member
    Posted 4 months ago #

    I've just released 1.6.4, I'd love an update on whether that resolves the various issues discussed in this thread.

  30. myblog@0112
    Member
    Posted 4 months ago #

    @Tom,

    thanks for the update and your time solving this issues. Even the message:

    BackUpWordPress detected issues with your last backup. Dismiss
    zip: The backup file was not created

    has now disappeared.

    thanks myblog

Reply »

You must log in to post.

About this Plugin

About this Topic