question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to enable helm

See original GitHub issue

When running microk8s.enable helm on edge channel I get the following output:

Enabling Helm
Fetching helm version v2.16.0.
/snap/microk8s/1245/actions/enable.helm.sh: line 17: cd: /var/snap/microk8s/1245/tmp/helm: Permission denied
Failed to enable helm

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
anushkrishnavcommented, Jan 25, 2021

I am intrested

0reactions
zmraulcommented, Feb 3, 2022

Hi, I’ve managed to reproduce this problem. It does seem to be caused by what @ktsakalozos said. I believe it affects all enable scripts that use the tmp foder.

I’m working on a VM, and I’ve added to /etc/sudoers:

Defaults    umask = 0027
Defaults    umask_override

Then, I’ve installed microk8s with sudo snap install microk8s --classic. Enabling any addon that creates the tmp folder will lead to this problem:

$ sudo microk8s enable istio
...
Istio is starting

To configure mutual TLS authentication consult the Istio documentation.
$ sudo usermod -a -G microk8s $USER
---- log out & log in ----
$ microk8s enable helm
Enabling Helm
Fetching helm version v2.16.7.
/snap/microk8s/2948/scripts/wrappers/common/../../../actions/enable.helm.sh: line 17: cd: /var/snap/microk8s/2948/tmp/helm: Permission denied

I’ll try to create a PR with changes to the affected addons, wich are cilium, helm, helm3, istio and prometheus.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to enable helm · Issue #1009 · canonical/microk8s
The obvious workaround is to enable helm with helm or change the permissions of the path. A proper fix would be to review...
Read more >
Troubleshooting - Helm
I am getting a warning about "Unable to get an update from the "stable" chart repository". Run helm repo list . If it...
Read more >
Troubleshooting the GitLab chart
Once PostgreSQL is properly upgraded, try the GitLab Helm chart upgrade again. Bundled NGINX Ingress pod fails to start: Failed to watch *v1beta1.Ingress....
Read more >
Kubernetes Helm Error: UPGRADE FAILED: another ... - Medium
This error is caused by a helm deployment that never completes successfully. It is likely caused by manually terminating a helm deployment by...
Read more >
Helm Install failing without giving much information about the ...
However, when I try to install it, I am getting a failure error. the error message is not much help in identifying the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found