/snap/bin/microk8s error - permanently dropping privs did not work: File exists

Viewed 2301

Has anyone come across this issue before?

/snap/bin/microk8s
permanently dropping privs did not work: File exists

I get the same error when trying to run any of the other sub commands like microk8s.enable, microk8s.status, microk8s.kubectl - all same error message.

I tried to:

  • run strace with the command to see if I can figure out what "File exists" - Nothing fruitful came of that.

Any pointers will be greatly appreciated.

2 Answers

I had a same error message when I execute docker command after installing docker via snap. After logout-login, the error was solved in my case.

I asked this on the #microk8s channel on the Kubernetes Slack and someone informed me that running sudo microk8s would fix this issue. It works with that for me.

Related