Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Unable to launch helm command in EC2 instance

Environment: AWS EC2

Verified I can run helm under generic ec2-user account, unable to get run it under individual users.

My user account returns this error:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

WARNING: stat /home/$USER.config/helm/registry/config.json: permission denied 
/home/$USER/.config/helm/registry/config.json oras.land/oras-go/pkg/auth/docker.NewClientWithDockerFallback oras.land/oras-go@v1.2.3/pkg/auth/docker/client.go:80 helm.sh/helm/v3/pkg/registry.NewClient helm.sh/helm/v3/pkg/registry/client.go:83 main.newDefaultRegistryClient helm.sh/helm/v3/cmd/helm/root.go:277 main.newRootCmd helm.sh/helm/v3/cmd/helm/root.go:155 main.main helm.sh/helm/v3/cmd/helm/helm.go:66 runtime.main runtime/proc.go:250 runtime.goexit runtime/asm_amd64.s:1598

I verified my $PATH has /usr/local/bin
Verified the permissions on helm, they’re the same as kubectl which works fine

>Solution :

Check the permission and fix is necessary the file permissions with the command:

ls -al /home/$USER.config/helm/registry/config.json

try this fix: https://askubuntu.com/a/747783/25579

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading