• Resolved Tustinuggee Thlocco

    (@zharleydudegmailcom)


    Backups retries and timeouts cause backups to fail,
    even when only set to 1,096 file size and only backing up uploads.
    Many retries and timeouts once it completes the first 4 zip files
    of uploads. Site is only 15gb.
    So far host’s attempts have failed to fix the problem,
    with the Uploads backups dying, after many resumptions (7 last time) before dying.

    From the Updraftplus log:

    0000.002 (0) UpdraftPlus WordPress backup plugin (https://updraftplus.com): 1.16.62 WP: 5.8.1 PHP: 7.4.24 (cgi-fcgi, Linux just2053.justhost.com 4.19.150-76.ELK.el7.x86_64 #1 SMP Wed Oct 7 01:33:43 CDT 2020 x86_64) MySQL: 5.7.23-23 (max packet size=268435456) WPLANG: en_US Server: Apache safe_mode: 0 max_execution_time: 900 memory_limit: 512M (used: 54.1M | 56.5M) multisite: N openssl: OpenSSL 1.1.1l  24 Aug 2021 mcrypt: N LANG:  ZipArchive::addFile: Y
    0000.043 (0) Free space on disk containing Updraft's temporary directory: 1104350.2 MB
    0000.046 (0) Tasks: Backup files: 1 (schedule: manual) Backup DB: 1 (schedule: manual)
    0000.048 (0) Requesting semaphore lock (fd) (apparently not via scheduler)
    0000.049 (0) Semaphore (fd, wp_dagd_options) was stuck, set lock time to 2021-10-17 08:13:30
    0000.050 (0) Semaphore (fd, wp_dagd_options) reset to 1
    0000.050 (0) Set semaphore last lock (fd) time to 2021-10-17 08:13:30
    0000.050 (0) Semaphore lock (fd) complete
    0000.052 (0) Backup run: resumption=0, nonce=0cea5188bcd2, file_nonce=0cea5188bcd2 begun at=1634458410 (0s ago), job type=backup
    0000.053 (0) Scheduling a resumption (1) after 300 seconds (1634458710) in case this run gets aborted

    —at the end of this log:

    2403.625 (7) Beginning creation of dump of uploads (split every: 1096 MB)
    2403.859 (7) Opened log file at time: Sun, 17 Oct 2021 08:53:34 +0000 on https://www.saumcvb.org
    2403.860 (7) UpdraftPlus WordPress backup plugin (https://updraftplus.com): 1.16.62 WP: 5.8.1 PHP: 7.4.24 (cgi-fcgi, Linux just2053.justhost.com 4.19.150-76.ELK.el7.x86_64 #1 SMP Wed Oct 7 01:33:43 CDT 2020 x86_64) MySQL: 5.7.23-23 (max packet size=268435456) WPLANG: en_US Server: Apache safe_mode: 0 max_execution_time: 900 memory_limit: 512M (used: 49.8M | 52.5M) multisite: N openssl: OpenSSL 1.1.1l  24 Aug 2021 mcrypt: N LANG:  ZipArchive::addFile: Y
    2403.905 (7) Free space on disk containing Updraft's temporary directory: 1099534.6 MB
    2403.907 (7) Requesting backup semaphore lock (0cea5188bcd2)
    2403.909 (7) [Debug] Lock option (updraft_lock_0cea5188bcd2, wp_dagd_options) already existed in the database
    2403.909 (7) [Info] Lock (updraft_lock_0cea5188bcd2, wp_dagd_options) could not be acquired (it is locked)
    2403.909 (7) Failed to gain semaphore lock (0cea5188bcd2) - another resumption for this job is apparently already active
    2403.910 (7) Failed to get backup job lock; possible overlapping resumptions - will abort this instance

    It never completes…. Host says they have fixed PHP…

    allow_url_fopen = On
    display_errors = Off
    enable_dl = Off
    file_uploads = On
    max_execution_time = 600
    max_input_time = 600
    max_input_vars = 3000
    memory_limit = 512M
    post_max_size = 1024M
    session.gc_maxlifetime = 1440
    session.save_path = "/var/cpanel/php/sessions/ea-php74"
    upload_max_filesize = 1024M
    zlib.output_compression = Off

    Last Error Message from UpdraftPlus:
    Failed to get backup job lock; possible overlapping resumptions – will abort this instance (Oct 17 04:53:34)

    Any ideas would be appreciated.
    No problem backing up themes, etc., only Uploads.
    Thanks.

Viewing 15 replies - 1 through 15 (of 20 total)
  • Thread Starter Tustinuggee Thlocco

    (@zharleydudegmailcom)

    Info from my host in working to resolve:

    I have reviewed the backup log file which you have provided. In order to replicate the issue. I have initiated the backup in Updraft and received the same error in the backup log as you have provided. It looks like PHP version 7.4 which is set to the website or any other plugin is creating the conflict and due to this the backup process is failing:
    
    I noticed the following Apache and PHP errors while creating the Updraft backup:
    
    Apache log:
    
    Mon Oct 18 00:14:30.589034 2021] [core:crit] [pid 360007:tid 22451909887744] (1)Operation not permitted: [client 1.186.48.58:29123] AH00529: /home2/saumcvbo/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/home2/saumcvbo/public_html/' is executable, referer: https://www.saumcvb.org/wp-admin/options-general.php?page=updraftplus
    
    PHP error log:
    
    [18-Oct-2021 00:42:53 UTC] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 1136621376 bytes) in /home2/saumcvbo/public_html/wp-content/plugins/updraftplus/backup.php on line 4249
    
    The PHP memory limit exceeding is looked like an issue related to the PHP version. If you want us to downgrade the PHP version to 7.2 and check, please do let us know.
    
    I have also corrected the permission of all the website files to avoid any issues due to file permission. 
    
    It is advisable to contact the Updraft support along with the above logs so that they can check further and provide the solution for this. If they ask to take any action on the server-side, please do let us know. We will surely help you in implementing those changes.
    Plugin Contributor aporter

    (@aporter)

    Hi,

    Thanks for this information.

    Can you replace the backup.php (wp-content/plugins/updraftplus/backup.php) with the file attached below:

    https://we.tl/t-jq9f481E5n

    Then try a new backup and provide the new log file (even if the backup succeeds)

    Could you send us the full backup log via a service like pastebin, a public dropbox link or a wetransfer link.

    Also if it does fail again could you check your PHP error logs again and also send the contents of that?

    Best Wishes,

    Ashley

    Thread Starter Tustinuggee Thlocco

    (@zharleydudegmailcom)

    I updated the backup.php, logged out, cleared cache, logged back in & ran Updraft.
    Here is the UpdraftPlus Log, & screen shot of files generated & ending error message.

    Thank you for your help!

    Plugin Contributor aporter

    (@aporter)

    Hi,

    Thank you, can you check with your hosts to see any errors in the PHP error log please?

    Best Wishes,

    Ashley

    Thread Starter Tustinuggee Thlocco

    (@zharleydudegmailcom)

    Received the below message from my Host:

    As per PHP error log, most recent backup has failed due to Memory issue. Here is the log:
    
    [18-Oct-2021 10:29:57 UTC] PHP Fatal error: Out of memory (allocated 55050240) (tried to allocate 1136621376 bytes) in /home2/saumcvbo/public_html/wp-content/plugins/updraftplus/backup.php
    
    Analysis the log, you can see that allocated Memory is 55050240 Bytes i.e 440MB whereas required Memory is 1.13GB. This means that backup is failing with fatal error due to insufficient Memory. Backup process need more memory than allocated. To resolve this, memory limit needs to be increased.
    
    While reviewing the PHP variable, I found that Memory limit is set to 250MB. As a part of troubleshooting, I managed to increase the limit to meet the requirement.
    
    PHP variable              Current value  Updated value
    
    max_input_vars         1000              1500
    memory_limit             256M             4096MB(4GB)
    max_execution_time    30s              300s
    
    Here is link to review updated link: https://www.saumcvb.org/phpinfo.php >> Search Memory limit.
    
    Please try to generate the backup now and let us know the status. Now, sufficient memory is allocated to the website.

    After receiving the above message, I lowered the file size below 600MB & it still fails after uploads14.zip.tmp, thinking the job ended…..

    Thread Starter Tustinuggee Thlocco

    (@zharleydudegmailcom)

    Plugin Support vupdraft

    (@vupdraft)

    As a test, can you lower your archive sit split down to 25MB and see if the backup succeeds (this is just a fail-safe, you do not have to keep it at this level)

    Thread Starter Tustinuggee Thlocco

    (@zharleydudegmailcom)

    It leaves the .zip.list.tmp files behind…
    Set to 25MB (I normally use 4,096 on my other sites fine).
    Don’t want to have to download over 100 files for each backup,
    when 6-8 files will do (have 4 other sites I backup).
    At 25MB size (4 resumptions at 297 seconds), at least the zip files are readable,
    even though it generates over 100 zip files (just for the Uploads
    folder, totaling less than 16MB).
    It is still having to do ‘Resumptions’, extending the wait time
    before each ‘retry’.
    Uploads93.zip is only about 1k, where the uploads93.zip.list.tmp is about 483k,
    so something is still wrong…and it is still working (on uploads556.zip.
    https://drive.google.com/file/d/19nWyXKygXG72gOcJrtupOfbKBRlevSgR/view?usp=sharing

    Thread Starter Tustinuggee Thlocco

    (@zharleydudegmailcom)

    My last backup at 25GB per file, created over 900 files, many empty and not readable.
    Because Crons are having problems, it left the zip.list.tmp, and zip.tmp files.
    This is my message to JustHost:
    It stopped working after the first week of October
    (last good backup was Oct 3rd).What does the PHP ERROR LOG say?(Level 2?)?.?
    I KNOW it’s running out of memory. due to not being able to update the backup files,
    & doing extended ‘resumes’, eventually timing out,?and I get the same message that you provided in your reply (except on a different backup file; it dies after resumes
    and timeouts).??

    Why can’t your?system properly?buffer the files without dying. Even on a shared
    server, the Cron jobs should work. It’s only a 16gb site!

    I backup?my other sites with Updraft with no problem on?my?other JustHost acct
    (atm3music.com), although it can’t complete a Loop-back test, and some scheduled
    maintenance cron events are not working on saumcvb.org either.? On my other acct/site,
    I’m also getting:?
    The REST API call gave the following unexpected result: (403) <!DOCTYPE HTML PUBLIC “-//IETF//DTD HTML 2.0//EN”> <html><head> <title>403 Forbidden</title> </head><body> <h1>Forbidden</h1> <p>You don’t have permission to access this resource.</p> <p>Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.</p> </body></html>.

    From Tools/Health:? Loopback requests are used to run scheduled events, and are also used by the built-in editors for themes and plugins to verify code stability.
    The loopback request returned an unexpected http status code, 404, it was not possible
    to determine if this will prevent features from working as expected.

    Something is wrong when the sites cannot complete regular WP maintenance Crons
    without failure.

    Please advise on the PHP ERROR LOG,?so I can provide feedback to the?UpdraftPlus
    plugin vendor.

    Click here for image of some Cron job failures on saumcvb.org)

    Not sure why so many ‘resumptions’ and extended time for resumptions during backup…

    Thank you.

    Plugin Contributor aporter

    (@aporter)

    Hi,

    Thank you for the detailed information.

    I’m having trouble reproducing this issue on my local development sites and none of our testing or production sites are having the issue.

    Looking through the information you posted I might have found the issue, could you try the following backup.php file:

    https://we.tl/t-DzNn23SMSk

    Best Wishes,

    Ashley

    Thread Starter Tustinuggee Thlocco

    (@zharleydudegmailcom)

    Set to 4024 size…..what has worked for last 3 yrs with no problems.
    Somehow the process is not working anymore, using more memory than the
    server can handle. Is the below message from the host or UpdraftPlus:

    File exists (/home2/saumcvbo/public_html/wp-content/updraft/backup_2021-10-21-0608_St_Andrew039s_United_Methodi_d75997cdd3e0-uploads2.zip.tmp), but was apparently not modified within the last 30 seconds, so we assume that any previous run has now terminated (time_mod=1634811259, time_now=1634811521, diff=262) (Oct 21 06:18:41)

    Noticed that several of my sites on JustHost are having Loop-back & issues with Crons not running.
    Thank you.

    Plugin Contributor aporter

    (@aporter)

    Is that a log message from a backup using the latest backup.php I sent?

    Did the backup stop after that or did it continue?

    Best wishes,

    Ashley

    Thread Starter Tustinuggee Thlocco

    (@zharleydudegmailcom)

    Yes, using the new backup.php.. Logged out, cleared browser cache, & let it run new job.
    Resulted in same message (see bottom of log; ran out of memory or time).
    it started with the resumptions: here is the log.
    https://drive.google.com/file/d/1mmkHhTpnMJhfQzScU9kEtDjAe-4bQwSy/view?usp=sharing
    Thank you!
    noticed my other JuarHost acct has loop-back & Cron issues on all 5 sites.
    JustHost is transitioning one of the sites from that different host acct.
    Have asked them to fix the Cron’s not running issue, which is probably
    why the zip.list.tmp & .zip.tmp files are being left behind…
    Thanks again.

    Thread Starter Tustinuggee Thlocco

    (@zharleydudegmailcom)

    JustHost found a problem with it’s std SSL on this site,
    & has applied it, which I believe was causing Cron jobs
    to either not run or die. I am thinking this might fix
    the problem, and will re-run after it’s been applied.

    Plugin Contributor aporter

    (@aporter)

    Hi,

    Thank you for your continued patience while I try to find the cause of the issue.

    The information you have provided has been very helpful and I believe I’ve now reproduced and fixed the problem.

    Please could you try the following backup.php file:

    https://we.tl/t-fiNWUiFkSw

    Then try another backup.

    Best Wishes,

    Ashley

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Updraft – Unable to Complete Backups’ is closed to new replies.