minikube: Moving files into cluster fails: open ~/.minikube/cache/localkube/localkube-v1.9.0: no such file or directory
BUG REPORT
Environment: OSX 10.13.3
Minikube version (use minikube version):
minikube version: v0.25.0
kgi-mbp-i7-2:~ kgignatyev$ minikube update-check
CurrentVersion: v0.25.0
LatestVersion: v0.25.0
kgi-mbp-i7-2:~ kgignatyev$ cat /etc/os-release cat: /etc/os-release: No such file or directory kgi-mbp-i7-2:~ kgignatyev$ echo “”;
kgi-mbp-i7-2:~ kgignatyev$ echo “VM driver”: VM driver: kgi-mbp-i7-2:~ kgignatyev$ grep DriverName ~/.minikube/machines/minikube/config.json “DriverName”: “virtualbox”, kgi-mbp-i7-2:~ kgignatyev$ echo “”;
kgi-mbp-i7-2:~ kgignatyev$ echo “ISO version”; kgi-mbp-i7-2:~ kgignatyev$ grep -i ISO ~/.minikube/machines/minikube/config.json “Boot2DockerURL”: “file:///Users/kgignatyev/.minikube/cache/iso/minikube-v0.25.1.iso”,
What happened: kgi-mbp-i7-2:~ kgignatyev$ minikube start Starting local Kubernetes v1.9.0 cluster… Starting VM… Getting VM IP address… Moving files into cluster… E0126 13:13:03.231219 13209 start.go:234] Error updating cluster: Error running scp command: sudo scp -t /usr/local/bin output: scp: Broken pipe : Process exited with status 1
What you expected to happen: minikube starts as usual (I have been using it for couple of years now) How to reproduce it (as minimally and precisely as possible):
Output of minikube logs (if applicable):
kgi-mbp-i7-2:~ kgignatyev$ minikube logs
– Logs begin at Fri 2018-01-26 21:13:01 UTC, end at Fri 2018-01-26 21:17:44 UTC. –
– No entries –
Anything else do we need to know: If I try to delete .minikube
kgi-mbp-i7-2:~ kgignatyev$ minikube stop Stopping local Kubernetes cluster… Machine stopped. kgi-mbp-i7-2:~ kgignatyev$ rm -fR .minikube kgi-mbp-i7-2:~ kgignatyev$ minikube start Starting local Kubernetes v1.9.0 cluster… Starting VM… Downloading Minikube ISO 142.22 MB / 142.22 MB [============================================] 100.00% 0s Getting VM IP address… Moving files into cluster… E0126 13:19:24.954401 13444 start.go:234] Error updating cluster: Error updating localkube from uri: Error creating localkube asset from url: Error opening file asset: /Users/kgignatyev/.minikube/cache/localkube/localkube-v1.9.0: open /Users/kgignatyev/.minikube/cache/localkube/localkube-v1.9.0: no such file or directory
If I try to create the directory it still fails: kgi-mbp-i7-2:~ kgignatyev$ mkdir /Users/kgignatyev/.minikube/cache/localkube/localkube-v1.9.0 kgi-mbp-i7-2:~ kgignatyev$ minikube start Starting local Kubernetes v1.9.0 cluster… Starting VM… Getting VM IP address… Moving files into cluster… E0126 13:22:17.328239 13527 start.go:234] Error updating cluster: Error running scp command: sudo scp -t /usr/local/bin output: scp: Broken pipe : Process exited with status 1
still no entries in log
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 12
- Comments: 29 (2 by maintainers)
I downloaded it from https://github.com/kubernetes/minikube/releases/download/v0.25.0/localkube then I copied the file in ~/.minikube/cache/localkube/localkube-v1.9.0 It seems to start
Possible workaround:
Download this file:
https://github.com/kubernetes/minikube/releases/download/v0.25.0/localkuberename it tolocalkube-v1.9.0and place it in:/Users/<myuser>/.minikube/cache/localkube/@dstroot Try http://localhost:8001/api/v1/namespaces/kube-system/services/kubernetes-dashboard/proxy
Seems to have done it for me.
FWIW, in case this helps someone else, I hadn’t used minikube in quite a while (was previously using it with various drivers). I was running into errors with the previously used drivers (vmwarefusion) that used to work:
Was getting errors like:
Updated minikube using brew cask
Switching (and installing) updated hyperkit driver (updated xhyve also worked for me although it now barks about it being deprecated)–Followed the doc/process here–i.e.: ref: https://github.com/kubernetes/minikube/blob/master/docs/drivers.md#hyperkit-driver
As others noted above, purge our old cruft
minikube deleteThen was able to start minikube again without failuresminikube start --cpus 4 --memory 4096 --vm-driver=hyperkit --insecure-registry="0.0.0.0/0" -v 5I am seeing this error now when trying to access the dashboard:
I had the same dashboard issue as @dstroot on kubernetes 1.9.0 on OSX:
Using the http://localhost:8001/ui/ link which redirects to http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/ with the error.
Solution: Using http://localhost:8001/api/v1/namespaces/kube-system/services/kubernetes-dashboard/proxy as suggested by @steindaniel fixed the problem (but maybe at the expense of disabling https?).
@lazzarello did your dashboard come up with the minikube binary and 1.8.0? Mine did not. I’m also seeing a new error when I try 1.9.0.
I believe I have run into this issue in the past.
I basically had started minikube with
--kubernetes-version="v1.8.0"then stopped it, then started it again, this time without--kubernetes-version="v1.8.0":The 2nd start ends up trying to use kubernetes
1.9.0instead of1.8.0.I fixed this by,
minikube stop~/.minikube/profiles/minikube/config.jsonand replacing the stringv1.9.0tov1.8.0(towards the end of the file in theKubernetesConfigsection)--kubernetes-version="v1.8.0":minikube start --kubernetes-version="v1.8.0"Edit: After re-reading this thread, it seems people specifically want to use
1.9.0, in which case I also ran into this bug (and also another one that is that minikube does not remember me wanting to use1.8.0), but my comment is not the fix you’re looking for.I’m still having the issue. I’m able to get the same result as doing the curl request e.g. minikube is accessible through kubectl but dashboard is not functional:
does not seem to help:
kgi-mbp-i7-2:~ kgignatyev$ mv ~/Downloads/localkube ~/.minikube/cache/localkube/localkube-v1.9.0
kgi-mbp-i7-2:~ kgignatyev$ ls -al ~/.minikube/cache/localkube/localkube-v1.9.0/localkube Display all 190 possibilities? (y or n) kgi-mbp-i7-2:~ kgignatyev$ minikube start Starting local Kubernetes v1.9.0 cluster… Starting VM… Getting VM IP address… Moving files into cluster… E0126 13:42:57.433437 13866 start.go:234] Error updating cluster: Error running scp command: sudo scp -t /usr/local/bin output: scp: Broken pipe : Process exited with status 1
I am having the same issue.
E0126 13:22:42.801521 74141 start.go:234] Error updating cluster: Error updating localkube from uri: Error creating localkube asset from url: Error opening file asset: /Users/brandonbethke/.minikube/cache/localkube/localkube-v1.9.0: open /Users/brandonbethke/.minikube/cache/localkube/localkube-v1.9.0: no such file or directory