minikube: Failed to cache ISO: open .netrc: permission denied
I just freshly installed minikube to try it out in my Mac but have not managed to start
stanleynguyen@macair:~ $ minikube version
minikube version: v1.4.0
commit: 7969c25a98a018b94ea87d949350f3271e9d64b6
stanleynguyen@macair:~ $ minikube start
π minikube v1.4.0 on Darwin 10.14.6
πΏ Downloading VM boot image ...
π£ Failed to cache ISO: https://storage.googleapis.com/minikube/iso/minikube-v1.4.0.iso: invalid checksum: Error downloading checksum file: Error parsing netrc file at "/Users/stanleynguyen/.netrc": open /Users/stanleynguyen/.netrc: 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
It seems that because minikube is asking for access to my .netrc file but I donβt think itβs supposed to have access to such file with sensitive info like my passwords
I still tried running it in superuser mode anyway, and faced with another problem
stanleynguyen@macair:~ $ sudo minikube start
Password:
π minikube v1.4.0 on Darwin 10.14.6
π The "virtualbox" driver should not be used with root privileges.
π‘ If you are running minikube within a VM, consider using --vm-driver=none:
π https://minikube.sigs.k8s.io/docs/reference/drivers/none/
Note: I have virtualbox installed in my local as VM environment (I also used this for Docker)
The operating system version: MacOS Mojave 10.14.6
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 20 (5 by maintainers)
It seems like the network library minikube uses accesses .netrc, and raises an error if it cannot: https://github.com/hashicorp/go-getter/blob/master/netrc.go
As a workaround, you can manually download the ISO:
curl -L https://storage.googleapis.com/minikube/iso/minikube-v1.4.0.iso > ~/.minikube/cache/iso/minikube-v1.4.0.isoLike most network commands, curl also references your .netrc, but it is nice enough to fail.
Did you open a bug report upstream yet ? Looks like a library issueβ¦