kubernetes / minikube

Run Kubernetes locally
https://minikube.sigs.k8s.io/
Apache License 2.0
29.22k stars 4.87k forks source link

Error minikube start #14969

Closed arnoldngounfo closed 1 year ago

arnoldngounfo commented 2 years ago

Étapes pour reproduire le problème:

1.minikube start --vm-driver=none

Sortie complète de la commande minikube logs:

* * ==> Audit <== * |---------|------------------|----------|------|---------|----------------------|----------| | Command | Args | Profile | User | Version | Start Time | End Time | |---------|------------------|----------|------|---------|----------------------|----------| | start | --vm-driver=none | minikube | root | v1.27.0 | 17 Sep 22 22:35 CEST | | | start | --vm-driver=none | minikube | root | v1.27.0 | 17 Sep 22 22:40 CEST | | | start | --vm-driver=none | minikube | root | v1.27.0 | 17 Sep 22 23:10 CEST | | | start | --vm-driver=none | minikube | root | v1.27.0 | 17 Sep 22 23:19 CEST | | |---------|------------------|----------|------|---------|----------------------|----------| * * ==> Dernier démarrage <== * Log file created at: 2022/09/17 23:19:17 Running on machine: kubernetes Binary: Built with gc go1.19.1 for linux/amd64 Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg I0917 23:19:17.478347 6338 out.go:296] Setting OutFile to fd 1 ... I0917 23:19:17.478461 6338 out.go:343] TERM=xterm,COLORTERM=, which probably does not support color I0917 23:19:17.478464 6338 out.go:309] Setting ErrFile to fd 2... I0917 23:19:17.478467 6338 out.go:343] TERM=xterm,COLORTERM=, which probably does not support color I0917 23:19:17.478587 6338 root.go:333] Updating PATH: /root/.minikube/bin W0917 23:19:17.478663 6338 root.go:310] Error reading config file at /root/.minikube/config/config.json: open /root/.minikube/config/config.json: no such file or directory I0917 23:19:17.478822 6338 out.go:303] Setting JSON to false I0917 23:19:17.480720 6338 start.go:115] hostinfo: {"hostname":"kubernetes","uptime":2418,"bootTime":1663447139,"procs":175,"os":"linux","platform":"centos","platformFamily":"rhel","platformVersion":"7.9.2009","kernelVersion":"3.10.0-1160.76.1.el7.x86_64","kernelArch":"x86_64","virtualizationSystem":"","virtualizationRole":"","hostId":"ce3ea834-233b-8441-9ae0-680ac48b02ab"} I0917 23:19:17.480763 6338 start.go:125] virtualization: I0917 23:19:17.492274 6338 out.go:177] * minikube v1.27.0 sur Centos 7.9.2009 W0917 23:19:17.493709 6338 preload.go:295] Failed to list preload files: open /root/.minikube/cache/preloaded-tarball: no such file or directory I0917 23:19:17.493762 6338 notify.go:214] Checking for updates... I0917 23:19:17.493951 6338 config.go:180] Loaded profile config "minikube": Driver=none, ContainerRuntime=docker, KubernetesVersion=v1.25.0 I0917 23:19:17.494328 6338 exec_runner.go:51] Run: systemctl --version W0917 23:19:17.495957 6338 out.go:239] ! Kubernetes 1.25.0 has a known issue with resolv.conf. minikube is using a workaround that should work for most use cases. W0917 23:19:17.496019 6338 out.go:239] ! Pour plus d'informations, voir : https://github.com/kubernetes/kubernetes/issues/112135 I0917 23:19:17.496044 6338 driver.go:365] Setting default libvirt URI to qemu:///system I0917 23:19:17.498894 6338 out.go:177] * Utilisation du pilote none basé sur le profil existant I0917 23:19:17.500413 6338 start.go:284] selected driver: none I0917 23:19:17.500420 6338 start.go:808] validating driver "none" against &{Name:minikube KeepContext:false EmbedCerts:false MinikubeISO: KicBaseImage:gcr.io/k8s-minikube/kicbase:v0.0.34@sha256:f2a1e577e43fd6769f35cdb938f6d21c3dacfd763062d119cade738fa244720c Memory:2200 CPUs:2 DiskSize:20000 VMDriver: Driver:none HyperkitVpnKitSock: HyperkitVSockPorts:[] DockerEnv:[] ContainerVolumeMounts:[] InsecureRegistry:[] RegistryMirror:[] HostOnlyCIDR:192.168.59.1/24 HypervVirtualSwitch: HypervUseExternalSwitch:false HypervExternalAdapter: KVMNetwork:default KVMQemuURI:qemu:///system KVMGPU:false KVMHidden:false KVMNUMACount:1 APIServerPort:0 DockerOpt:[] DisableDriverMounts:false NFSShare:[] NFSSharesRoot:/nfsshares UUID: NoVTXCheck:false DNSProxy:false HostDNSResolver:true HostOnlyNicType:virtio NatNicType:virtio SSHIPAddress: SSHUser:root SSHKey: SSHPort:22 KubernetesConfig:{KubernetesVersion:v1.25.0 ClusterName:minikube Namespace:default APIServerName:minikubeCA APIServerNames:[] APIServerIPs:[] DNSDomain:cluster.local ContainerRuntime:docker CRISocket: NetworkPlugin: FeatureGates: ServiceCIDR:10.96.0.0/12 ImageRepository: LoadBalancerStartIP: LoadBalancerEndIP: CustomIngressCert: RegistryAliases: ExtraOptions:[] ShouldLoadCachedImages:false EnableDefaultCNI:false CNI: NodeIP: NodePort:8443 NodeName:} Nodes:[{Name:m01 IP:172.23.170.240 Port:8443 KubernetesVersion:v1.25.0 ContainerRuntime:docker ControlPlane:true Worker:true}] Addons:map[] CustomAddonImages:map[] CustomAddonRegistries:map[] VerifyComponents:map[apiserver:true system_pods:true] StartHostTimeout:6m0s ScheduledStop: ExposedPorts:[] ListenAddress: Network: Subnet: MultiNodeRequested:false ExtraDisks:0 CertExpiration:26280h0m0s Mount:false MountString:/root:/minikube-host Mount9PVersion:9p2000.L MountGID:docker MountIP: MountMSize:262144 MountOptions:[] MountPort:0 MountType:9p MountUID:docker BinaryMirror: DisableOptimizations:false DisableMetrics:false CustomQemuFirmwarePath:} I0917 23:19:17.500477 6338 start.go:819] status for none: {Installed:true Healthy:true Running:false NeedsImprovement:false Error: Reason: Fix: Doc: Version:} I0917 23:19:17.500969 6338 cni.go:95] Creating CNI manager for "" I0917 23:19:17.500975 6338 cni.go:149] Driver none used, CNI unnecessary in this configuration, recommending no CNI I0917 23:19:17.500985 6338 start_flags.go:310] config: {Name:minikube KeepContext:false EmbedCerts:false MinikubeISO: KicBaseImage:gcr.io/k8s-minikube/kicbase:v0.0.34@sha256:f2a1e577e43fd6769f35cdb938f6d21c3dacfd763062d119cade738fa244720c Memory:2200 CPUs:2 DiskSize:20000 VMDriver: Driver:none HyperkitVpnKitSock: HyperkitVSockPorts:[] DockerEnv:[] ContainerVolumeMounts:[] InsecureRegistry:[] RegistryMirror:[] HostOnlyCIDR:192.168.59.1/24 HypervVirtualSwitch: HypervUseExternalSwitch:false HypervExternalAdapter: KVMNetwork:default KVMQemuURI:qemu:///system KVMGPU:false KVMHidden:false KVMNUMACount:1 APIServerPort:0 DockerOpt:[] DisableDriverMounts:false NFSShare:[] NFSSharesRoot:/nfsshares UUID: NoVTXCheck:false DNSProxy:false HostDNSResolver:true HostOnlyNicType:virtio NatNicType:virtio SSHIPAddress: SSHUser:root SSHKey: SSHPort:22 KubernetesConfig:{KubernetesVersion:v1.25.0 ClusterName:minikube Namespace:default APIServerName:minikubeCA APIServerNames:[] APIServerIPs:[] DNSDomain:cluster.local ContainerRuntime:docker CRISocket: NetworkPlugin: FeatureGates: ServiceCIDR:10.96.0.0/12 ImageRepository: LoadBalancerStartIP: LoadBalancerEndIP: CustomIngressCert: RegistryAliases: ExtraOptions:[] ShouldLoadCachedImages:false EnableDefaultCNI:false CNI: NodeIP: NodePort:8443 NodeName:} Nodes:[{Name:m01 IP:172.23.170.240 Port:8443 KubernetesVersion:v1.25.0 ContainerRuntime:docker ControlPlane:true Worker:true}] Addons:map[] CustomAddonImages:map[] CustomAddonRegistries:map[] VerifyComponents:map[apiserver:true system_pods:true] StartHostTimeout:6m0s ScheduledStop: ExposedPorts:[] ListenAddress: Network: Subnet: MultiNodeRequested:false ExtraDisks:0 CertExpiration:26280h0m0s Mount:false MountString:/root:/minikube-host Mount9PVersion:9p2000.L MountGID:docker MountIP: MountMSize:262144 MountOptions:[] MountPort:0 MountType:9p MountUID:docker BinaryMirror: DisableOptimizations:false DisableMetrics:false CustomQemuFirmwarePath:} I0917 23:19:17.502750 6338 out.go:177] * Démarrage du noeud de plan de contrôle minikube dans le cluster minikube I0917 23:19:17.504080 6338 profile.go:148] Saving config to /root/.minikube/profiles/minikube/config.json ... I0917 23:19:17.504261 6338 cache.go:208] Successfully downloaded all kic artifacts I0917 23:19:17.504295 6338 start.go:364] acquiring machines lock for minikube: {Name:mkc8ab01ad3ea83211c505c81a7ee49a8e3ecb89 Clock:{} Delay:500ms Timeout:13m0s Cancel:} I0917 23:19:17.504537 6338 start.go:368] acquired machines lock for "minikube" in 219.501µs I0917 23:19:17.504548 6338 start.go:96] Skipping create...Using existing machine configuration I0917 23:19:17.504555 6338 fix.go:55] fixHost starting: m01 W0917 23:19:17.504672 6338 none.go:130] unable to get port: "minikube" does not appear in /root/.kube/config I0917 23:19:17.504682 6338 api_server.go:165] Checking apiserver status ... I0917 23:19:17.504700 6338 exec_runner.go:51] Run: sudo pgrep -xnf kube-apiserver.*minikube.* W0917 23:19:17.542912 6338 api_server.go:169] stopped: unable to get apiserver pid: sudo pgrep -xnf kube-apiserver.*minikube.*: exit status 1 stdout: stderr: I0917 23:19:17.543065 6338 exec_runner.go:51] Run: sudo systemctl is-active --quiet service kubelet I0917 23:19:17.562035 6338 fix.go:103] recreateIfNeeded on minikube: state=Stopped err= W0917 23:19:17.562046 6338 fix.go:129] unexpected machine state, will restart: I0917 23:19:17.564320 6338 out.go:177] * Redémarrage du none bare metal machine existant pour "minikube" ... I0917 23:19:17.566769 6338 profile.go:148] Saving config to /root/.minikube/profiles/minikube/config.json ... I0917 23:19:17.566864 6338 start.go:300] post-start starting for "minikube" (driver="none") I0917 23:19:17.567057 6338 start.go:328] creating required directories: [/etc/kubernetes/addons /etc/kubernetes/manifests /var/tmp/minikube /var/lib/minikube /var/lib/minikube/certs /var/lib/minikube/images /var/lib/minikube/binaries /tmp/gvisor /usr/share/ca-certificates /etc/ssl/certs] I0917 23:19:17.567078 6338 exec_runner.go:51] Run: sudo mkdir -p /etc/kubernetes/addons /etc/kubernetes/manifests /var/tmp/minikube /var/lib/minikube /var/lib/minikube/certs /var/lib/minikube/images /var/lib/minikube/binaries /tmp/gvisor /usr/share/ca-certificates /etc/ssl/certs I0917 23:19:17.582305 6338 main.go:134] libmachine: Couldn't set key CPE_NAME, no corresponding struct field found I0917 23:19:17.582320 6338 main.go:134] libmachine: Couldn't set key , no corresponding struct field found I0917 23:19:17.582329 6338 main.go:134] libmachine: Couldn't set key CENTOS_MANTISBT_PROJECT, no corresponding struct field found I0917 23:19:17.582336 6338 main.go:134] libmachine: Couldn't set key CENTOS_MANTISBT_PROJECT_VERSION, no corresponding struct field found I0917 23:19:17.582342 6338 main.go:134] libmachine: Couldn't set key REDHAT_SUPPORT_PRODUCT, no corresponding struct field found I0917 23:19:17.582348 6338 main.go:134] libmachine: Couldn't set key REDHAT_SUPPORT_PRODUCT_VERSION, no corresponding struct field found I0917 23:19:17.582354 6338 main.go:134] libmachine: Couldn't set key , no corresponding struct field found I0917 23:19:17.584787 6338 out.go:177] * La version du système d'exploitation est CentOS Linux 7 (Core) I0917 23:19:17.585955 6338 filesync.go:126] Scanning /root/.minikube/addons for local assets ... I0917 23:19:17.585982 6338 filesync.go:126] Scanning /root/.minikube/files for local assets ... I0917 23:19:17.585991 6338 start.go:303] post-start completed in 19.122414ms I0917 23:19:17.585995 6338 fix.go:57] fixHost completed within 81.443186ms I0917 23:19:17.585997 6338 start.go:83] releasing machines lock for "minikube", held for 81.455986ms I0917 23:19:17.586372 6338 exec_runner.go:51] Run: curl -sS -m 2 https://registry.k8s.io/ I0917 23:19:17.586396 6338 exec_runner.go:51] Run: /bin/bash -c "sudo mkdir -p /etc && printf %!s(MISSING) "runtime-endpoint: unix:///var/run/cri-dockerd.sock image-endpoint: unix:///var/run/cri-dockerd.sock " | sudo tee /etc/crictl.yaml" I0917 23:19:17.616735 6338 exec_runner.go:51] Run: sudo systemctl unmask docker.service I0917 23:19:17.717690 6338 exec_runner.go:51] Run: sudo systemctl enable docker.socket I0917 23:19:17.806083 6338 exec_runner.go:51] Run: sudo systemctl daemon-reload I0917 23:19:17.878649 6338 exec_runner.go:51] Run: sudo systemctl restart docker I0917 23:19:18.415908 6338 exec_runner.go:51] Run: sudo systemctl enable cri-docker.socket I0917 23:19:18.533389 6338 exec_runner.go:51] Run: sudo systemctl daemon-reload I0917 23:19:18.612327 6338 exec_runner.go:51] Run: sudo systemctl start cri-docker.socket I0917 23:19:18.629776 6338 start.go:450] Will wait 60s for socket path /var/run/cri-dockerd.sock I0917 23:19:18.629813 6338 exec_runner.go:51] Run: stat /var/run/cri-dockerd.sock I0917 23:19:18.631352 6338 start.go:471] Will wait 60s for crictl version I0917 23:19:18.631373 6338 exec_runner.go:51] Run: sudo crictl version I0917 23:19:18.640233 6338 retry.go:31] will retry after 11.04660288s: Temporary Error: sudo crictl version: exit status 1 stdout: stderr: sudo: crictl : commande introuvable I0917 23:19:29.688162 6338 exec_runner.go:51] Run: sudo crictl version I0917 23:19:29.718617 6338 retry.go:31] will retry after 21.607636321s: Temporary Error: sudo crictl version: exit status 1 stdout: stderr: sudo: crictl : commande introuvable I0917 23:19:51.326824 6338 exec_runner.go:51] Run: sudo crictl version I0917 23:19:51.337041 6338 retry.go:31] will retry after 26.202601198s: Temporary Error: sudo crictl version: exit status 1 stdout: stderr: sudo: crictl : commande introuvable I0917 23:20:17.542196 6338 exec_runner.go:51] Run: sudo crictl version I0917 23:20:17.589123 6338 out.go:177] W0917 23:20:17.591432 6338 out.go:239] X Fermeture en raison de RUNTIME_ENABLE : Temporary Error: sudo crictl version: exit status 1 stdout: stderr: sudo: crictl : commande introuvable W0917 23:20:17.591469 6338 out.go:239] * W0917 23:20:17.592443 6338 out.go:239] ╭────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ * Si les conseils ci-dessus ne vous aident pas, veuillez nous en informer : │ │ https://github.com/kubernetes/minikube/issues/new/choose │ │ │ │ * Veuillez exécuter `minikube logs --file=logs.txt` et attachez logs.txt au problème GitHub. │ │ │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────╯ I0917 23:20:17.593893 6338 out.go:177] *

Sortie complète de la commande échouée:

TanjinAlam commented 2 years ago

facing the error minikube start --driver=virtualbox

Distributor ID: Ubuntu Description: Ubuntu 22.04.1 LTS Release: 22.04

StartHost failed, but will try again: creating host: create host timed out in 360.000000 seconds

TanjinAlam commented 1 year ago

I moved to kvm2 instead of virtualbox and it's working perfect for me.

klaases commented 1 year ago

Hi @arnoldngounfo, are you still experiencing this issue? Were you able to give kvm2 a try?


Salut @arnoldngounfo, rencontrez-vous toujours ce problème ? Avez-vous pu essayer kvm2 ?

klaases commented 1 year ago

/triage needs-information /kind support

spowelljr commented 1 year ago

Hi @arnoldngounfo, we haven't heard back from you, do you still have this issue? There isn't enough information in this issue to make it actionable, and a long enough duration has passed, so this issue is likely difficult to replicate.

I will close this issue for now but feel free to reopen when you feel ready to provide more information.