NameResolutionFailure on Azure Blob

I am trying now for 3 days to set up a backup using Azure Blob and I am having the same error message:

Failed to connect: Error: NameResolutionFailure

I am using Ubuntu 20.04 and duplicati is installed using the deb version from the homepage.

Here is the full log:
Microsoft.WindowsAzure.Storage.StorageException: Error: NameResolutionFailure β€”> System.Net.WebException: Error: NameResolutionFailure
at System.Net.WebConnection.Connect (System.Net.WebOperation operation, System.Threading.CancellationToken cancellationToken) [0x00079] in :0
at System.Net.WebConnection.InitConnection (System.Net.WebOperation operation, System.Threading.CancellationToken cancellationToken) [0x000f7] in :0
at System.Net.WebOperation.Run () [0x000b7] in :0
at System.Net.WebCompletionSource1[T].WaitForCompletion () [0x000b1] in <a85c1a570f9a4f9f9c3d2cfa5504e34f>:0 at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x00118] in <a85c1a570f9a4f9f9c3d2cfa5504e34f>:0 at System.Net.HttpWebRequest.GetResponse () [0x00019] in <a85c1a570f9a4f9f9c3d2cfa5504e34f>:0 at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync[T] (Microsoft.WindowsAzure.Storage.Core.Executor.RESTCommand1[T] cmd, Microsoft.WindowsAzure.Storage.RetryPolicies.IRetryPolicy policy, Microsoft.WindowsAzure.Storage.OperationContext operationContext) [0x00242] in :0
β€” End of inner exception stack trace β€”
at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync[T] (Microsoft.WindowsAzure.Storage.Core.Executor.RESTCommand1[T] cmd, Microsoft.WindowsAzure.Storage.RetryPolicies.IRetryPolicy policy, Microsoft.WindowsAzure.Storage.OperationContext operationContext) [0x00708] in <a85e2996cdcf4be79689f53c4ac2d1d6>:0 at Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer.ListBlobsSegmentedCore (System.String prefix, System.Boolean useFlatBlobListing, Microsoft.WindowsAzure.Storage.Blob.BlobListingDetails blobListingDetails, System.Nullable1[T] maxResults, Microsoft.WindowsAzure.Storage.Blob.BlobContinuationToken currentToken, Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions options, Microsoft.WindowsAzure.Storage.OperationContext operationContext) [0x00016] in :0
at Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer+<>c__DisplayClassb.b__a (Microsoft.WindowsAzure.Storage.IContinuationToken token) [0x00000] in :0
at Microsoft.WindowsAzure.Storage.Core.Util.CommonUtility+d__01[T].MoveNext () [0x00025] in <a85e2996cdcf4be79689f53c4ac2d1d6>:0 at System.Linq.Enumerable+SelectEnumerableIterator2[TSource,TResult].MoveNext () [0x00037] in :0
at System.Collections.Generic.List1[T].AddEnumerable (System.Collections.Generic.IEnumerable1[T] enumerable) [0x0005f] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
at System.Collections.Generic.List1[T]..ctor (System.Collections.Generic.IEnumerable1[T] collection) [0x00076] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0002c] in :0
at Duplicati.Library.Backend.AzureBlob.AzureBlobWrapper.ListContainerEntries () [0x0004a] in <37ae24750e6f454a9de9390f56645b84>:0
at Duplicati.Library.Backend.AzureBlob.AzureBlobBackend.List () [0x00000] in <37ae24750e6f454a9de9390f56645b84>:0
at Duplicati.Library.Interface.BackendExtensions.TestList (Duplicati.Library.Interface.IBackend backend) [0x00000] in :0
at Duplicati.Library.Backend.AzureBlob.AzureBlobBackend.Test () [0x00000] in <37ae24750e6f454a9de9390f56645b84>:0
at Duplicati.Server.WebServer.RESTMethods.RemoteOperation.TestConnection (System.String url, Duplicati.Server.WebServer.RESTMethods.RequestInfo info) [0x000b7] in :0
at Duplicati.Server.WebServer.RESTMethods.RemoteOperation.POST (System.String key, Duplicati.Server.WebServer.RESTMethods.RequestInfo info) [0x00094] in :0
at Duplicati.Server.WebServer.RESTHandler.DoProcess (Duplicati.Server.WebServer.RESTMethods.RequestInfo info, System.String method, System.String module, System.String key) [0x00289] in :0
Request Information
RequestID:
RequestDate:
StatusMessage:
ErrorCode:

I don’t normally use Azure as a target, but I tested it with Duplicati. I was able to get both a v2 storage account to work as well as a regular blob storage account. (Did not test v1.)

Just to make sure you are entering information correctly, on the Destination page of your backup config:

  1. Container Name - this is the top level folder within your storage account. Can be named anything you wish but should be unique for each backup job on each computer.
  2. Account Name - this is your storage account name. Just use the first part, not the endpoint fully qualified domain name. eg, use storageaccount1 not storageaccount1.blob.core.windows.net.
  3. Access Key - self-explanatory

You are right, I was not using the correct information.

I did not create any container and was using my login as account name :smile:

Now it is working. Thanks for the help!

1 Like