bitnami / charts

Bitnami Helm Charts

Home Page:https://bitnami.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[bitnami/postgresql] Helm pull failed but install works

martinmikula opened this issue · comments

Name and Version

postgres/15.5.23

What architecture are you using?

amd64

What steps will reproduce the bug?

run:
helm pull oci://registry-1.docker.io/bitnamicharts/postgres --version 15.5.23 --destination /tmp/helmfile3421769178/microk8s/postgres/15.5.23 --untar --debug

Are you using any custom parameters or values?

no

What is the expected behavior?

helm pulled

What do you see instead?

exec: helm --kube-context microk8s pull oci://registry-1.docker.io/bitnamicharts/postgres --version 15.5.23 --destination /tmp/helmfile3421769178/postgres/15.5.23 --untar --debug
helm:plcjb> time="2024-08-21T07:12:59Z" level=debug msg=resolving host=registry-1.docker.io
helm:plcjb> time="2024-08-21T07:12:59Z" level=debug msg="do request" host=registry-1.docker.io request.header.accept="application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.image.index.v1+json, */*" request.header.user-agent=Helm/3.15.2 request.method=HEAD url="https://registry-1.docker.io/v2/bitnamicharts/postgres/manifests/15.5.23"
helm:plcjb> 
helm:plcjb> time="2024-08-21T07:13:00Z" level=debug msg="fetch response received" host=registry-1.docker.io response.header.content-length=165 response.header.content-type=application/json response.header.date="Wed, 21 Aug 2024 07:13:00 GMT" response.header.docker-distribution-api-version=registry/2.0 response.header.docker-ratelimit-source=213.164.137.239 response.header.strict-transport-security="max-age=31536000" response.header.www-authenticate="Bearer realm=\"https://auth.docker.io/token\",service=\"registry.docker.io\",scope=\"repository:bitnamicharts/postgres:pull\"" response.status="401 Unauthorized" url="https://registry-1.docker.io/v2/bitnamicharts/postgres/manifests/15.5.23"
helm:plcjb> time="2024-08-21T07:13:00Z" level=debug msg=Unauthorized header="Bearer realm=\"https://auth.docker.io/token\",service=\"registry.docker.io\",scope=\"repository:bitnamicharts/postgres:pull\"" host=registry-1.docker.io
helm:plcjb> time="2024-08-21T07:13:00Z" level=debug msg="do request" host=registry-1.docker.io request.header.accept="application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.image.index.v1+json, */*" request.header.user-agent=Helm/3.15.2 request.method=HEAD url="https://registry-1.docker.io/v2/bitnamicharts/postgres/manifests/15.5.23"
helm:plcjb> 
helm:plcjb> time="2024-08-21T07:13:00Z" level=debug msg="fetch response received" host=registry-1.docker.io response.header.content-length=165 response.header.content-type=application/json response.header.date="Wed, 21 Aug 2024 07:13:00 GMT" response.header.docker-distribution-api-version=registry/2.0 response.header.docker-ratelimit-source=213.164.137.239 response.header.strict-transport-security="max-age=31536000" response.header.www-authenticate="Bearer realm=\"https://auth.docker.io/token\",service=\"registry.docker.io\",scope=\"repository:bitnamicharts/postgres:pull\",error=\"insufficient_scope\"" response.status="401 Unauthorized" url="https://registry-1.docker.io/v2/bitnamicharts/postgres/manifests/15.5.23"
helm:plcjb> time="2024-08-21T07:13:00Z" level=debug msg=Unauthorized header="Bearer realm=\"https://auth.docker.io/token\",service=\"registry.docker.io\",scope=\"repository:bitnamicharts/postgres:pull\",error=\"insufficient_scope\"" host=registry-1.docker.io
helm:plcjb> 
helm:plcjb> time="2024-08-21T07:13:00Z" level=info msg="trying next host" error="pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed" host=registry-1.docker.io
helm:plcjb> 
helm:plcjb> Error: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
helm:plcjb> 
helm:plcjb> helm.go:84: [debug] pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed

Additional information

I'm trying to use bitnami repo in the helmfile, usage is really simple:

repositories:
  - name: bitnami
    url: registry-1.docker.io/bitnamicharts
    oci: true

releases:
  - name: postgres
    namespace: test
    chart: bitnami/postgres
    version: 15.5.23
    labels:
      service: postgres
    values:
      - /test/values/postgres.yaml

I have the same helmfile for keycloak and it works, only with postgres I have this problem.

Sorry my mistake. It works. Please close this isuue. Thanks...