Minikube: Failed to save config profiles/minikube/config.json

Created on 24 Oct 2019  Β·  12Comments  Β·  Source: kubernetes/minikube

The exact command to reproduce the issue:

The full output of the command that failed:

Failed to save config: error acquiring lock for /home/kalyan2smiles/.minikube/profiles/minikube/config.json: unable to open /tmp/juju-minikube-config-json: permission deni ed

The output of the minikube logs command:

The operating system version:

kinsupport triagneeds-information

Most helpful comment

minikube v1.7.3 on Ubuntu 18.04
Unable to load config: stat: stat /home/shahbaz/.minikube/profiles/minikube/config.json: permission denied

@gaetan1903 is right. You can use commands:

sudo rm -rf /tmp/juju-mk*
sudo rm -rf /tmp/minikube.*

All 12 comments

how to set the path

Thank you for sharing your experience! If you don't mind, could you please provide:

  • The exact command-lines used, so that we may replicate the issue
  • The full output of the command that failed
  • The full output of the "minikube logs" command
  • Which operating system version was used

This will help us isolate the problem further. Thank you!

@kalyanvajrapu8 I haven't heard from you, are you still having this issue ?

I have the same issue .

The command: sudo minikube start --vm-driver=none disk_size=2g
The output:
sudo minikube start --vm-driver=none disk_size=1g 70 ↡
πŸ™„ minikube v1.5.2 on Arch rolling

πŸ’£ Failed to save config: error acquiring lock for /root/.minikube/profiles/minikube/config.json: unable to open /tmp/juju-minikube-config-json: permission denied

😿 Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
πŸ‘‰ https://github.com/kubernetes/minikube/issues/new/choose

I solved mine,
I delete all minikube file in the /tmp

Maybe it's caused by first installation that I am stopped

Thanks Getha,
Let me try and inform

On Sun, 8 Dec 2019, 15:43 Gaetan Jonathan BAKARY, notifications@github.com
wrote:

I solved mine,
I delete all minikube file in the /tmp

Maybe it's caused by first installation that I am stopped

β€”
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/kubernetes/minikube/issues/5715?email_source=notifications&email_token=ALDPHV4YGJA6OWX7K6TO4GDQXTCFZA5CNFSM4JEOTHQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGG2NCY#issuecomment-562931339,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALDPHVYLWD3Z5MGQNI6XB2DQXTCFZANCNFSM4JEOTHQA
.

I believe we fixed this in minikube v1.6.1. Can anyone here confirm?

Thanks i will inform u after done task

On Fri, 20 Dec 2019, 01:12 Thomas StrΓΆmberg, notifications@github.com
wrote:

I believe we fixed this in minikube v1.6.1. Can anyone here confirm?

β€”
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/kubernetes/minikube/issues/5715?email_source=notifications&email_token=ALDPHV3DPCWJVIVIVNV5M3LQZPFBZA5CNFSM4JEOTHQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHKWTBQ#issuecomment-567634310,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALDPHV37G7EU4SXXHGX6Z23QZPFBZANCNFSM4JEOTHQA
.

minikube v1.7.3 on Ubuntu 18.04
πŸ’£ Unable to load config: stat: stat /home/shahbaz/.minikube/profiles/minikube/config.json: permission denied

@shahbaz-aslam2 try to delete all files on /tmp..

minikube v1.7.3 on Ubuntu 18.04
Unable to load config: stat: stat /home/shahbaz/.minikube/profiles/minikube/config.json: permission denied

@gaetan1903 is right. You can use commands:

sudo rm -rf /tmp/juju-mk*
sudo rm -rf /tmp/minikube.*

$ sudo minikube start --vm-driver=none
πŸ˜„ minikube v1.11.0 on Debian kali-rolling (vbox/amd64)
✨ Using the none driver based on user configuration
πŸ‘ Starting control plane node minikube in cluster minikube

❌ [JUJU_LOCK_DENIED] error provisioning host Failed to save config: failed to acquire lock for /root/.minikube/profiles/minikube/config.json: {Name:mk270d1b5db5965f2dc9e9e25770a63417031943 Clock:{} Delay:500ms Timeout:1m0s Cancel:}: unable to open /tmp/juju-mk270d1b5db5965f2dc9e9e25770a63417031943: permission denied
πŸ’‘ Suggestion: Run 'sudo sysctl fs.protected_regular=0', or try a driver which does not require root, such as '--driver=docker'
⁉ Related issue: https://github.com/kubernetes/minikube/issues/6391

What the issue please guide me, I have installed minikube but its not gonna be start

Was this page helpful?
0 / 5 - 0 ratings