-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
none: Error restarting cluster: waiting for apiserver: apiserver process never appeared #5531
Comments
Thank you for creating this issue, I am curious of two things:
and I am also curious, does your machine have any special networking like vpn or firewalls or corp networking settings that affects the local network? |
@medyagh it has never been worked. My server is normal cloud server, no vpn and firewall I use "minikube delete", then minikube start --vm-driver=none --alsologtostderr -v=8 The results as below: root@ecs-de1e-0004:~# minikube start --vm-driver=none --alsologtostderr -v=8 I1004 09:51:24.565004 27804 notify.go:125] Checking for updates... I1004 09:51:24.884253 27804 start.go:236] hostinfo: {"hostname":"ecs-de1e-0004","uptime":948183,"bootTime":1569205701,"procs":237,"os":"linux","platform":"ubuntu","platformFamily":"debian","platformVersion":"16.04","kernelVersion":"4.4.0-151-generic","virtualizationSystem":"","virtualizationRole":"","hostid":"2b6963f8-8da7-4a4c-98f5-24ade4faebd1"} I1004 09:51:24.884646 27804 start.go:246] virtualization: * minikube v1.4.0 on Ubuntu 16.04 I1004 09:51:24.885285 27804 profile.go:66] Saving config to /root/.minikube/profiles/minikube/config.json ... I1004 09:51:24.885364 27804 lock.go:41] attempting to write to file "/root/.minikube/profiles/minikube/config.json" with filemode -rw------- I1004 09:51:24.885508 27804 cluster.go:93] Machine does not exist... provisioning new machine I1004 09:51:24.885523 27804 cluster.go:94] Provisioning machine with config: {KeepContext:false EmbedCerts:false MinikubeISO:https://storage.googleapis.com/minikube/iso/minikube-v1.4.0.iso Memory:2000 CPUs:2 DiskSize:20000 VMDriver:none ContainerRuntime:docker HyperkitVpnKitSock: HyperkitVSockPorts:[] DockerEnv:[] InsecureRegistry:[] RegistryMirror:[] HostOnlyCIDR:192.168.99.1/24 HypervVirtualSwitch: KVMNetwork:default KVMQemuURI:qemu:///system KVMGPU:false KVMHidden:false Downloader:{} DockerOpt:[] DisableDriverMounts:false NFSShare:[] NFSSharesRoot:/nfsshares UUID: NoVTXCheck:false DNSProxy:false HostDNSResolver:true} * Running on localhost (CPUs=8, Memory=16046MB, Disk=60346MB) ... * OS release is Ubuntu 16.04.6 LTS I1004 09:51:24.886817 27804 profile.go:66] Saving config to /root/.minikube/profiles/minikube/config.json ... I1004 09:51:24.886858 27804 lock.go:41] attempting to write to file "/root/.minikube/profiles/minikube/config.json.tmp462119232" with filemode -rw------- I1004 09:51:24.886977 27804 exec_runner.go:40] Run: sudo systemctl start docker I1004 09:51:24.893074 27804 exec_runner.go:51] Run with output: docker version --format '{{.Server.Version}}' * Preparing Kubernetes v1.16.0 on Docker 18.09.7 ... I1004 09:51:24.922825 27804 settings.go:124] acquiring lock: {Name:kubeconfigUpdate Clock:{} Delay:10s Timeout:0s Cancel:} I1004 09:51:24.922900 27804 settings.go:132] Updating kubeconfig: /root/.kube/config I1004 09:51:24.924192 27804 lock.go:41] attempting to write to file "/root/.kube/config" with filemode -rw------- I1004 09:51:24.924603 27804 kubeadm.go:610] kubelet v1.16.0 config: [Unit] Wants=docker.socket
: running command: sudo env PATH=/var/lib/minikube/binaries/v1.16.0:$PATH kubeadm init --config /var/tmp/minikube/kubeadm.yaml --ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests,DirAvailable--var-lib-minikube,FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml,FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml,FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml,FileAvailable--etc-kubernetes-manifests-etcd.yaml,Port-10250,Swap : running command: sudo env PATH=/var/lib/minikube/binaries/v1.16.0:$PATH kubeadm init --config /var/tmp/minikube/kubeadm.yaml --ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests,DirAvailable--var-lib-minikube,FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml,FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml,FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml,FileAvailable--etc-kubernetes-manifests-etcd.yaml,Port-10250,Swap
|
@BobOntario Thank you for updating the issue with more relevant information, it seems like your vm does NOT have accerss to gcr (for example can not pull k8s.gcr.io/kube-apiserver:v1.16.0) ! we have had cases in corp networks or china they have to provide image-mirror options.
do your company/network has a docker registry mirror ? can you try inside your VM to see if you can do this manually and paste for me the output of this:
|
@medyagh thanks for your kind help. Yes, you are right. It's images access problem. I added what you recommended and images can be accessed. But seems kube-apiserver not running as below logs:
|
@BobOntario glad that helped, I suggested in minikube we do a better job, detecting the user access to the image repositories before we spin up ! and we let people know much earlier and much nicer that their connectivity to the image repository is restricted. and they need to pass options . I would be happy to review any PR that does this secondly, @BobOntario would minikube delete and start help ? |
Hi, I'm attaching my logs: ==> eu-west-1: ! The 'none' driver provides limited isolation and may reduce system security and reliability. |
@medyagh thanks . Followed your instructions and I switched to Ubuntu 18.04 from 16.04. Now it works with below messages: Waiting for: apiserver proxy etcd scheduler controller dns I tried to see dashboard with the following command: http://server_ip:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/ I got the following response, not sure what's wrong? { }, |
I also found the following outputs when i applied "http://server_IP:8001. { |
You may need to start the dashboard? |
I'm glad this got sorted. minikube v1.5.0-beta.0 now does a connectivity check with the image repository, which should clarify the issue some. |
I had a similar issue on my Mac this worked for me. |
For me, this solution solved the problem: https://github.com/kubernetes/minikube/issues/4172#issuecomment-1267069635 |
i checked for downloaded images in docker , i got this gcr.io/k8s-minikube/kicbase and deleted them .Working from windows. From the command prompt docker rmi "imageid" then minkube delete and minkube start .My issue was cause by poor networkwork. |
My environment:
OS: Ubuntu 16.04 without VM installed
I run command:
minikube start --vm-driver=none --apiserver-ips 127.0.0.1 --apiserver-name localhost
Outputs:
minikube v1.4.0 on Ubuntu 16.04
X Error restarting cluster: waiting for apiserver: apiserver process never appeared
*
The output of the
minikube logs
command:root@ecs-de1e-0004:~#
The operating system version: Ubuntu 16.04
The text was updated successfully, but these errors were encountered: