Issue
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:
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/[email protected]/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
Answered By - Abner Rizzi Answer Checked By - Marilyn (WPSolving Volunteer)