-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
config.json: no such file or directory #1021
Comments
Can you try a |
I got the same problem on my Mac. Retrying. |
Got the same error as @KJX16
|
interesting, It works when I accidentally used Minikube version 0.6.0, but not the versions 0.10.0 to 0.15.0. |
Same error as @galkinrost. Environment OS (e.g. from /etc/os-release): macOS 10.10.5 Using Minikube version 0.6.0 works as described by @KJX16 |
It's hard to guarantee in place upgrades from 0.6 to 0.15, so that's most likely not going to work. Your best option is to delete the minikube folder 'rm -from ~/.minikube' and perform a minikube start |
You also may be able to just create an empty configure.json in the location it's looking for |
creating empty configure.json doesnt work. just delete .minishift folder under user directory and it will work |
I have to report the same problem. The file should be created if it doesnt exist. And the system should continue to try to create it if it isnt there. Windows 7 machine, 0.20 installed after trying 0.12.2 as per the book Mastering Kubernetes. A minimal contents set of the config.json file could be posted here as a workaround for now, but this is such a silly persistent problem that it is really annoying. By now it should be no surprise that the path exists, but the file itself is missing. My Powershell is set with the following aliases
minikube version: v0.20.0 PS C:\Users\Michael> |
It appears to be a permissions problem. I defined the KUBECONFIG variable. I originally thought this would be a folder, but it turned out that the system was looking for a file. So I gave it an empty config.json file to look at and it was happy. You should consider creating a config/config.json file as a folder/file beneath the installed exe file location as default. As a minimum on install interactively check for write permissions in the destination folder and give a proper message. IMHO this should be seen as a bug fix, not a feature request. |
Same problem with |
I was able to get past this error by deleting my |
Just create config.json file by going to the dire mentioned in message. "touch config.json" |
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or |
FWIW, I am also missing the configuration file when installing and running a fresh minikube v0.24.1 on a cloud-based CI machine using the |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/reopen I believe this could still be addressed for the scenario I have described. If the maintainers feel otherwise, I'm okay to keep it closed. |
@timoreimann: you can't re-open an issue/PR unless you authored it or you are assigned to it. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
minikube version: v0.25.2 after a reboot minikube start --vm-driver=hyperv would not work. minkube delete complaint a missing config file (as above). workaround: remove remove hyper-v virtual machine and remove .minikube folder; rerun minikube --vm-driver=hyperv as admin. |
Had same issue. Empty config files did not work but removing .minikube folder as suggested by @cons0l3 does. |
I had the same problem. I deleted the ./minikube/machines/minikube directory and I could start minikube again. |
minikube version: v0.28.0 Deleted ./minikube directory, but still had trouble restarting minikube. Starting cluster components... |
Copy the configuration file 'config.json' from under 'profile' directory:C:> copy "C:\Users<Windows UserID>.minikube\profiles\minikube\config.json" "C:\Users<Windows UserID>.minikube\config\config.json" Get the latest minikube versionC:> minikube get-k8s-versions Start minikubeC:> minikube.exe start --kubernetes-version="v1.10.0" --vm-driver="virtualbox" --logtostderr In 'config.json' pay attention to: Usefull commandsC:> kubectl.exe version Kubernetes dashboard URL where you can connect using a browserC:>minikube.exe dashboard --url=true |
This issue still occurs. If we made an effort to improve the situation, would a pull be likely? Looking to help, but don't want to waste time. |
I use Hyper-V driver. What worked for me was:
if you skip step 1 and 2, you'll probably won't be able to delete the folder .minikube (for me, it was under C:\Users\user) Hope this works for you all, folks |
This seems to happen when you run
If you don't have the Suggestion: It might be nice if the |
If you're on Windows and trying to user Hyper-V make sure
I was getting:
I did a bios update recently and it defaulted VT-d off and that was causing the config file error since the VMs weren't starting. For example, Anyway, make sure VT-d is enabled in your BIOS if you've done an upgrade recently or haven't checked. Then open Hyper-V and delete any VMs minikube tried to make and do a I only say this after being certain that I had VT-d on... |
ran into same issue on windows, got over this, by If you see error while deleting, go to Hyper-V Manager (through start) and remove minikube Virtual Machine, and try a delete couple of times. |
In my case, the Name property in the |
But I can't delete .minikube.The system tells me I have no privilege to delete it. :( |
Worked for me Thanks! @r2d4 |
Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG
Minikube version (use
minikube version
): v0.15.0Environment:
cat ~/.minikube/machines/minikube/config.json | grep DriverName
): File doesn't existdocker -v
): Docker version 1.12.6, build 78d1802What happened:
What you expected to happen:
Minikude successful starts
How to reproduce it (as minimally and precisely as possible):
I followed the steps described in this tutorial https://kubernetes.io/docs/tutorials/stateless-application/hello-minikube/
Anything else do we need to know:
The text was updated successfully, but these errors were encountered: