mrAceT / nextcloud-S3-local-S3-migration

Script for migrating Nextcloud primary storage from S3 to local to S3 storage
GNU General Public License v3.0
67 stars 11 forks source link

Backblaze HTTP 500 #9

Closed tknaller closed 11 months ago

tknaller commented 11 months ago

hello,

thank you for your amazing scripts!

unfortunately backblaze is abit finicky and every now and then says error 500 for large multipart uploads

according to their docs (and the error message) the client should simply retry the action. can this be implemented? https://www.backblaze.com/blog/b2-503-500-server-error/

- Part 287: Error executing "UploadPart" on "https://mybucket.s3.eu-central-003.backblazeb2.com/urn%3Aoid%3A1047419?partNumber=287&uploadId=4_zd8898f4c64d3c36c899b0813_f24099f1f57fd9841_d20230926_m203929_c003_v0312019_t0015_u01695760769549"; AWS HTTP error: Server error: `PUT https://mybucket.s3.eu-central-003.backblazeb2.com/urn%3Aoid%3A1047419?partNumber=287&uploadId=4_zd8898f4c64d3c36c899b0813_f24099f1f57fd9841_d20230926_m203929_c003_v0312019_t0015_u01695760769549` resulted in a `500 Internal Server Error` response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Error>
    <Code>InternalError</Code>
    <Message>An internal  (truncated...)
 InternalError (server): An internal error occurred.  Please retry your upload. - <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Error>
    <Code>InternalError</Code>
    <Message>An internal error occurred.  Please retry your upload.</Message>
</Error>
mrAceT commented 11 months ago

I have created an update for this, could you try?

@tknaller Please let me know if this works soon.. I hate to have this "out here" untested for long..

tknaller commented 11 months ago

amazing, works perfectly, thank you