Helm Push/Pull Error: scheme “OCI” not supported

There are a few issues reported by the developers when storing Helm charts in AWS ECR. Common errors occur when they are using the old version of the Helm chart. below is one of the many scenarios and others can be solved by just updating the Helm chart.

In case you would like to know what is OCI and how to install add charts into the ecr repo please visit my other blog Helm OCI based charts into AWS ECR and OCI feature

Case 1: When I run |helm push/pull| on a chart stored in ECR below is the error:-

helm pull oci://accountid.dkr.ecr.us-east-1.amazonaws.com/mychart --version 1.1.1
Error: scheme "oci" not supported

Now let’s check the version of the Helm chart installed on your local machine

$ helm version
version.BuildInfo{Version:"v1.1.1", GitCommit:"aaaaaaaaaa", GitTreeState:"clean", GoVersion:"aaaaaaaaaa"}

Now let’s upgrade the helm chart on Ubuntu:

 $ curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
 $ chmod 700 get_helm.sh
 $ ./get_helm.sh

It sometimes may require the refresh your |bashrc(source ~/.bashrc)| or optionally you can open another terminal and enter the version command again

$ helm version
version.BuildInfo{Version:"v1.1.1", GitCommit:"aaaaaaaaaaa", GitTreeState:"clean", GoVersion:"aaaaaaaaaaaa"}
helm pull oci://accountid.dkr.ecr.us-east-1.amazonaws.com/mychart --version 1.1.1
Pulled: accountid.dkr.ecr.us-east-1.amazonaws.com/oepgadmin:1.1.1
Digest: sha256:cafssdafsadfasdfasdfsdafewrwqerqwerweqrqerwweqrqre

Happy Helming…

Leave a Comment