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.

Az acr helm push - You have tried to upload a chart that already exists

See original GitHub issue

Describe the bug From time to time (a few times a day) once we do helm push to container registry: az acr helm push --name ${{parameters.containerRegistry}} $(Build.ArtifactStagingDirectory)/${{parameters.imageRepository}}-$(Build.BuildNumber).tgz --force

we receive Error: You have tried to upload a chart that already exists. Correlation ID: 65237304-9a53-4ff4-93a3-0f59441f35ef. event though there is no way to exists. We checked it by: az acr helm list -n ${{parameters.containerRegistry}} --query "ebox[?version=='$(Build.BuildNumber)']" and it returns 0 rows.

Issue comes and goes - once we retry a build it usally passes without issues. I assue that root cause of this exception is somewhere else (connectivity issues, parallel pushes of other charts to the same repository?). Keep in mind that we use --force that should allow us to push chart even if it indeed existed.

To Reproduce Run many times: az acr helm push --name ${{parameters.containerRegistry}} $(Build.ArtifactStagingDirectory)/${{parameters.imageRepository}}-$(Build.BuildNumber).tgz --force

Expected behavior Helm chart pushed without issues

Environment summary

  • Azure DevOps build pipeline.
  • VMSS agents with custom image
  • Azure cli version:

azure-cli 2.7.0 * ommand-modules-nspkg 2.0.3 core 2.7.0 * nspkg 3.0.4 telemetry 1.0.4 *

Extensions: azure-devops 0.18.0 azure-cli-iot-ext 0.8.9

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:19 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
brunooliveiramaccommented, Sep 10, 2020

I’m facing this issue as well even with --force flag Error: You have tried to upload a chart that already exists. Correlation ID: b11fbaaa-0033-4756-9521-8fca29c24f9a.

0reactions
JackSinclairTcommented, Apr 27, 2021

We are facing this issue as well

Read more comments on GitHub >

github_iconTop Results From Across the Web

pushing the helm chart to azure container registry fails
1 to push the Helm charts to ACR. To push the Helm charts to ACR, follow the next steps: Enable OCI support export...
Read more >
az acr helm | Microsoft Learn
Push a chart package to an Azure Container Registry, overwriting the existing one. Azure CLI Copy. Try It.
Read more >
ACR Unleashed – Use ACR As Registry For Helm Charts
Push, pull and install Helm charts from Azure Container Registry. Learn what OCI means and why you should start using Helm 3 now....
Read more >
What do you need to know about Helm 2, Helm 3, and ACR?
In the last few months, I started seeing more and more customers using Azure Container Registry (or ACR) for storing their Helm charts....
Read more >
How to Store Helm Charts in Azure Container Registry
Now we are going to log in to our registry using Azure managed keys, but we need to enable administrative control with az...
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