Errors during backup of large site to Backblaze

UpdraftPlus Home Forums Paid support forum – UpdraftPlus backup plugin Errors during backup of large site to Backblaze

Viewing 15 posts - 1 through 15 (of 40 total)
  • Author
    Posts
  • #415678
    Jason Dear
    Participant

    We recently purchased UpdraftPlus Premium for backing up our WordPress sites, and while it’s working fine on our smaller sites, it seems to be having trouble on our large, main website.

    Looking through the log file, some of the errors appear to be possible bugs with UpdraftPlus:

    13690.056 (4) Beginning dispatch of backup to remote (backblaze) (instance identifier [redacted])
    13690.653 (4) backblaze upload : attempt: backup_2019-07-26-0300_Long_Road_Sixth_Form_College_[redacted]-uploads4.zip
    13691.251 (4) Backblaze upload: backup_2019-07-26-0300_Long_Road_Sixth_Form_College_[redacted]-uploads4.zip (chunks: 80, of size: 5242880) -> backblaze://wwwlongroad/backup_2019-07-26-0300_Long_Road_Sixth_Form_College_[redacted]-uploads4.zip (416771632)
    13691.983 (4) Backblaze: Exception in uploadLargeFinish(): 400, Message: string does not start with quote (line: 113, file: /home/wwwlongroad/public_html/wp-content/plugins/updraftplus/includes/Backblaze/CurlClient.php)
    13691.985 (4) Backblaze – failed to re-assemble chunks
    13691.986 (4) An error condition has occurred for the first time during this job
    13691.987 (4) ERROR: backblaze: Failed to upload file: backup_2019-07-26-0300_Long_Road_Sixth_Form_College_[redacted]-uploads4.zip
    13691.988 (4) backblaze upload : attempt: backup_2019-07-26-0300_Long_Road_Sixth_Form_College_[redacted]-uploads13.zip
    13691.988 (4) Backblaze upload: backup_2019-07-26-0300_Long_Road_Sixth_Form_College_[redacted]-uploads13.zip (chunks: 78, of size: 5242880) -> backblaze://wwwlongroad/backup_2019-07-26-0300_Long_Road_Sixth_Form_College_[redacted]-uploads13.zip (407753874)
    13692.716 (4) Backblaze: Exception in uploadLargeFinish(): 400, Message: string does not start with quote (line: 113, file: /home/wwwlongroad/public_html/wp-content/plugins/updraftplus/includes/Backblaze/CurlClient.php)
    13692.718 (4) Backblaze – failed to re-assemble chunks
    13692.719 (4) ERROR: backblaze: Failed to upload file: backup_2019-07-26-0300_Long_Road_Sixth_Form_College_[redacted]-uploads13.zip
    13692.720 (4) backblaze upload : attempt: backup_2019-07-26-0300_Long_Road_Sixth_Form_College_[redacted]-uploads14.zip
    13692.720 (4) Backblaze upload: backup_2019-07-26-0300_Long_Road_Sixth_Form_College_[redacted]-uploads14.zip (chunks: 80, of size: 5242880) -> backblaze://wwwlongroad/backup_2019-07-26-0300_Long_Road_Sixth_Form_College_[redacted]-uploads14.zip (415951611)
    13693.453 (4) Backblaze: Exception in uploadLargeFinish(): 400, Message: string does not start with quote (line: 113, file: /home/wwwlongroad/public_html/wp-content/plugins/updraftplus/includes/Backblaze/CurlClient.php)
    13693.454 (4) Backblaze – failed to re-assemble chunks
    13693.455 (4) ERROR: backblaze: Failed to upload file: backup_2019-07-26-0300_Long_Road_Sixth_Form_College_[redacted]-uploads14.zip
    13693.456 (4) backblaze upload : attempt: backup_2019-07-26-0300_Long_Road_Sixth_Form_College_[redacted]-uploads16.zip
    13693.457 (4) Backblaze upload: backup_2019-07-26-0300_Long_Road_Sixth_Form_College_[redacted]-uploads16.zip (chunks: 77, of size: 5242880) -> backblaze://wwwlongroad/backup_2019-07-26-0300_Long_Road_Sixth_Form_College_[redacted]-uploads16.zip (401627916)
    13694.192 (4) Backblaze: Exception in uploadLargeFinish(): 400, Message: string does not start with quote (line: 113, file: /home/wwwlongroad/public_html/wp-content/plugins/updraftplus/includes/Backblaze/CurlClient.php)
    13694.193 (4) Backblaze – failed to re-assemble chunks
    13694.194 (4) ERROR: backblaze: Failed to upload file: backup_2019-07-26-0300_Long_Road_Sixth_Form_College_[redacted]-uploads16.zip

    Specifically the error “string does not start with quote (line: 113, file: /home/wwwlongroad/public_html/wp-content/plugins/updraftplus/includes/Backblaze/CurlClient.php)” seems like it might be a bug in your software, is there a fix available for this?

    EDIT: I did a google search for that error message and came up with this link which seems to be part of the Backblaze B2 SDK: https://github.com/Backblaze/b2-sdk-java/blob/master/core/src/main/java/com/backblaze/b2/json/B2JsonReader.java

    So it seems like this response is coming from Backblaze in response to an improperly formatted API request from UpdraftPlus?

    Thanks,
    IT Services Department
    Long Road Sixth Form College
    Cambridge, UK.

    #415741
    udadmin
    Keymaster

    Hi James,

    I’ve not seen that before, and the Backblaze API documentation doesn’t mention the error code. But, it seems like it can’t be guessed. If you edit the file wp-content/plugins/updraftplus/includes/Backblaze/CurlClient.php, go down to lines 260 and 263 inside the method uploadLargeFinish(), and change…

    
    			'json'	=> array(
    				'fileId'		=> $options['FileId'],
    				'partSha1Array' => $options['FilePartSha1Array'],
    			),
    

    to:

    
    			'json'	=> array(
    				'fileId'		=> (string) $options['FileId'],
    				'partSha1Array' => (string) $options['FilePartSha1Array'],
    			),
    

    (i.e. addition of (string) twice), then, does that fix it?

    #415742
    udadmin
    Keymaster

    Hi James,

    I’ve not seen that before, and the Backblaze API documentation doesn’t mention the error code. But, it seems like it can’t be guessed. If you edit the file wp-content/plugins/updraftplus/includes/Backblaze/CurlClient.php, go down to lines 260 and 263 inside the method uploadLargeFinish(), and change…

    
    			'json'	=> array(
    				'fileId'		=> $options['FileId'],
    				'partSha1Array' => $options['FilePartSha1Array'],
    			),
    

    to:

    
    			'json'	=> array(
    				'fileId'		=> (string) $options['FileId'],
    				'partSha1Array' => (string) $options['FilePartSha1Array'],
    			),
    

    (i.e. addition of (string) twice), then, does that fix it?

    #415746
    Jason Dear
    Participant

    I’ve made your suggested changes and am trying a backup again now. It takes quite a while to run though, so I may not have an answer for you as to whether it worked until Monday.

    Thanks,
    IT Services Department
    Long Road Sixth Form College
    Cambridge, UK.

    #415750
    Jason Dear
    Participant

    So yeah that’s not quite right:

    0463.832 (0) PHP event: code E_NOTICE: Array to string conversion (line 262, wp-content/plugins/updraftplus/includes/Backblaze/CurlClient.php)
    0464.420 (0) Backblaze: Exception in uploadLargeFinish(): 400, Message: array should start with bracket but found: ” (line: 113, file: /home/wwwlongroad/public_html/wp-content/plugins/updraftplus/includes/Backblaze/CurlClient.php)

    I’m thinking it only wants the first one to be casted to string? I’ll try that.

    #415755
    udadmin
    Keymaster

    > I’m thinking it only wants the first one to be casted to string? I’ll try that.

    Yes, that makes sense.

    #415762
    Jason Dear
    Participant

    I think that’s got it:

    0706.263 (0) Backblaze chunked upload: 100 % uploaded (79)
    0707.654 (0) Backblaze: upload: success (b2_finish_large_file called successfully; chunks=79, file ID returned=[redacted], size=409838436)
    0707.662 (0) Recording as successfully uploaded: backup_2019-07-26-1259_Long_Road_Sixth_Form_College_[redacted]-uploads.zip
    0707.683 (0) Deleting local file: backup_2019-07-26-1259_Long_Road_Sixth_Form_College_[redacted]-uploads.zip: OK

    I’ll let you know once the full backup has completed but it looks good so far.

    #416529
    Jason Dear
    Participant

    Not sure what’s happening now but it doesn’t seem to like it any more:

    13010.444 (3) Requesting upload of the files that have not yet been successfully uploaded (4)
    13010.450 (3) Cloud backup selection (1/1): backblaze with instance (1/1) (last)
    13010.451 (3) Beginning dispatch of backup to remote (backblaze) (instance identifier [redacted])
    13011.058 (3) backblaze upload : attempt: backup_2019-07-29-0300_Long_Road_Sixth_Form_College_[redacted]-uploads.zip
    13011.651 (3) Backblaze upload: backup_2019-07-29-0300_Long_Road_Sixth_Form_College_[redacted]-uploads.zip (chunks: 91, of size: 5242880) -> backblaze://wwwlongroad/backup_2019-07-29-0300_Long_Road_Sixth_Form_College_[redacted]-uploads.zip (474079111)
    13012.359 (3) Backblaze: Exception in uploadLargeFinish(): 400, Message: Bad fileId: (line: 113, file: /home/wwwlongroad/public_html/wp-content/plugins/updraftplus/includes/Backblaze/CurlClient.php)
    13012.360 (3) Backblaze – failed to re-assemble chunks
    13012.361 (3) An error condition has occurred for the first time during this job
    13012.363 (3) ERROR: backblaze: Failed to upload file: backup_2019-07-29-0300_Long_Road_Sixth_Form_College_[redacted]-uploads.zip
    13012.363 (3) backblaze upload : attempt: backup_2019-07-29-0300_Long_Road_Sixth_Form_College_[redacted]-uploads20.zip
    13012.365 (3) Backblaze upload: backup_2019-07-29-0300_Long_Road_Sixth_Form_College_[redacted]-uploads20.zip (chunks: 82, of size: 5242880) -> backblaze://wwwlongroad/backup_2019-07-29-0300_Long_Road_Sixth_Form_College_[redacted]-uploads20.zip (429313563)
    13013.145 (3) Backblaze: Exception in uploadLargeFinish(): 400, Message: Part number 1 has not been uploaded (line: 113, file: /home/wwwlongroad/public_html/wp-content/plugins/updraftplus/includes/Backblaze/CurlClient.php)
    13013.146 (3) Backblaze – failed to re-assemble chunks
    13013.147 (3) ERROR: backblaze: Failed to upload file: backup_2019-07-29-0300_Long_Road_Sixth_Form_College_[redacted]-uploads20.zip
    13013.147 (3) backblaze upload : attempt: backup_2019-07-29-0300_Long_Road_Sixth_Form_College_[redacted]-uploads21.zip
    13013.148 (3) Backblaze upload: backup_2019-07-29-0300_Long_Road_Sixth_Form_College_[redacted]-uploads21.zip (chunks: 77, of size: 5242880) -> backblaze://wwwlongroad/backup_2019-07-29-0300_Long_Road_Sixth_Form_College_[redacted]-uploads21.zip (402256590)
    13013.917 (3) Backblaze: Exception in uploadLargeFinish(): 400, Message: Part number 1 has not been uploaded (line: 113, file: /home/wwwlongroad/public_html/wp-content/plugins/updraftplus/includes/Backblaze/CurlClient.php)
    13013.919 (3) Backblaze – failed to re-assemble chunks
    13013.920 (3) ERROR: backblaze: Failed to upload file: backup_2019-07-29-0300_Long_Road_Sixth_Form_College_[redacted]-uploads21.zip
    13013.920 (3) backblaze upload : attempt: backup_2019-07-29-0300_Long_Road_Sixth_Form_College_[redacted]-uploads22.zip
    13013.921 (3) Backblaze upload: backup_2019-07-29-0300_Long_Road_Sixth_Form_College_[redacted]-uploads22.zip (chunks: 77, of size: 5242880) -> backblaze://wwwlongroad/backup_2019-07-29-0300_Long_Road_Sixth_Form_College_[redacted]-uploads22.zip (403602838)
    13014.678 (3) Backblaze: Exception in uploadLargeFinish(): 400, Message: Part number 1 has not been uploaded (line: 113, file: /home/wwwlongroad/public_html/wp-content/plugins/updraftplus/includes/Backblaze/CurlClient.php)
    13014.679 (3) Backblaze – failed to re-assemble chunks
    13014.680 (3) ERROR: backblaze: Failed to upload file: backup_2019-07-29-0300_Long_Road_Sixth_Form_College_[redacted]-uploads22.zip

    #416839
    udadmin
    Keymaster

    To know if that’s the same problem or a different one, we’d need to see the whole log file (or at least, the part dealing with the upload of ‘chunk 1’), to see what happened with that.

    #416958
    Jason Dear
    Participant
    This reply has been marked as private.
    #417162
    udadmin
    Keymaster

    Hi,

    Thank you. (We removed the log file after downloading it as it was getting in the way when navigating the topic!).

    There appears to be a different issue there. Backblaze appears to have had some internal problems (there are some “too busy” errors), and then it seems to have forgotten about one of the chunks on one of the files; a situation UD doesn’t know how to handle. We’re doing some tests to see what their API will let us detect, so that we can intelligently resend the necessary bits and not too much. We will be back in touch when there’s something to test.

    David

    #417240
    udadmin
    Keymaster
    This reply has been marked as private.
    #417376
    Jason Dear
    Participant

    Thanks. I’ve installed that and am now doing a backup.

    #417536
    Jason Dear
    Participant
    This reply has been marked as private.
    #417853
    Jason Dear
    Participant
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 40 total)
  • The topic ‘Errors during backup of large site to Backblaze’ is closed to new replies.