Starting "minikube" primary control-plane node in "minikube" cluster
Restarting existing none bare metal machine for "minikube" ...
OS release is Ubuntu 22.04.4 LTS
X Exiting due to RUNTIME_ENABLE: Failed to start container runtime: Temporary Error: sudo /usr/local/bin/crictl version: exit status 1
stdout:
stderr:
time="2024-08-28T07:08:52+02:00" level=fatal msg="validate service connection: validate CRI v1 runtime API for endpoint \"unix:///var/run/cri-dockerd.sock\": rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial unix /var/run/cri-dockerd.sock: connect: connection refused\""
╭─────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ If the above advice does not help, please let us know: │
│ https://github.com/kubernetes/minikube/issues/new/choose │
│ │
│ * Please run minikube logs --file=logs.txt and attach logs.txt to the GitHub issue. │
│ │
╰─────────────────────────────────────────────────────────────────────────────────────────────╯
What Happened?
problem with minikube start --vm-driver=none
Attach the log file
root@ubuntu:~# minikube start --vm-driver=none
X Exiting due to RUNTIME_ENABLE: Failed to start container runtime: Temporary Error: sudo /usr/local/bin/crictl version: exit status 1 stdout:
stderr: time="2024-08-28T07:08:52+02:00" level=fatal msg="validate service connection: validate CRI v1 runtime API for endpoint \"unix:///var/run/cri-dockerd.sock\": rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial unix /var/run/cri-dockerd.sock: connect: connection refused\""
╭─────────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ If the above advice does not help, please let us know: │ │ https://github.com/kubernetes/minikube/issues/new/choose │ │ │ │ * Please run
minikube logs --file=logs.txt
and attach logs.txt to the GitHub issue. │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────╯root@ubuntu:~# minikube logs --file=logs.txt root@ubuntu:~# cat logs.txt
==> Last Start <== Log file created at: 2024/08/28 07:07:53 Running on machine: ubuntu Binary: Built with gc go1.22.1 for linux/amd64 Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg I0828 07:07:53.726788 58735 out.go:291] Setting OutFile to fd 1 ... I0828 07:07:53.727204 58735 out.go:338] TERM=xterm,COLORTERM=, which probably does not support color I0828 07:07:53.727210 58735 out.go:304] Setting ErrFile to fd 2... I0828 07:07:53.727214 58735 out.go:338] TERM=xterm,COLORTERM=, which probably does not support color I0828 07:07:53.727555 58735 root.go:338] Updating PATH: /root/.minikube/bin W0828 07:07:53.727787 58735 root.go:314] Error reading config file at /root/.minikube/config/config.json: open /root/.minikube/config/config.json: no such file or directory I0828 07:07:53.728436 58735 out.go:298] Setting JSON to false I0828 07:07:53.731075 58735 start.go:129] hostinfo: {"hostname":"ubuntu","uptime":9313,"bootTime":1724812361,"procs":145,"os":"linux","platform":"ubuntu","platformFamily":"debian","platformVersion":"22.04","kernelVersion":"6.5.0-15-generic","kernelArch":"x86_64","virtualizationSystem":"","virtualizationRole":"guest","hostId":"b2f8ddd0-66a1-4909-b3c3-a28d7e819930"} I0828 07:07:53.731187 58735 start.go:139] virtualization: guest I0828 07:07:53.732892 58735 out.go:177] minikube v1.33.1 on Ubuntu 22.04 (amd64) W0828 07:07:53.733830 58735 preload.go:294] Failed to list preload files: open /root/.minikube/cache/preloaded-tarball: no such file or directory I0828 07:07:53.733988 58735 notify.go:220] Checking for updates... I0828 07:07:53.735944 58735 config.go:182] Loaded profile config "minikube": Driver=none, ContainerRuntime=docker, KubernetesVersion=v1.30.0 I0828 07:07:53.736578 58735 exec_runner.go:51] Run: systemctl --version I0828 07:07:53.740114 58735 driver.go:392] Setting default libvirt URI to qemu:///system I0828 07:07:53.741377 58735 out.go:177] Using the none driver based on existing profile I0828 07:07:53.742183 58735 start.go:297] selected driver: none I0828 07:07:53.742206 58735 start.go:901] validating driver "none" against &{Name:minikube KeepContext:false EmbedCerts:false MinikubeISO: KicBaseImage:gcr.io/k8s-minikube/kicbase:v0.0.44@sha256:eb04641328b06c5c4a14f4348470e1046bbcf9c2cbc551486e343d3a49db557e Memory:2200 CPUs:2 DiskSize:20000 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:8443 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.30.0 ClusterName:minikube Namespace:default APIServerHAVIP: APIServerName:minikubeCA APIServerNames:[] APIServerIPs:[] DNSDomain:cluster.local ContainerRuntime:docker CRISocket: NetworkPlugin:cni FeatureGates: ServiceCIDR:10.96.0.0/12 ImageRepository: LoadBalancerStartIP: LoadBalancerEndIP: CustomIngressCert: RegistryAliases: ExtraOptions:[] ShouldLoadCachedImages:false EnableDefaultCNI:false CNI:} Nodes:[{Name: IP: Port:8443 KubernetesVersion:v1.30.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: SocketVMnetClientPath: SocketVMnetPath: StaticIP: SSHAuthSock: SSHAgentPID:0 GPUs: AutoPauseInterval:1m0s}
I0828 07:07:53.742319 58735 start.go:912] status for none: {Installed:true Healthy:true Running:false NeedsImprovement:false Error: Reason: Fix: Doc: Version:}
I0828 07:07:53.743225 58735 cni.go:84] Creating CNI manager for ""
I0828 07:07:53.743246 58735 cni.go:158] "none" driver + "docker" container runtime found on kubernetes v1.24+, recommending bridge
I0828 07:07:53.743300 58735 start.go:340] cluster config:
{Name:minikube KeepContext:false EmbedCerts:false MinikubeISO: KicBaseImage:gcr.io/k8s-minikube/kicbase:v0.0.44@sha256:eb04641328b06c5c4a14f4348470e1046bbcf9c2cbc551486e343d3a49db557e Memory:2200 CPUs:2 DiskSize:20000 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:8443 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.30.0 ClusterName:minikube Namespace:default APIServerHAVIP: APIServerName:minikubeCA APIServerNames:[] APIServerIPs:[] DNSDomain:cluster.local ContainerRuntime:docker CRISocket: NetworkPlugin:cni FeatureGates: ServiceCIDR:10.96.0.0/12 ImageRepository: LoadBalancerStartIP: LoadBalancerEndIP: CustomIngressCert: RegistryAliases: ExtraOptions:[] ShouldLoadCachedImages:false EnableDefaultCNI:false CNI:} Nodes:[{Name: IP: Port:8443 KubernetesVersion:v1.30.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: SocketVMnetClientPath: SocketVMnetPath: StaticIP: SSHAuthSock: SSHAgentPID:0 GPUs: AutoPauseInterval:1m0s}
I0828 07:07:53.744710 58735 out.go:177] Starting "minikube" primary control-plane node in "minikube" cluster
I0828 07:07:53.745793 58735 profile.go:143] Saving config to /root/.minikube/profiles/minikube/config.json ...
I0828 07:07:53.746223 58735 start.go:360] acquireMachinesLock for minikube: {Name:mkc8ab01ad3ea83211c505c81a7ee49a8e3ecb89 Clock:{} Delay:500ms Timeout:13m0s Cancel:}
I0828 07:07:53.746350 58735 start.go:364] duration metric: took 94.546µs to acquireMachinesLock for "minikube"
I0828 07:07:53.746417 58735 start.go:96] Skipping create...Using existing machine configuration
I0828 07:07:53.746520 58735 fix.go:54] fixHost starting:
W0828 07:07:53.746842 58735 none.go:130] unable to get port: "minikube" does not appear in /root/.kube/config
I0828 07:07:53.746882 58735 api_server.go:166] Checking apiserver status ...
I0828 07:07:53.746958 58735 exec_runner.go:51] Run: sudo pgrep -xnf kube-apiserver. minikube.
W0828 07:07:53.776916 58735 api_server.go:170] stopped: unable to get apiserver pid: sudo pgrep -xnf kube-apiserver.minikube.*: exit status 1
stdout:
stderr: I0828 07:07:53.777028 58735 exec_runner.go:51] Run: sudo systemctl is-active --quiet service kubelet I0828 07:07:53.794420 58735 fix.go:112] recreateIfNeeded on minikube: state=Stopped err=
W0828 07:07:53.794438 58735 fix.go:138] unexpected machine state, will restart:
I0828 07:07:53.795745 58735 out.go:177] Restarting existing none bare metal machine for "minikube" ...
I0828 07:07:53.798054 58735 profile.go:143] Saving config to /root/.minikube/profiles/minikube/config.json ...
I0828 07:07:53.798305 58735 start.go:293] postStartSetup for "minikube" (driver="none")
I0828 07:07:53.798434 58735 start.go:322] 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]
I0828 07:07:53.798483 58735 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
I0828 07:07:53.812495 58735 main.go:141] libmachine: Couldn't set key VERSION_CODENAME, no corresponding struct field found
I0828 07:07:53.812531 58735 main.go:141] libmachine: Couldn't set key PRIVACY_POLICY_URL, no corresponding struct field found
I0828 07:07:53.812539 58735 main.go:141] libmachine: Couldn't set key UBUNTU_CODENAME, no corresponding struct field found
I0828 07:07:53.813888 58735 out.go:177] OS release is Ubuntu 22.04.4 LTS
I0828 07:07:53.814613 58735 filesync.go:126] Scanning /root/.minikube/addons for local assets ...
I0828 07:07:53.814691 58735 filesync.go:126] Scanning /root/.minikube/files for local assets ...
I0828 07:07:53.814728 58735 start.go:296] duration metric: took 16.413686ms for postStartSetup
I0828 07:07:53.814742 58735 fix.go:56] duration metric: took 68.314629ms for fixHost
I0828 07:07:53.814751 58735 start.go:83] releasing machines lock for "minikube", held for 68.378173ms
I0828 07:07:53.815288 58735 exec_runner.go:51] Run: sh -c "stat /etc/cni/net.d/loopback.conf"
I0828 07:07:53.815384 58735 exec_runner.go:51] Run: curl -sS -m 2 https://registry.k8s.io/
W0828 07:07:53.818614 58735 cni.go:209] loopback cni configuration skipped: "/etc/cni/net.d/loopback.conf" not found
I0828 07:07:53.818682 58735 exec_runner.go:51] Run: sudo find /etc/cni/net.d -maxdepth 1 -type f ( ( -name bridge -or -name podman ) -and -not -name .mk_disabled ) -printf "%!p(MISSING), " -exec sh -c "sudo mv {} {}.mk_disabled" ;
I0828 07:07:53.833787 58735 cni.go:259] no active bridge cni configs found in "/etc/cni/net.d" - nothing to disable
I0828 07:07:53.833837 58735 start.go:494] detecting cgroup driver to use...
I0828 07:07:53.833940 58735 detect.go:199] detected "systemd" cgroup driver on host os
I0828 07:07:53.834290 58735 exec_runner.go:51] Run: /bin/bash -c "sudo mkdir -p /etc && printf %!s(MISSING) "runtime-endpoint: unix:///run/containerd/containerd.sock
" | sudo tee /etc/crictl.yaml"
I0828 07:07:53.864792 58735 exec_runner.go:51] Run: sh -c "sudo sed -i -r 's|^( )sandbox_image = .$|\1sandbox_image = "registry.k8s.io/pause:3.9"|' /etc/containerd/config.toml"
W0828 07:07:53.882242 58735 start.go:461] cannot ensure containerd is configured properly and reloaded for docker - cluster might be unstable: update sandbox_image: sh -c "sudo sed -i -r 's|^( )sandbox_image = .*$|\1sandbox_image = "registry.k8s.io/pause:3.9"|' /etc/containerd/config.toml": exit status 2
stdout:
stderr: sed: can't read /etc/containerd/config.toml: No such file or directory I0828 07:07:53.882292 58735 start.go:494] detecting cgroup driver to use... I0828 07:07:53.882333 58735 detect.go:199] detected "systemd" cgroup driver on host os I0828 07:07:53.882518 58735 exec_runner.go:51] Run: /bin/bash -c "sudo mkdir -p /etc && printf %!s(MISSING) "runtime-endpoint: unix:///var/run/cri-dockerd.sock " | sudo tee /etc/crictl.yaml" I0828 07:07:53.913317 58735 exec_runner.go:51] Run: which cri-dockerd I0828 07:07:53.914951 58735 exec_runner.go:51] Run: sudo mkdir -p /etc/systemd/system/cri-docker.service.d I0828 07:07:53.938469 58735 exec_runner.go:151] cp: memory --> /etc/systemd/system/cri-docker.service.d/10-cni.conf (195 bytes) I0828 07:07:53.939348 58735 exec_runner.go:51] Run: sudo cp -a /tmp/minikube1938100513 /etc/systemd/system/cri-docker.service.d/10-cni.conf I0828 07:07:53.957867 58735 exec_runner.go:51] Run: sudo systemctl unmask docker.service I0828 07:07:54.274864 58735 exec_runner.go:51] Run: sudo systemctl enable docker.socket I0828 07:07:54.548869 58735 docker.go:574] configuring docker to use "systemd" as cgroup driver... I0828 07:07:54.549044 58735 exec_runner.go:151] cp: memory --> /etc/docker/daemon.json (129 bytes) I0828 07:07:54.549223 58735 exec_runner.go:51] Run: sudo cp -a /tmp/minikube2502053930 /etc/docker/daemon.json I0828 07:07:54.563281 58735 exec_runner.go:51] Run: sudo systemctl daemon-reload I0828 07:07:54.844195 58735 exec_runner.go:51] Run: sudo systemctl restart docker I0828 07:07:55.612745 58735 exec_runner.go:51] Run: sudo systemctl is-active --quiet service cri-docker.socket I0828 07:07:55.629177 58735 exec_runner.go:51] Run: sudo systemctl stop cri-docker.socket I0828 07:07:55.650956 58735 exec_runner.go:51] Run: sudo systemctl is-active --quiet service cri-docker.service I0828 07:07:55.670766 58735 exec_runner.go:51] Run: sudo systemctl unmask cri-docker.socket I0828 07:07:55.936807 58735 exec_runner.go:51] Run: sudo systemctl enable cri-docker.socket I0828 07:07:56.223047 58735 exec_runner.go:51] Run: sudo systemctl daemon-reload I0828 07:07:56.534000 58735 exec_runner.go:51] Run: sudo systemctl restart cri-docker.socket I0828 07:07:56.597602 58735 exec_runner.go:51] Run: sudo systemctl is-active --quiet service cri-docker.service I0828 07:07:56.613954 58735 exec_runner.go:51] Run: sudo systemctl daemon-reload I0828 07:07:56.906225 58735 exec_runner.go:51] Run: sudo systemctl restart cri-docker.service I0828 07:07:57.036236 58735 exec_runner.go:51] Run: sudo journalctl --no-pager -u cri-docker.service I0828 07:07:57.051298 58735 start.go:541] Will wait 60s for socket path /var/run/cri-dockerd.sock I0828 07:07:57.051472 58735 exec_runner.go:51] Run: stat /var/run/cri-dockerd.sock I0828 07:07:57.052966 58735 start.go:562] Will wait 60s for crictl version I0828 07:07:57.053063 58735 exec_runner.go:51] Run: which crictl I0828 07:07:57.054177 58735 exec_runner.go:51] Run: sudo /usr/local/bin/crictl version I0828 07:07:59.099766 58735 exec_runner.go:84] Completed: sudo /usr/local/bin/crictl version: (2.04554111s) I0828 07:07:59.099925 58735 retry.go:31] will retry after 9.27740985s: Temporary Error: sudo /usr/local/bin/crictl version: exit status 1 stdout:
stderr: time="2024-08-28T07:07:59+02:00" level=fatal msg="validate service connection: validate CRI v1 runtime API for endpoint \"unix:///var/run/cri-dockerd.sock\": rpc error: code = DeadlineExceeded desc = context deadline exceeded" I0828 07:08:08.377672 58735 exec_runner.go:51] Run: sudo /usr/local/bin/crictl version I0828 07:08:08.416019 58735 retry.go:31] will retry after 11.841211147s: Temporary Error: sudo /usr/local/bin/crictl version: exit status 1 stdout:
stderr: time="2024-08-28T07:08:08+02:00" level=fatal msg="validate service connection: validate CRI v1 runtime API for endpoint \"unix:///var/run/cri-dockerd.sock\": rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial unix /var/run/cri-dockerd.sock: connect: connection refused\"" I0828 07:08:20.257470 58735 exec_runner.go:51] Run: sudo /usr/local/bin/crictl version I0828 07:08:20.293377 58735 retry.go:31] will retry after 32.481329868s: Temporary Error: sudo /usr/local/bin/crictl version: exit status 1 stdout:
stderr: time="2024-08-28T07:08:20+02:00" level=fatal msg="validate service connection: validate CRI v1 runtime API for endpoint \"unix:///var/run/cri-dockerd.sock\": rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial unix /var/run/cri-dockerd.sock: connect: connection refused\"" I0828 07:08:52.778997 58735 exec_runner.go:51] Run: sudo /usr/local/bin/crictl version I0828 07:08:52.834242 58735 out.go:177] W0828 07:08:52.835213 58735 out.go:239] X Exiting due to RUNTIME_ENABLE: Failed to start container runtime: Temporary Error: sudo /usr/local/bin/crictl version: exit status 1 stdout:
stderr: time="2024-08-28T07:08:52+02:00" level=fatal msg="validate service connection: validate CRI v1 runtime API for endpoint \"unix:///var/run/cri-dockerd.sock\": rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial unix /var/run/cri-dockerd.sock: connect: connection refused\""
W0828 07:08:52.835258 58735 out.go:239] W0828 07:08:52.837397 58735 out.go:239] ╭─────────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ If the above advice does not help, please let us know: │ │ https://github.com/kubernetes/minikube/issues/new/choose │ │ │ │ * Please run
minikube logs --file=logs.txt
and attach logs.txt to the GitHub issue. │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────╯ I0828 07:08:52.838389 58735 out.go:177]Operating System
Ubuntu
Driver
None