minikube: open .minikube\machines\minikube\config.json: The system cannot find the file specified.
Command:
minikube start
Returns
o minikube v0.35.0 on windows (amd64) ! Unable to start VM: Error loading existing host. Please try running [minikube delete], then run [minikube start] again.: filestore: open C:\Users\goodw.minikube\machines\minikube\config.json: The system cannot find the file specified.
- Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
minikube delete
! Failed to delete cluster: open C:\Users\goodw.minikube\machines\minikube\config.json: The system cannot find the file specified.
- Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
I’ve tried deleting the .minikube file manually and no luck. Says I require permission from DESKTOP-UTI3DC7/username to make changes to this folder. I’m assuming that’s the VM? It seems like minikube is in some half installed state and I would like to just start from scratch again.
minikube logs
returns
! api load: filestore: open C:\Users\goodw.minikube\machines\minikube\config.json: The system cannot find the file specified.
- Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
Using windows 10 pro.
I tried to start minikubes originally with
minikube start vm-driver=hyperv hyperv-virtual-switch=my_network_switch
It seemed to have made the cluster but then hung. And then I couldn’t run any minikube commands.
Let me know if there is any other information I can provide.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 20 (3 by maintainers)
By the way, it is the GitHub markdown that is taking out the folder slash in something like: C:\Users\ianro.minikube\config\config.json It does happen here too. The line here was taken from that block, near the top. You can see that the \ is missing there too, but it isn’t in my original in Powershell. So don’t consider that this is where the error is, it is a red herring. 😃
Hi, I was also facing the same issue and was not able to delete the .minikube folder manually as well. On deleting .minikube folder It deleted all the files but was not able to delete the machine folder under .minikube.
So I found a workaround of this issue:
Hopefully, it helps!
In my case. I am running minikube in windows using Hyper-V. I also stuck at this error and cannot create new cluster with same name as deleted (but minikube start <cluster_name> work because the <cluster_name> folder inside
C:\Users\username\.minikubewere not existed.)And when I tried to remove the
C:\Users\username\.minikubefolder and its sub, the windows pop-up told me that Hyper-V is using some file and it cannot be remove. This made me noticed something, the files were locked by Hyper-V so minikube cannot delete it completely. So, it come to my solution to fix this.C:\Users\username\.minikubeandC:\Users\username\.kubeminikube start --vm-driver hyperv --hyperv-virtual-network <hyperv-ext-net> --logtostderragain to start a new clusterAnd now my minikube cluster is working properly.