Not able to deploy n8n oci chart via argocd

error:

Failed to load target state: failed to generate manifest for source 1 of 1: rpc error: code = Unknown desc = Manifest generation error (cached): `kustomize build <path to cached source>/staging/n8n-cluster --enable-helm` failed exit status 1: Error: Error: could not find protocol handler for: : unable to run: 'helm pull --untar --untardir <path to cached source>/staging/n8n-cluster/charts --repo 8gears.container-registry.com/library/n8n n8n --version 0.23.1' with env=[HELM_CONFIG_HOME=/tmp/kustomize-helm-1677674532/helm HELM_CACHE_HOME=/tmp/kustomize-helm-1677674532/helm/.cache HELM_DATA_HOME=/tmp/kustomize-helm-1677674532/helm/.data] (is 'helm' installed?): exit status 1

secret in argocd

apiVersion: v1
kind: Secret
metadata:
  name: my-oci-repo-creds
  namespace: argocd
  labels:
    argocd.argoproj.io/secret-type: repository
stringData:
  name: n8n-oci-repo
  url: 8gears.container-registry.com/library/n8n
  enableOCI: "true"
  type: helm
  ForceHttpBasicAuth: "true"

using this helm chart

helmCharts:
  - name: n8n
    releaseName: n8n-cluster
    repo: 8gears.container-registry.com/library/n8n
    valuesFile: values.yaml
    version: 0.23.1

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @Shubham_Kumari,

Welcome to the community :tada:

This is not an error with n8n, Please remember if you are self hosting it is considered an advanced feature so we would need to rely on your knowledge of the helm chart you are using and argocd.

In this case I noticed at the end of your error it has (is 'helm' installed?) Have you verified that this is installed?

yes helm is installed. when we host it in our public helm chart repo, it works completely fine but with oci chart, it’s not working

Also we are on argocd version 2.11 which supports oci charts

Hey @Shubham_Kumari,

I don’t really have anything else as this is not an n8n error or issue, Looking at the error it could also be an issue with the files you are usign or maybe a path has not been set correctly. The bit below looks like somewhere you are using <path to cached source> instead of an actual path so unless you replaced this in the error it could be that.

Error: could not find protocol handler for: : unable to run: 'helm pull --untar --untardir <path to cached source>/staging/n8n-cluster/charts --repo 8gears.container-registry.com/library/n8n n8n --version 0.23.1

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.