question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Getting 404 responses from Azure BlobClient during a manual failover for RA-GRS Storage Account

See original GitHub issue

Library name and version

Azure.Storage.Blob 12.8.0

Describe the bug

We do have a Storage Account with RA-GRS replication type. Also, we have set GeoRedundantSecondaryUri to be a secondary Blob Service Uri. Then we try to perform a manual failover for the Storage Account. We are getting 404 responses without retries and any attempts to read from the secondary location.

Expected behavior

Library tries to read from the secondary blob Uri

Actual behavior

The response code is 404. Blob Client doesn’t try any retries from the secondary blob service endpoint

Reproduction Steps

  1. Storage Account with RA-GRS replication type
  2. Set GeoRedundantSecondaryUri to be a secondary blob service endpoint
  3. Upload a file to a blob storage
  4. Try to read previously uploaded file continuously
  5. Perform a manual failover for the storage account
  6. Read request will start to fail with 404 (NotFound) Status Code

Environment

.NET SDK (reflecting any global.json):
 Version:   6.0.201
 Commit:    ef40e6aa06

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  10.15
 OS Platform: Darwin
 RID:         osx.10.15-x64
 Base Path:   /usr/local/share/dotnet/sdk/6.0.201/

Host (useful for support):
  Version: 6.0.3
  Commit:  c24d9a9c91

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
amnguyecommented, Jun 14, 2022

Hi, Looks like this error is not caused by the SDK. A 404 BlobNotFound Error could mean anything from authentication issue or to the failover replication not being successful.

I would recommend opening up an Azure Support Request to check in the blob in question that’s giving the 404 error. The SDK is only passing on the error to the client, not necessarily causing the 404 to happen in the first place. https://docs.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request

1reaction
RakeshMohanMSFTcommented, Jun 1, 2022

@ykulyk404 Thank you for reaching out, we are looking into it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to solve 404 while working with azure.storage.fileshare?
This looks like a request made to retrieve a file from an Azure File Storage service, and the response indicates that the file...
Read more >
getting 404 error when connecting to azure storage account
The problem was the container was not created or had been deleted. I added container.CreateIfNotExist();. and it worked fine.
Read more >
Azure Blob Storage 404 Error - Microsoft Power BI Community
Hi, I'm trying to connect my dashboard to an Azure Blob Storage, however, when I provide the account name or URL, I'm faced...
Read more >
404 when moving images from Azure to another storage ...
An exception is thrown when moving images stored in Azure blob storage to another storage provider. Steps to Reproduce.
Read more >
AzureTroubleshooting Technet | PDF | Computer File
If you try to delete a storage account associated with an Azure virtual machine, you may get an error about the storage account...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found