We use ACR to store Docker images and Helm charts. We use Helm chart with the Helm repository (not the OCI registry).
The URI for the helm repository is : https://contoso.azurecr.io/helm/v1/repo
We have an operator (Flux v2) running inside an kubernetes cluster (AKS) that regularly pulls some charts, and the list of available charts. But sometimes it has error responses from ACR, then some success responses, and later again some error responses and so on without doing anything.
Here is an error from logs from Flux v2 component when pulling a Helm chart :
{"level":"error","ts":"2020-11-10T11:45:33.258Z","logger":"controller","msg":"Reconciler error","reconcilerGroup":"source.toolkit.fluxcd.io","reconcilerKind":"HelmChart","controller":"helmchart","name":"default-cdn","namespace":"cd","error":"failed to fetch https://contoso.azurecr.io/helm/v1/repo/_blobs/cdn-1.0.0.tgz : 500 Internal Server Error","errorVerbose":"failed to fetch https://contoso.azurecr.io/helm/v1/repo/_blobs/cdn-1.0.0.tgz : 500 Internal Server Error\nhelm.sh/helm/v3/pkg/getter.(*HTTPGetter).get
And another error when getting the charts list :
{"level":"error","ts":"2020-11-10T11:46:39.273Z","logger":"controller","msg":"Reconciler error","reconcilerGroup":"source.toolkit.fluxcd.io","reconcilerKind":"HelmRepository","controller":"helmrepository","name":"contoso","namespace":"cd","error":"failed to download repository index: failed to fetch https://contoso.azurecr.io/helm/v1/repo/index.yaml : 500 Internal Server Error"}
What is the cause of this error and how can I get more details about it ?