bitnami/charts-syncer

404 uploading a chart

CapKenR opened this issue · 2 comments

I'm running charts-syncer on Kubernetes to sync (for now) one chart. It's able to pull the chart from the source but when it tries to upload it to the target I get the following error.

I0427 20:06:06.387271       1 sync.go:105] Uploading "airflow-12.2.0" chart...
I0427 20:06:06.387338       1 cache.go:54] cache hit { op:has, id:87daf0bc278305a910719eff7d264dccc2168344, filename:airflow-12.2.0.tgz }
I0427 20:06:06.387390       1 cache.go:54] cache hit { op:has, id:87daf0bc278305a910719eff7d264dccc2168344, filename:airflow-12.2.0.tgz }
I0427 20:06:06.387737       1 cache.go:97] cache hit { op:store, id:87daf0bc278305a910719eff7d264dccc2168344, filename:airflow-12.2.0.tgz }
E0427 20:06:06.558504       1 sync.go:107] unable to upload "airflow-12.2.0" chart: unexpected status: 404 Not Found
Error: 4 errors occurred:
unexpected status: 404 Not Found
unexpected status: 404 Not Found
unexpected status: 404 Not Found
unexpected status: 404 Not Found

I'm guessing it's a problem with the specified target URL, repo name, or credentials but I don't see any indication of which. Any ideas on where/how I can figure this out?

My config.yaml currently has the following. (I've tried lots of combinations here.)

target:
  repo:
    kind: OCI
    url: https://kendrider.jfrog.io/artifactory/charts-helm-local
  repoName: charts-helm-local
  containerRegistry: "kendrider.jfrog.io"
  containerRepository: "default-docker-local"

My secrets.env has the correct credentials.

I've verified the Kubernetes configmap and secret correspond to the above.

I've also verified I can do the following command.

curl -u${TARGET_REPO_AUTH_USERNAME}:${TARGET_REPO_AUTH_PASSWORD} -T test.tgz https://kendrider.jfrog.io/artifactory/charts-helm-local/test.tgz

The problem was with the package type I chose when creating the repository in Artifactory. It should be Docker rather than Helm.