Backup to Azure fails with code 403

Hi Gilbert and fellow Duplicacy fans

I am backing up 200gb from linux duplicacy version 2.10 (the downloaded binary) to an azure blob using the following command:

sudo duplicacy backup -threads 10

I randomly get the following message after an at least an hour of backing up.

storage: service returned error: StatusCode=403, ErrorCode=AuthenticationFailed, ErrorMessage= Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.

I hope you can help. This software looks amazing, I am very happy with your work.

Sincerely
Dennis

This looks exactly like https://github.com/Azure/azure-sdk-for-go/issues/1005

So maybe the solution is to rewrite the backend using https://github.com/azure/azure-storage-blob-go.

Backups have been fine for a while, and then I got an odd error during a roughly 30 minute backup (at the tail end):

01:17:10 Uploaded chunk 3591 size 12502342, 11.96MB/s 00:00:02 99.8%
01:17:11 Uploaded chunk 3592 size 11464397, 11.96MB/s 00:00:01 99.9%
01:37:46 Failed to upload the chunk e6966db2740ddce6f2cd183fe8a01c71701e776ff2eae39e6183a4a49d296e68: storage: service returned error: StatusCode=403, ErrorCode=AuthenticationFailed, ErrorMessage=Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
01:37:46 RequestId:54085822-401e-0007-2971-08946e000000
01:37:46 Time:2018-06-20T08:37:46.2651577Z, RequestInitiated=Wed, 20 Jun 2018 08:37:45 GMT, RequestId=54085822-401e-0007-2971-08946e000000, API Version=, QueryParameterName=, QueryParameterValue=
01:37:46 Error executing command: exit status 100

This looks the same to me as what was originally reported. Maybe, before you change the entire backend, you should consider retrying this at least a few times?

Let me know your thoughts, thanks.

/Jeff

@Dewoller - did you find a solution to above issue?

I am running into the same issue using Web-UI 1.4.1 (using CLI 2.7.1).

Investigating a bit - it looks like my issue was happening because my Mac (or the HDD) went to sleep as I didn’t have the power cord connected for some time and when i woke up the machine, the process retried and hit the failure.

Once I changed the power settings to not sleep - it has been going well so far.

I ran into into this issue back in Nov 2020. Since then I don’t think I made any copy operations to Azure.

As It has been quite some time, just tried to make a copy to the cloud and saw the error happen again. I am currently using Duplicacy Web Edition 1.6.3 with latest Command Line (3.1.0).

I had ensured that the Mac doesn’t go into sleep (using Owly app) but I hit the same error again.

2023/01/29 00:55:04 ERROR UPLOAD_CHUNK Failed to upload the chunk 9d74245cee1c0720de2ebda4dc44b6037307f7a21e7bd3b9e8ed31cb9f275ddd: storage: service returned error: StatusCode=403, ErrorCode=AuthenticationFailed, ErrorMessage=Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.

I just retried and the operation completed.

Then tried a second Copy operation on a different snapshot and again the same failure happened some time late in the night

2023/01/29 15:16:46 Running /Users/hiavi/.duplicacy-web/bin/duplicacy_osx_arm64_3.1.0 [-log copy -from AviDuplicacyStore -to AviAzureDuplicacyStoreCold -id AAviMasterDataStore -threads 4]


2023/01/29 22:19:38 ERROR UPLOAD_CHUNK Failed to upload the chunk f043a9bb14c0424b6b9bb65314b96e3989890daed9330b1293417d34c1026db8: storage: service returned error: StatusCode=403, ErrorCode=AuthenticationFailed, ErrorMessage=Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.

Not sure why it is so flaky.

Any suggestions?