duplicati / duplicati

Store securely encrypted backups in the cloud!
Other
11.31k stars 907 forks source link

OCI Backend Backup Failure #5065

Closed madereddy closed 9 months ago

madereddy commented 12 months ago

Environment info

Description

Connection to Oracle OCI tests successfully, but when trying to run a backup it fails with a 400 error.

System.AggregateException: One or more errors occurred. (The remote server returned an error: (400) Bad Request. (The remote server returned an error: (400) Bad Request.) (One or more errors occurred. (The remote server returned an error: (400) Bad Request.))) ---> System.AggregateException: The remote server returned an error: (400) Bad Request. (The remote server returned an error: (400) Bad Request.) 

Steps to reproduce

  1. Configure OCI object storage using link: https://docs.oracle.com/en-us/iaas/Content/Object/Tasks/s3compatibleapi.htm.
  2. Test connection successfully
  3. Backup fails with 400 error

Screenshots

image

Debug log

{"ClassName":"Amazon.S3.AmazonS3Exception","Message":"Error making request with Error Code BadRequest and Http Status Code BadRequest. No further error information was returned by the service.","Data":null,"InnerException":{"ClassName":"Amazon.Runtime.Internal.HttpErrorResponseException","Message":"The remote server returned an error: (400) Bad Request.","Data":null,"InnerException":{"ClassName":"System.Net.WebException","Message":"The remote server returned an error: (400) Bad Request.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"  at System.Net.HttpWebRequest.GetResponseFromData (System.Net.WebResponseStream stream, System.Threading.CancellationToken cancellationToken) [0x00146] in <a8a996a78a804d888710c9e2575d78c8>:0 \n  at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task`1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func`1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000f8] in <a8a996a78a804d888710c9e2575d78c8>:0 \n  at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00020] in <a8a996a78a804d888710c9e2575d78c8>:0 \n  at System.Threading.Tasks.TaskFactory`1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func`2[T,TResult] endFunction, System.Action`1[T] endAction, System.Threading.Tasks.Task`1[TResult] promise, System.Boolean requiresSynchronization) [0x0000f] in <d636f104d58046fd9b195699bcb1a744>:0 \n--- End of stack trace from previous location where exception was thrown ---\n\n  at Amazon.Runtime.Internal.HttpRequest.GetResponseAsync (System.Threading.CancellationToken cancellationToken) [0x000dd] in <1d5e23fb32014e869fdd576305c21e36>:0 ","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233079,"Source":"mscorlib"},"HelpURL":null,"StackTraceString":"  at Amazon.Runtime.Internal.HttpRequest.GetResponseAsync (System.Threading.CancellationToken cancellationToken) [0x0016e] in <1d5e23fb32014e869fdd576305c21e36>:0 \n  at Amazon.Runtime.Internal.HttpHandler`1[TRequestContent].InvokeAsync[T] (Amazon.Runtime.IExecutionContext executionContext) [0x0024b] in <1d5e23fb32014e869fdd576305c21e36>:0 \n  at Amazon.Runtime.Internal.RedirectHandler.InvokeAsync[T] (Amazon.Runtime.IExecutionContext executionContext) [0x0007d] in <1d5e23fb32014e869fdd576305c21e36>:0 \n  at Amazon.Runtime.Internal.Unmarshaller.InvokeAsync[T] (Amazon.Runtime.IExecutionContext executionContext) [0x00072] in <1d5e23fb32014e869fdd576305c21e36>:0 \n  at Amazon.S3.Internal.AmazonS3ResponseHandler.InvokeAsync[T] (Amazon.Runtime.IExecutionContext executionContext) [0x00072] in <bd464cdb92394af6a8e27f353fa19333>:0 \n  at Amazon.Runtime.Internal.ErrorHandler.InvokeAsync[T] (Amazon.Runtime.IExecutionContext executionContext) [0x00078] in <1d5e23fb32014e869fdd576305c21e36>:0 ","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233088,"Source":"mscorlib","Response":{"StatusCode":"BadRequest","IsSuccessStatusCode":false,"ContentType":"application/xml; charset=utf-8","ContentLength":151,"ResponseBody":{}}},"HelpURL":null,"StackTraceString":"  at Amazon.Runtime.Internal.HttpErrorResponseExceptionHandler.HandleException (Amazon.Runtime.IExecutionContext executionContext, Amazon.Runtime.Internal.HttpErrorResponseException exception) [0x0013f] in <1d5e23fb32014e869fdd576305c21e36>:0 \n  at Amazon.Runtime.Internal.ExceptionHandler`1[T].Handle (Amazon.Runtime.IExecutionContext executionContext, System.Exception exception) [0x00000] in <1d5e23fb32014e869fdd576305c21e36>:0 \n  at Amazon.Runtime.Internal.ErrorHandler.ProcessException (Amazon.Runtime.IExecutionContext executionContext, System.Exception exception) [0x0005c] in <1d5e23fb32014e869fdd576305c21e36>:0 \n  at Amazon.Runtime.Internal.ErrorHandler.InvokeAsync[T] (Amazon.Runtime.IExecutionContext executionContext) [0x00097] in <1d5e23fb32014e869fdd576305c21e36>:0 \n  at Amazon.Runtime.Internal.CallbackHandler.InvokeAsync[T] (Amazon.Runtime.IExecutionContext executionContext) [0x0007e] in <1d5e23fb32014e869fdd576305c21e36>:0 \n  at Amazon.Runtime.Internal.EndpointDiscoveryHandler.InvokeAsync[T] (Amazon.Runtime.IExecutionContext executionContext) [0x000ab] in <1d5e23fb32014e869fdd576305c21e36>:0 \n  at Amazon.Runtime.Internal.EndpointDiscoveryHandler.InvokeAsync[T] (Amazon.Runtime.IExecutionContext executionContext) [0x000d8] in <1d5e23fb32014e869fdd576305c21e36>:0 \n  at Amazon.Runtime.Internal.CredentialsRetriever.InvokeAsync[T] (Amazon.Runtime.IExecutionContext executionContext) [0x0015a] in <1d5e23fb32014e869fdd576305c21e36>:0 \n  at Amazon.Runtime.Internal.RetryHandler.InvokeAsync[T] (Amazon.Runtime.IExecutionContext executionContext) [0x000b3] in <1d5e23fb32014e869fdd576305c21e36>:0 \n  at Amazon.Runtime.Internal.RetryHandler.InvokeAsync[T] (Amazon.Runtime.IExecutionContext executionContext) [0x00194] in <1d5e23fb32014e869fdd576305c21e36>:0 \n  at Amazon.Runtime.Internal.CallbackHandler.InvokeAsync[T] (Amazon.Runtime.IExecutionContext executionContext) [0x0007e] in <1d5e23fb32014e869fdd576305c21e36>:0 \n  at Amazon.Runtime.Internal.CallbackHandler.InvokeAsync[T] (Amazon.Runtime.IExecutionContext executionContext) [0x0007e] in <1d5e23fb32014e869fdd576305c21e36>:0 \n  at Amazon.S3.Internal.AmazonS3ExceptionHandler.InvokeAsync[T] (Amazon.Runtime.IExecutionContext executionContext) [0x0008f] in <bd464cdb92394af6a8e27f353fa19333>:0 \n  at Amazon.Runtime.Internal.ErrorCallbackHandler.InvokeAsync[T] (Amazon.Runtime.IExecutionContext executionContext) [0x0008f] in <1d5e23fb32014e869fdd576305c21e36>:0 \n  at Amazon.Runtime.Internal.MetricsHandler.InvokeAsync[T] (Amazon.Runtime.IExecutionContext executionContext) [0x000ab] in <1d5e23fb32014e869fdd576305c21e36>:0 \n  at Duplicati.Library.Backend.S3AwsClient.AddFileStreamAsync (System.String bucketName, System.String keyName, System.IO.Stream source, System.Threading.CancellationToken cancelToken) [0x000f2] in <d4f45134dc054188b613f90e0a714dc8>:0 \n  at Duplicati.Library.Backend.S3.PutAsync (System.String remotename, System.IO.Stream input, System.Threading.CancellationToken cancelToken) [0x00085] in <d4f45134dc054188b613f90e0a714dc8>:0 \n  at Duplicati.Library.Main.Operation.Backup.BackendUploader.DoPut (Duplicati.Library.Main.Operation.Common.BackendHandler+FileEntryItem item, Duplicati.Library.Interface.IBackend backend, System.Threading.CancellationToken cancelToken) [0x00426] in <9cab5b8f1b4f49ec980acae8e278968b>:0 \n  at Duplicati.Library.Main.Operation.Backup.BackendUploader+<>c__DisplayClass20_0.<UploadFileAsync>b__0 () [0x0010a] in <9cab5b8f1b4f49ec980acae8e278968b>:0 \n  at Duplicati.Library.Main.Operation.Backup.BackendUploader.DoWithRetry (System.Func`1[TResult] method, Duplicati.Library.Main.Operation.Common.BackendHandler+FileEntryItem item, Duplicati.Library.Main.Operation.Backup.BackendUploader+Worker worker, System.Threading.CancellationToken cancelToken) [0x00198] in <9cab5b8f1b4f49ec980acae8e278968b>:0 ","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233088,"Source":"mscorlib","errorCode":"BadRequest","errorType":"Sender","requestId":"iad-1:-P3FJDoT6l9TFEH52ewtlFj-Yd3LYU8RHWudW_7lY586YJF21djDOy5MVxQJpqZ7","statusCode":"BadRequest","AmazonId2":null,"ResponseBody":null}
madereddy commented 12 months ago

Tried with the Duplicati docker container as well duplicati/duplicati:latest and no luck on that one either.

Dec 5, 2023 1:46 PM: Operation Put with file duplicati-b32fc99dcf9f14a83abb420ba8f02b77e.dblock.zip.aes attempt 2 of 6 failed with message: Error making request with Error Code BadRequest and Http Status Code BadRequest. No further error information was returned by the service. 
gpatel-fr commented 11 months ago

Is there a free (no strings attached - no phone number asked, no credit card) test account possible with your provider ? If not, it's difficult to expect that someone not using already it will help you. There are free test accounts with most hosters, even a 5 GB account is enough.

github-actions[bot] commented 11 months ago

This issue is stale because it has been open for 15 days with no activity.

ts678 commented 11 months ago

@madereddy

2.0.7.100_canary_2023-12-27

--s3-disable-chunk-encoding added to the AWS backend (only useful for some providers)

might help, might go to Beta soon (meanwhile, you can carefully test with a Canary Docker), and has a basis in guesswork here. including an article needing a My Oracle Support account to access. Do you have one to see if it supports my linked guesswork?

github-actions[bot] commented 10 months ago

This issue is stale because it has been open for 15 days with no activity.

github-actions[bot] commented 9 months ago

This issue was closed because it has been inactive for 15 days since being marked as stale.