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

Error on minikube start no config on macOS #5763

Closed
ruoru opened this issue Oct 29, 2019 · 10 comments
Closed

Error on minikube start no config on macOS #5763

ruoru opened this issue Oct 29, 2019 · 10 comments
Labels
co/hyperkit Hyperkit related issues kind/support Categorizes issue or PR as a support question. triage/needs-information Indicates an issue needs more information in order to work on it.

Comments

@ruoru
Copy link

ruoru commented Oct 29, 2019

my environment is:

macOS: 10.14.2

➜  ~ kubectl version
Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.3", GitCommit:"5e53fd6bc17c0dec8434817e69b04a25d8ae0ff0", GitTreeState:"clean", BuildDate:"2019-06-06T01:44:30Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"darwin/amd64"}
Error from server (NotFound): the server could not find the requested resource


➜  ~ minikube version
minikube version: v1.5.0
commit: d1151d93385a70c5a03775e166e94067791fe2d9


➜  ~ hyperkit -v
hyperkit: v0.20180403-41-g64bbfb

Homepage: https://github.com/docker/hyperkit
License: BSD


➜  ~ kubectl config current-context
minikube

when i am run minikube start --v=10 --vm-driver=hyperkit they say i am no config, then my option is as after i am write, and also not solve the problem.

~ rm -rf ~/.minikube/
rm: /Users/chenshijie342/.minikube//machines/minikube/b2d-image/.autodiskmounted: Permission denied
rm: /Users/chenshijie342/.minikube//machines/minikube/b2d-image: Directory not empty
rm: /Users/chenshijie342/.minikube//machines/minikube: Directory not empty
rm: /Users/chenshijie342/.minikube//machines: Directory not empty
rm: /Users/chenshijie342/.minikube/: Directory not empty


➜  ~ minikube delete
🙄  "minikube" profile does not exist
❌  Failed to delete cluster: load: filestore "minikube": open /Users/chenshijie342/.minikube/machines/minikube/config.json: no such file or directory
📌  You may need to manually remove the "minikube" VM from your hypervisor
🔥  Removing /Users/chenshijie342/.minikube/machines/minikube ...

💣  Unable to remove machine directory: %v: unlinkat /Users/chenshijie342/.minikube/machines/minikube/b2d-image/.autodiskmounted: 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


➜  ~ minikube start --v=10 --vm-driver=hyperkit
😄  minikube v1.5.0 on Darwin 10.14.2
💾  Downloading driver docker-machine-driver-hyperkit:
⚠️  Unable to update hyperkit driver: download failed: https://github.com/kubernetes/minikube/releases/download/v1.5.0/docker-machine-driver-hyperkit?checksum=file:https://github.com/kubernetes/minikube/releases/download/v1.5.0/docker-machine-driver-hyperkit.sha256: invalid checksum: Error downloading checksum file: Get https://github-production-release-asset-2e65be.s3.amazonaws.com/56353740/827d2b00-f756-11e9-82eb-a2326dc84578?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20191029%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20191029T084434Z&X-Amz-Expires=300&X-Amz-Signature=0d1ec2a7c257f420456c99b1c784aefee8341636fa0413003c83e12f6021de3f&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Ddocker-machine-driver-hyperkit.sha256&response-content-type=application%2Foctet-stream: read tcp 172.28.40.3:54377->52.216.168.83:443: read: connection reset by peer
💿  Downloading VM boot image ...
    > minikube-v1.5.0.iso.sha256: 65 B / 65 B [--------------] 100.00% ? p/s 0s
    > minikube-v1.5.0.iso: 143.77 MiB / 143.77 MiB  100.00% 293.82 KiB p/s 8m21
🔄  Retriable failure: Error loading existing host. Please try running [minikube delete], then run [minikube start] again.: filestore "minikube": open /Users/chenshijie342/.minikube/machines/minikube/config.json: no such file or directory
🔄  Retriable failure: Error loading existing host. Please try running [minikube delete], then run [minikube start] again.: filestore "minikube": open /Users/chenshijie342/.minikube/machines/minikube/config.json: no such file or directory
🔄  Retriable failure: Error loading existing host. Please try running [minikube delete], then run [minikube start] again.: filestore "minikube": open /Users/chenshijie342/.minikube/machines/minikube/config.json: no such file or directory
🔄  Retriable failure: Error loading existing host. Please try running [minikube delete], then run [minikube start] again.: filestore "minikube": open /Users/chenshijie342/.minikube/machines/minikube/config.json: no such file or directory

💣  Unable to start VM: Error loading existing host. Please try running [minikube delete], then run [minikube start] again.: filestore "minikube": open /Users/chenshijie342/.minikube/machines/minikube/config.json: no such file or directory

😿  Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
👉  https://github.com/kubernetes/minikube/issues/new/choose
@medyagh medyagh added the co/hyperkit Hyperkit related issues label Oct 30, 2019
@medyagh
Copy link
Member

medyagh commented Nov 4, 2019

@ruoru it appears to me there is a file permission problem !
when you tried to remove the folder

➜  ~ rm -rf ~/.minikube/
rm: /Users/chenshijie342/.minikube//machines/minikube/b2d-image/.autodiskmounted: Permission denied
rm: /Users/chenshijie342/.minikube//machines/minikube/b2d-image: Directory not empty
rm: /Users/chenshijie342/.minikube//machines/minikube: Directory not empty
rm: /Users/chenshijie342/.minikube//machines: Directory not empty
rm: /Users/chenshijie342/.minikube/: Directory not empty

it seems like it didnt have permission to delete it, maybe you could try the delete with sudo ?

@medyagh medyagh added the triage/needs-information Indicates an issue needs more information in order to work on it. label Nov 4, 2019
@tstromberg tstromberg added the kind/support Categorizes issue or PR as a support question. label Nov 6, 2019
@tstromberg
Copy link
Contributor

@ruoru - I can't quite tell how minikube got into this state, but please let us know if sudo rm -Rf ~/.minikube/machines solves your issue.

@ruoru
Copy link
Author

ruoru commented Nov 8, 2019

@ruoru it appears to me there is a file permission problem !
when you tried to remove the folder

➜  ~ rm -rf ~/.minikube/
rm: /Users/chenshijie342/.minikube//machines/minikube/b2d-image/.autodiskmounted: Permission denied
rm: /Users/chenshijie342/.minikube//machines/minikube/b2d-image: Directory not empty
rm: /Users/chenshijie342/.minikube//machines/minikube: Directory not empty
rm: /Users/chenshijie342/.minikube//machines: Directory not empty
rm: /Users/chenshijie342/.minikube/: Directory not empty

it seems like it didnt have permission to delete it, maybe you could try the delete with sudo ?

@medyagh

thanks for helping me, i am alreay delete .minikube folder, but the error is same as before

➜  ~ ls -a
.                                                                 .profile
..                                                                .rustup
.CFUserTextEncoding                                               .serverless
.DS_Store                                                         .serverlessrc
.Trash                                                            .shell.pre-oh-my-zsh
.android                                                          .skipbuddy
.bash_history                                                     .sogouinput
.bash_profile                                                     .sqldeveloper
.cargo                                                            .ssh
.cnpmrc                                                           .tooling
.cocoapods                                                        .v8flags.6.8.275.32-node.51.46fa3a5a327d59513fe9b20c37efc41c.json
.config                                                           .v8flags.6.8.275.32-node.51.63a9f0ea7bb98050796b649e85481845.json
.dart                                                             .viminfo
.dartServer                                                       .vscode
.docker                                                           .zcompdump
.dubbo                                                            .zcompdump-C07SF0E1G1J1-5.2
.flutter                                                          .zcompdump-C07SF0E1G1J1-5.3
.gem                                                              .zprofile
.gemrc                                                            .zsh_history
.gitconfig                                                        .zshrc
.gitignore_global                                                 Applications
.gradle                                                           Desktop
.hgignore_global                                                  DevelopmentTools
.kube                                                             Documents
.lesshst                                                          Downloads
.node-gyp                                                         Library
.node_repl_history                                                Movies
.npm                                                              Music
.npmrc                                                            Pictures
.nvm                                                              Public
.oh-my-zsh                                                        Repositorys
.oracle_jre_usage                                                 logs

➜  docker-demo minikube delete
🙄  "minikube" profile does not exist
🙄  "minikube" cluster does not exist. Proceeding ahead with cleanup.
💔  The "minikube" cluster has been deleted.
🔥  Successfully deleted profile "minikube"

➜  docker-demo minikube start --v=10 --vm-driver=hyperkit
🎉  minikube 1.5.2 is available! Download it: https://github.com/kubernetes/minikube/releases/tag/v1.5.2
💡  To disable this notice, run: 'minikube config set WantUpdateNotification false'

🙄  minikube v1.5.0 on Darwin 10.14.2
💾  Downloading driver docker-machine-driver-hyperkit:
⚠️  Unable to update hyperkit driver: download failed: https://github.com/kubernetes/minikube/releases/download/v1.5.0/docker-machine-driver-hyperkit?checksum=file:https://github.com/kubernetes/minikube/releases/download/v1.5.0/docker-machine-driver-hyperkit.sha256: invalid checksum: Error downloading checksum file: Get https://github-production-release-asset-2e65be.s3.amazonaws.com/56353740/827d2b00-f756-11e9-82eb-a2326dc84578?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20191108%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20191108T104347Z&X-Amz-Expires=300&X-Amz-Signature=88c2332b7a109536a0876636657d308943eac6cdc4bcfb9b22f765c9220bb262&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Ddocker-machine-driver-hyperkit.sha256&response-content-type=application%2Foctet-stream: read tcp 172.28.40.24:56113->52.216.237.235:443: read: connection reset by peer
💿  Downloading VM boot image ...
    > minikube-v1.5.0.iso.sha256: 65 B / 65 B [--------------] 100.00% ? p/s 0s
    > minikube-v1.5.0.iso: 143.77 MiB / 143.77 MiB [ 100.00% 1.02 MiB p/s 2m21s
🔥  Creating hyperkit VM (CPUs=2, Memory=2000MB, Disk=20000MB) ...
🔄  Retriable failure: create: Error creating machine: Error in driver during machine creation: exit status 1
🔥  Deleting "minikube" in hyperkit ...
🔄  Retriable failure: Error loading existing host. Please try running [minikube delete], then run [minikube start] again.: filestore "minikube": open /Users/chenshijie342/.minikube/machines/minikube/config.json: no such file or directory
🔄  Retriable failure: Error loading existing host. Please try running [minikube delete], then run [minikube start] again.: filestore "minikube": open /Users/chenshijie342/.minikube/machines/minikube/config.json: no such file or directory
🔄  Retriable failure: Error loading existing host. Please try running [minikube delete], then run [minikube start] again.: filestore "minikube": open /Users/chenshijie342/.minikube/machines/minikube/config.json: no such file or directory

💣  Unable to start VM: Error loading existing host. Please try running [minikube delete], then run [minikube start] again.: filestore "minikube": open /Users/chenshijie342/.minikube/machines/minikube/config.json: no such file or directory

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

@ruoru
Copy link
Author

ruoru commented Nov 8, 2019

@tstromberg

it not solved delete folder ~/.minikube/machines

@priyawadhwa
Copy link

Hey @ruoru -- I noticed this line in your logs:

📌  You may need to manually remove the "minikube" VM from your hypervisor

I'm wondering if you may need to manually delete the minikube VM in hyperkit. You could try running

ps -Af | grep minikube

to see if any unexpected processes are running.

@ruoru
Copy link
Author

ruoru commented Nov 15, 2019

Hey @ruoru -- I noticed this line in your logs:

📌  You may need to manually remove the "minikube" VM from your hypervisor

I'm wondering if you may need to manually delete the minikube VM in hyperkit. You could try running

ps -Af | grep minikube

to see if any unexpected processes are running.

@priyawadhwa i am run the shell and i do not know what the process is

➜  kubernetes-demo ps -Af | grep minikube
1939934316  5425  2936   0 10:43AM ttys003    0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn minikube

@tstromberg
Copy link
Contributor

@ruora - I noticed the version of hyperkit you have is quite old. Do you mind upgrading it, as well as minikube to the latest version? I suspect that doing so will allow things to work again.

You may need to re-run rm -Rf ~/.minikube though first.

@tstromberg
Copy link
Contributor

Related: #5833

@priyawadhwa
Copy link

Hey @ruoru -- hopefully it's OK if I close this - there wasn't enough information to make it actionable, and some time has already passed. If you are able to provide additional details, you may reopen it at any point by adding /reopen to your comment.

I'd recommend:

and then running:

minikube delete
sudo rm -rf ~/.minikube
minikube start --alsologtostderr -v 8

if any of these commands fail, please include the output when you reopen the issue. Thank you!

@joseph-ravenwolfe
Copy link

As a note, I also received this error, and it was due to a ~/.netrc file created a few years ago by Heroku Toolbelt. Removing the ~/.netrc file resolved the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/hyperkit Hyperkit related issues kind/support Categorizes issue or PR as a support question. triage/needs-information Indicates an issue needs more information in order to work on it.
Projects
None yet
Development

No branches or pull requests

5 participants