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

0.31.0 start throws E1212 19:15:18.580331 25180 start.go:210] Error parsing version semver: Version string empty #3447

Closed
gowrisankar22 opened this issue Dec 12, 2018 · 11 comments · Fixed by #3450
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@gowrisankar22
Copy link

gowrisankar22 commented Dec 12, 2018

0.31.0 start throws E1212 19:15:18.580331 25180 start.go:210] Error parsing version semver: Version string empty but installation is successful on windows with virtualbox. what is was that error ?

C:\Users\ss\Desktop>minikube-windows-amd64.exe start
Starting local Kubernetes v1.10.0 cluster...
Starting VM...
Downloading Minikube ISO
178.87 MB / 178.87 MB [============================================] 100.00% 0s
Getting VM IP address...
E1212 19:15:18.580331 25180 start.go:210] Error parsing version semver: Version string empty
Moving files into cluster...
Downloading kubelet v1.10.0
Downloading kubeadm v1.10.0
Finished Downloading kubeadm v1.10.0
Finished Downloading kubelet v1.10.0
Setting up certs...
Connecting to cluster...
Setting up kubeconfig...
Stopping extra container runtimes...
Starting cluster components...
Verifying kubelet health ...
Verifying apiserver health ...Kubectl is now configured to use the cluster.
Loading cached images from config file.

Everything looks great. Please enjoy minikube!

Please provide the following details:

Environment:

Minikube version (use minikube version):

  • OS (e.g. from /etc/os-release): windows
  • VM Driver (e.g. cat ~/.minikube/machines/minikube/config.json | grep DriverName):virtualbox
  • ISO version (e.g. cat ~/.minikube/machines/minikube/config.json | grep -i ISO or minikube ssh cat /etc/VERSION):v0.31.0.iso",
@nnt
Copy link

nnt commented Dec 13, 2018

I am getting the same error message on Mac with minikube v0.31.0 and hyperkit v0.20180403-17-g3e954c

@alexsomesan
Copy link

Getting this on macOS too.

@milindrao
Copy link

milindrao commented Dec 13, 2018

Same problem. Windows 10 Enterprise. And unlike the OP, my start is hanging trying to download kubelet and kubeadm. No VirtualBox VM is being created (all though a host adapter was created)

c:\Dev\Kubernetes>minikube start
Starting local Kubernetes v1.10.0 cluster...
Starting VM...
Getting VM IP address...
E1212 21:58:23.596961 3196 start.go:210] Error parsing version semver: Version string empty
Moving files into cluster...
Downloading kubeadm v1.10.0
Downloading kubelet v1.10.0

Update: I "fixed" the problem by downgrading to Minikube 0.30.0. There seems to be problems with the 0.31.0 version. This may or may not be related - #3437. minikube start failed the first time with errors on VM. So I deleted the VM (which wasn't visible in VirtualBox) using minikube delete.

I still can't see the VM in VirtualBox. But that looks like a VirtualBox issue. I added it manually using C:\Dev\Kubernetes.minikube\machines\minikube\minikube\minikube.vbox. But it always shows as Powered Off even when Minikube is started. So no real point in adding it manually.

@liulang203
Copy link

Same problem. Windows 10 Enterprise.
λ minikube start --vm-driver hyperv --hyperv-virtual-switch "minikube-switch"
Starting local Kubernetes v1.10.0 cluster...
Starting VM...
Getting VM IP address...
E1213 11:01:32.642099 5040 start.go:210] Error parsing version semver: Version string empty
Moving files into cluster...
Setting up certs...
Connecting to cluster...
Setting up kubeconfig...
Stopping extra container runtimes...
Starting cluster components...

@mFarghaly
Copy link

I am getting the same error

minikube start --vm-driver=kvm2 --kubernetes-version=v1.12.0

output

Starting local Kubernetes v1.12.0 cluster...
Starting VM...
Getting VM IP address...
E1213 11:48:35.150827    7795 start.go:210] Error parsing version semver:  Version string empty
Moving files into cluster...
Setting up certs...
Connecting to cluster...
Setting up kubeconfig...
Stopping extra container runtimes...
Starting cluster components...
Verifying kubelet health ...
Verifying apiserver health ...Kubectl is now configured to use the cluster.
Loading cached images from config file.


Everything looks great. Please enjoy minikube!

@Nethminiromina
Copy link

Nethminiromina commented Dec 13, 2018

Same issue.

Starting local Kubernetes v1.10.0 cluster...
Starting VM...
Getting VM IP address...
E1213 15:58:51.195217    4215 start.go:210] Error parsing version semver:  Version string empty
Moving files into cluster...
Setting up certs...
Connecting to cluster...
Setting up kubeconfig...
Stopping extra container runtimes...
Machine exists, restarting cluster components...
Verifying kubelet health ...
Verifying apiserver health ....Kubectl is now configured to use the cluster.
Loading cached images from config file.


Everything looks great. Please enjoy minikube!

But minikube is running correctly

$ sudo minikube status

host: Running
kubelet: Running
apiserver: Running
kubectl: Correctly Configured: pointing to minikube-vm at 192.168.99.100

@balopat balopat added ev/hung-start kind/bug Categorizes issue or PR as related to a bug. and removed ev/hung-start labels Dec 13, 2018
@balopat
Copy link
Contributor

balopat commented Dec 13, 2018

This seems to be a red herring - not sure exactly yet how this situation turns up but I just had it on my machine too. I checked cat ~/.minikube/profiles/minikube/config.json, the kubernetes version field is empty string. But after logging the error minikube falls back to the default kubernetes version and everything is fine and actually saves the correct json. We should look at this, but it shouldn't cause any functional issues.

@balopat
Copy link
Contributor

balopat commented Dec 13, 2018

Got it - ed8f712#diff-ed78cd81495af3964aba5fbc898c33a2R164 @priyawadhwa can you have a look at this, please?

priyawadhwa pushed a commit to priyawadhwa/minikube that referenced this issue Dec 13, 2018
In PR kubernetes#3426, I changed "minikube start" to overwrite the cluster config earlier so that the container runtime could be extracted from it by the buildroot provisioner. This introduced a bug later on, where minikube expected to read the kubernetes version from theold config (which no longer existed, because the config was overwritten).

To fix this, I changed the code to store the old version of the config in memory before overwriting it.

This should fix kubernetes#3447
@alexsomesan
Copy link

@balopat this happens to me consistently on macOS with minikube v0.31.0 when trying to boot up a v1.13.0 K8S cluster.
I do have the version correctly filled in config.json and I did check for funny characters and whitespace directly around it - there is none.

@priyawadhwa
Copy link

@alexsomesan minikube was overwriting the config file on "minikube start" which caused this error to log, #3450 should fix it once merged

@alexsomesan
Copy link

Thanks, that makes my day sunnier. I'll watch #3450 then.

balopat pushed a commit that referenced this issue Dec 13, 2018
* Save old cluster config in memory before overwriting

In PR #3426, I changed "minikube start" to overwrite the cluster config earlier so that the container runtime could be extracted from it by the buildroot provisioner. This introduced a bug later on, where minikube expected to read the kubernetes version from theold config (which no longer existed, because the config was overwritten).

To fix this, I changed the code to store the old version of the config in memory before overwriting it.

This should fix #3447
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants