• Resolved bobjgarrett

    (@bobjgarrett)


    My backups are failing after many attempts. I have tried the suggestions of reducing the block size, increasing memory etc.
    PHP log shows lots of the following:

    [22-Feb-2022 10:15:43 UTC] PHP Warning:  file_exists(): open_basedir restriction in effect. File(C:\Inetpub\vhosts\ccrc.co.uk\httpdocs/wp-content/plugins/https://www.ccrc.co.uk/wp-admin/admin.php) is not within the allowed path(s): (C:/Inetpub/vhosts/ccrc.co.uk\;C:\Windows\Temp\) in C:\Inetpub\vhosts\ccrc.co.uk\httpdocs\wp-admin\menu-header.php on line 256
    [22-Feb-2022 10:15:43 UTC] PHP Warning:  file_exists(): open_basedir restriction in effect. File(C:\Inetpub\vhosts\ccrc.co.uk\httpdocs/wp-content/plugins/https://www.ccrc.co.uk/wp-admin/admin.php) is not within the allowed path(s): (C:/Inetpub/vhosts/ccrc.co.uk\;C:\Windows\Temp\) in C:\Inetpub\vhosts\ccrc.co.uk\httpdocs\wp-admin\menu-header.php on line 256
    [22-Feb-2022 10:15:43 UTC] PHP Warning:  file_exists(): open_basedir restriction in effect. File(C:\Inetpub\vhosts\ccrc.co.uk\httpdocs/wp-content/plugins/https://www.ccrc.co.uk/wp-admin/admin.php) is not within the allowed path(s): (C:/Inetpub/vhosts/ccrc.co.uk\;C:\Windows\Temp\) in C:\Inetpub\vhosts\ccrc.co.uk\httpdocs\wp-admin\menu-header.php on line 256

    Can you suggest a solution?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor bcrodua

    (@bcrodua)

    Hi,

    Please could you send us a copy of the latest full backup log?

    This can be found in the UpdraftPlus Existing Backups tab.
    The contents will be too long to post here directly, but you can use an online service such as Dropbox or Pastebin, and post the link here.

    Regards,
    Bryle

    Thread Starter bobjgarrett

    (@bobjgarrett)

    Plugin Contributor bcrodua

    (@bcrodua)

    Hi,

    Thank you.

    The log shows this “1947.100 (6) The attempt to close the zip file returned an error (Unknown: ZipArchive does not return error messages). List of files we were trying to add follows (check their permissions).”

    The message can mean that the server disk space is already full or file permission is incorrect. Can you please check on that?

    Thanks,
    Bryle

    Thread Starter bobjgarrett

    (@bobjgarrett)

    It all looks correct but can you specify where this file is written to.

    Plugin Contributor bcrodua

    (@bcrodua)

    Hi,

    UpdraftPlus stores the backup in the “wp-content/updraft” folder.

    Regards,
    Bryle

    Thread Starter bobjgarrett

    (@bobjgarrett)

    Thanks for confirming that. This folder does have write enabled and there are numerous files (*.log and *.txt) written in there while the backup process was running.
    The server space is well below the limit and the log shows how much space is available.
    Any other suggestions like further reducing the block size or something?

    Plugin Author David Anderson

    (@davidanderson)

    The first error in the log is this:

    1947.098 (6) PHP event: code E_WARNING: ZipArchive::close(): Renaming temporary file failed: Permission denied (line 3937, C:\Inetpub\vhosts\ccrc.co.uk\httpdocs\wp-content\plugins\updraftplus\backup.php)

    So, it’s some sort of file permissions issue. I’m not an expert on Windows file permissions, but, the problem will be resolved somewhere by adjusting the permissions. It most likely means on the wp-content/updraft folder. From what you’ve said, files can be written there, but, the error message indicates that *something* is still up. If you talk to your server admin, hopefully they will be able to find out what (e.g. can look in the Windows server error log in the administrative tools and there may be more logged there).

    Thread Starter bobjgarrett

    (@bobjgarrett)

    Still struggling to get BackupPlus working again.
    I have resolved one issue on the server found in the php error log and hoped this would fix it but it has not.
    Could you check this log and see if there are any clues as to why it is failing?
    https://www.dropbox.com/s/z8ch290aba4dssw/log.4185a06810f2.txt?dl=0

    Plugin Contributor bcrodua

    (@bcrodua)

    Hi,

    Apologies for the late reply.

    Please can you update the plugin to latest version? Are you still getting the same issue?

    Thanks,
    Bryle

    Thread Starter bobjgarrett

    (@bobjgarrett)

    I got…

    [23-Mar-2022 16:13:08 UTC] PHP Warning:  require(C:\Inetpub\vhosts\xxx\httpdocs\wp-content\plugins\updraftplus\vendor\composer/../paragonie/random_compat/lib/random.php): failed to open stream: No such file or directory in C:\Inetpub\vhosts\xxx\httpdocs\wp-content\plugins\updraftplus\vendor\composer\autoload_real.php on line 73
    [23-Mar-2022 16:13:08 UTC] PHP Fatal error:  require(): Failed opening required 'C:\Inetpub\vhosts\xxx\httpdocs\wp-content\plugins\updraftplus\vendor\composer/../paragonie/random_compat/lib/random.php' (include_path='C:\Inetpub\vhosts\xxx\httpdocs\wp-content\plugins\updraftplus\vendor/phpseclib/phpseclib/phpseclib;.;.\includes;.\pear') in C:\Inetpub\vhosts\xxx\httpdocs\wp-content\plugins\updraftplus\vendor\composer\autoload_real.php on line 73
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Backup Fails ; file exists’ is closed to new replies.