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.

Azure CLI cannot download "azcopy" (409 Conflict)

See original GitHub issue

Describe the bug

The command az storage blob sync seems to use azcopy under the hood. This binary isn’t included in the Docker image and is downloaded when needed.

Errors: The download fails on a lot of systems with error 409 Conflict. The download location is https://azcopyvnext.azureedge.net/release20211027/azcopy_linux_amd64_10.13.0.tar.gz and it is broken since a few hours.

To Reproduce:

Any az storage blob sync command will generate this error when it’s trying to invoke azcopy.

Expected Behavior

I would expect that the Docker container is self-supporting and would have azcopy already in the /root/bin folder, so it doesn’t need to download it.

Environment Summary

Linux-5.15.68.1-microsoft-standard-WSL2-x86_64-with, Alpine Linux v3.16
Python 3.10.7
Installer: DOCKER

azure-cli 2.41.0

Additional Context

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:21 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
ramondekleincommented, Oct 21, 2022

We had this issue today. Pipeline in AzureDevops, on MS provided build agent, using AzureCLI@2 task. My workaround that helped was to upgrade to the ubuntu-latest vm image.

The only reason that it worked is that you may have hit another DNS that directed to another CDN edge location. It’s not a sustainable fix. After rebooting, it may break again. MS seems to have an issue with the CDN that serves this binary. Not sure if it’s a global CDN issue (although that would have had higher priority) or someone at MS just screwed up and broke this configuration. But it’s hard to break a CDN only partially…

@zezha-msft It’s definitely not a transient issue and it’s breaking CI/CD pipelines all around the world, so it would be nice to give this issue a higher priority. It’s broken for several days now and it’s critical tooling for most of us.

1reaction
ramondekleincommented, Oct 20, 2022

@Goz3rr thanks for the feedback. It seems that there were some issues with our distribution account. It should be all fixed now. Please kindly retry and let us know. Thanks!

It would be much better to include azcopy in the Docker image, so it doesn’t need to download it. We use Docker images to have isolated build environments, but downloading “arbitrary” stuff inside the image breaks that philosophy. The azcopy version is fixed, so I don’t see any issues to download it. It’s pretty big file, so it would also save a lot of bandwidth too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azcopy failing with Error 409 - Microsoft Learn
Hi,. Any idea about this error message while using Azcopy to upload files from local to blob. Error 409 : 409 The requested...
Read more >
Azure Blob Storage error codes - Microsoft Learn
Error code HTTP status code User message BlobAlreadyExists Conflict (409) The specified blob already exists. BlobNotFound Not Found (404) The specified blob does not exist. ContainerAlreadyExists...
Read more >
Azure storage service suddenly returning error 409 where it ...
You may use AzCopy, it's a command-line utility designed for copying data to and from Microsoft Azure Blob, File, and Table storage using...
Read more >
Troubleshoot Azure Files problems in Windows (SMB)
Troubleshoot problems with SMB Azure file shares in Windows. See common issues related to Azure Files when you connect from Windows clients, ...
Read more >
Unable Download Data via Azcopy Command - Microsoft Q&A
I try to download data from an Azure Storage blob using the azcopy command and after a successful login I get some authentication...
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