Skip to content
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

api load: filestore: Error getting migrated host: unexpected end of JSON input #5046

Closed
rameshpuruganti opened this issue Aug 12, 2019 · 7 comments
Labels
os/windows priority/backlog Higher priority than priority/awaiting-more-evidence.

Comments

@rameshpuruganti
Copy link

The exact command to reproduce the issue:
minikube start --vm-driver hyperv --hyperv-virtual-switch="Minikube"
This is the command i am running.

The full output of the command that failed:


The output is
minikube v1.3.0 on Microsoft Windows 10 Pro 10.0.17763 Build 17763
E0812 11:39:52.134815 15164 start.go:723] StartHost: Error loading existing host. Please try running [minikube delete], then run [minikube start] again.: filestore: Error getting migrated host: unexpected end of JSON input

X Unable to start VM: Error loading existing host. Please try running [minikube delete], then run [minikube start] again.: filestore: Error getting migrated host: unexpected end of JSON input

The output of the minikube logs command:

In Log it is printed as:
X api load: filestore: Error getting migrated host: unexpected end of JSON input

The operating system version: Windows 10 Pro

@athurner
Copy link

I had a similar issue after upgrading from 1.2. Deleting the c:\Users<username>.minikube folder solved my issue.

@tstromberg
Copy link
Contributor

Interesting. Could you attach the config.json file? it should be in. c:\Users<username>.minikube\machines\minikube

The instructions should work: running minikube delete should resolve the issue.

@tstromberg tstromberg added os/windows triage/needs-information Indicates an issue needs more information in order to work on it. labels Aug 13, 2019
@tstromberg tstromberg changed the title Minikube is crashing in windows 10 pro api load: filestore: Error getting migrated host: unexpected end of JSON input Aug 13, 2019
@rameshpuruganti
Copy link
Author

config.json file is empty.
minikube delete is not working. i am getting same error. Is there any way to delete the folders from the windows and reinstall it again? I have tried to delete the folders manually some are deleted and some are not deleting since it is saying the folders are being used by some other services. Please guide me for the clean and full installation

@tstromberg
Copy link
Contributor

Confirmed on macOS:

 ~/.m/m/minikube  cat > config.json
 ~/.m/m/minikube  minikube delete

💣  Failed to delete cluster: Error getting migrated host: unexpected end of JSON input

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

@tstromberg tstromberg added priority/backlog Higher priority than priority/awaiting-more-evidence. triage/discuss Items for discussion and removed triage/needs-information Indicates an issue needs more information in order to work on it. labels Aug 15, 2019
@tstromberg
Copy link
Contributor

Thank you for the update!

As far as deleting folders in Windows, I'm not sure how to guide you to doing so with full permissions. You may need to stop the VM in Hyper-V first if one exists.

@rameshpuruganti
Copy link
Author

rameshpuruganti commented Aug 16, 2019

Thank you for your response. I have tried that as well by stopping Hyper-V and delete the folders. But somehow its not deleting and throwing message like the file or folder is being used.
Not sure which service is using this file. I have stopped all the services related to minikube. STILL THE ISSUE EXISTS. Screenshot attached
MinikubeError

@tstromberg
Copy link
Contributor

@rameshpuruganti I believe this issue is now addressed by minikube v1.4, as it forcibly resets VM's that are in a failed state. If you still see this issue with minikube v1.4 or higher, please reopen this issue by commenting with /reopen

Thank you for reporting this issue!

@tstromberg tstromberg removed the triage/discuss Items for discussion label Jun 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os/windows priority/backlog Higher priority than priority/awaiting-more-evidence.
Projects
None yet
Development

No branches or pull requests

3 participants