I used to use minikube with driver=none and it was working fine until kubernetes stopped shipping docckershim. Now I build and installed cri-dockered and placed properly in order to run minikube. But getting this error.
stderr:
I0910 19:20:26.131398 1964 exec_runner.go:51] Run: sudo systemctl is-active --quiet service kubelet
I0910 19:20:26.141651 1964 fix.go:103] recreateIfNeeded on minikube: state=Stopped err=
W0910 19:20:26.141667 1964 fix.go:129] unexpected machine state, will restart:
I0910 19:20:26.144134 1964 out.go:177] ๐ Restarting existing none bare metal machine for "minikube" ...
I0910 19:20:26.147007 1964 profile.go:148] Saving config to /root/.minikube/profiles/minikube/config.json ...
I0910 19:20:26.147432 1964 start.go:307] post-start starting for "minikube" (driver="none")
I0910 19:20:26.147464 1964 start.go:335] 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]
I0910 19:20:26.147499 1964 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
I0910 19:20:26.155297 1964 main.go:134] libmachine: Couldn't set key VERSION_CODENAME, no corresponding struct field found
I0910 19:20:26.155321 1964 main.go:134] libmachine: Couldn't set key PRIVACY_POLICY_URL, no corresponding struct field found
I0910 19:20:26.155330 1964 main.go:134] libmachine: Couldn't set key UBUNTU_CODENAME, no corresponding struct field found
I0910 19:20:26.157801 1964 out.go:177] โน๏ธ OS release is Ubuntu 22.04.1 LTS
I0910 19:20:26.159498 1964 filesync.go:126] Scanning /root/.minikube/addons for local assets ...
I0910 19:20:26.159555 1964 filesync.go:126] Scanning /root/.minikube/files for local assets ...
I0910 19:20:26.159570 1964 start.go:310] post-start completed in 12.131202ms
I0910 19:20:26.159662 1964 fix.go:57] fixHost completed within 45.600647ms
I0910 19:20:26.159667 1964 start.go:82] releasing machines lock for "minikube", held for 45.716207ms
I0910 19:20:26.160032 1964 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"
I0910 19:20:26.160083 1964 exec_runner.go:51] Run: curl -sS -m 2 https://k8s.gcr.io/
I0910 19:20:26.178101 1964 exec_runner.go:51] Run: sudo systemctl unmask docker.service
I0910 19:20:26.423924 1964 exec_runner.go:51] Run: sudo systemctl enable docker.socket
I0910 19:20:26.668504 1964 exec_runner.go:51] Run: sudo systemctl daemon-reload
I0910 19:20:26.876089 1964 exec_runner.go:51] Run: sudo systemctl restart docker
I0910 19:20:27.165503 1964 exec_runner.go:51] Run: sudo systemctl enable cri-docker.socket
I0910 19:20:27.408106 1964 exec_runner.go:51] Run: sudo systemctl daemon-reload
I0910 19:20:27.632612 1964 exec_runner.go:51] Run: sudo systemctl start cri-docker.socket
I0910 19:20:27.643691 1964 start.go:450] Will wait 60s for socket path /var/run/cri-dockerd.sock
I0910 19:20:27.643735 1964 exec_runner.go:51] Run: stat /var/run/cri-dockerd.sock
I0910 19:20:27.644933 1964 start.go:471] Will wait 60s for crictl version
I0910 19:20:27.644963 1964 exec_runner.go:51] Run: sudo crictl version
I0910 19:20:27.693814 1964 retry.go:31] will retry after 11.04660288s: Temporary Error: sudo crictl version: exit status 1
stdout:
stderr:
Usage:
cri-dockerd [flags]
Flags:
--buildinfo Prints the build information about cri-dockerd
--cni-bin-dir string A comma-separated list of full paths of directories in which to search for CNI plugin binaries. (default "/opt/cni/bin")
--cni-cache-dir string The full path of the directory in which CNI should store cache files. (default "/var/lib/cni/cache")
--cni-conf-dir string The full path of the directory in which to search for CNI config files (default "/etc/cni/net.d")
--container-runtime-endpoint string The endpoint of backend runtime service. Currently unix socket and tcp endpoints are supported on Linux, while npipe and tcp endpoints are supported on windows. Examples:'unix:///var/run/cri-dockerd.sock', 'npipe:////./pipe/cri-dockerd' (default "unix:///var/run/cri-dockerd.sock")
--cri-dockerd-root-directory string Path to the cri-dockerd root directory. (default "/var/lib/cri-dockerd")
--docker-endpoint string Use this for the docker endpoint to communicate with. (default "unix:///var/run/docker.sock")
--hairpin-mode HairpinMode The mode of hairpin to use. (default none)
-h, --help Help for cri-dockerd
--image-pull-progress-deadline duration If no pulling progress is made before this deadline, the image pulling will be cancelled. (default 1m0s)
--ipv6-dual-stack Enable IPv6 dual stack support
--log-level string The log level for cri-docker (default "info")
--network-plugin string The name of the network plugin to be invoked for various events in kubelet/pod lifecycle. (default "cni")
--network-plugin-mtu int32 The MTU to be passed to the network plugin, to override the default. Set to 0 to use the default 1460 MTU.
--pod-cidr string The CIDR to use for pod IP addresses, only used in standalone mode. In cluster mode, this is obtained from the master. For IPv6, the maximum number of IP's allocated is 65536
--pod-infra-container-image string The image whose network/ipc namespaces containers in each pod will use (default "k8s.gcr.io/pause:3.6")
--runtime-cgroups string Optional absolute name of cgroups to create and run the runtime in.
--runtime-request-timeout duration If no runtime progress is made before this deadline, the operation will be cancelled.
--streaming-bind-addr string The address to bind the CRI streaming server to. If not specified, it will bind to all addresses.
--version Prints the version of cri-dockerd
time="2022-09-10T19:20:27Z" level=fatal msg="Unknown command: version"
I0910 19:20:38.742315 1964 exec_runner.go:51] Run: sudo crictl version
I0910 19:20:38.791828 1964 retry.go:31] will retry after 21.607636321s: Temporary Error: sudo crictl version: exit status 1
stdout:
stderr:
Usage:
cri-dockerd [flags]
Flags:
--buildinfo Prints the build information about cri-dockerd
--cni-bin-dir string A comma-separated list of full paths of directories in which to search for CNI plugin binaries. (default "/opt/cni/bin")
--cni-cache-dir string The full path of the directory in which CNI should store cache files. (default "/var/lib/cni/cache")
--cni-conf-dir string The full path of the directory in which to search for CNI config files (default "/etc/cni/net.d")
--container-runtime-endpoint string The endpoint of backend runtime service. Currently unix socket and tcp endpoints are supported on Linux, while npipe and tcp endpoints are supported on windows. Examples:'unix:///var/run/cri-dockerd.sock', 'npipe:////./pipe/cri-dockerd' (default "unix:///var/run/cri-dockerd.sock")
--cri-dockerd-root-directory string Path to the cri-dockerd root directory. (default "/var/lib/cri-dockerd")
--docker-endpoint string Use this for the docker endpoint to communicate with. (default "unix:///var/run/docker.sock")
--hairpin-mode HairpinMode The mode of hairpin to use. (default none)
-h, --help Help for cri-dockerd
--image-pull-progress-deadline duration If no pulling progress is made before this deadline, the image pulling will be cancelled. (default 1m0s)
--ipv6-dual-stack Enable IPv6 dual stack support
--log-level string The log level for cri-docker (default "info")
--network-plugin string The name of the network plugin to be invoked for various events in kubelet/pod lifecycle. (default "cni")
--network-plugin-mtu int32 The MTU to be passed to the network plugin, to override the default. Set to 0 to use the default 1460 MTU.
--pod-cidr string The CIDR to use for pod IP addresses, only used in standalone mode. In cluster mode, this is obtained from the master. For IPv6, the maximum number of IP's allocated is 65536
--pod-infra-container-image string The image whose network/ipc namespaces containers in each pod will use (default "k8s.gcr.io/pause:3.6")
--runtime-cgroups string Optional absolute name of cgroups to create and run the runtime in.
--runtime-request-timeout duration If no runtime progress is made before this deadline, the operation will be cancelled.
--streaming-bind-addr string The address to bind the CRI streaming server to. If not specified, it will bind to all addresses.
--version Prints the version of cri-dockerd
time="2022-09-10T19:20:38Z" level=fatal msg="Unknown command: version"
I0910 19:21:00.403113 1964 exec_runner.go:51] Run: sudo crictl version
I0910 19:21:00.451994 1964 retry.go:31] will retry after 26.202601198s: Temporary Error: sudo crictl version: exit status 1
stdout:
stderr:
Usage:
cri-dockerd [flags]
Flags:
--buildinfo Prints the build information about cri-dockerd
--cni-bin-dir string A comma-separated list of full paths of directories in which to search for CNI plugin binaries. (default "/opt/cni/bin")
--cni-cache-dir string The full path of the directory in which CNI should store cache files. (default "/var/lib/cni/cache")
--cni-conf-dir string The full path of the directory in which to search for CNI config files (default "/etc/cni/net.d")
--container-runtime-endpoint string The endpoint of backend runtime service. Currently unix socket and tcp endpoints are supported on Linux, while npipe and tcp endpoints are supported on windows. Examples:'unix:///var/run/cri-dockerd.sock', 'npipe:////./pipe/cri-dockerd' (default "unix:///var/run/cri-dockerd.sock")
--cri-dockerd-root-directory string Path to the cri-dockerd root directory. (default "/var/lib/cri-dockerd")
--docker-endpoint string Use this for the docker endpoint to communicate with. (default "unix:///var/run/docker.sock")
--hairpin-mode HairpinMode The mode of hairpin to use. (default none)
-h, --help Help for cri-dockerd
--image-pull-progress-deadline duration If no pulling progress is made before this deadline, the image pulling will be cancelled. (default 1m0s)
--ipv6-dual-stack Enable IPv6 dual stack support
--log-level string The log level for cri-docker (default "info")
--network-plugin string The name of the network plugin to be invoked for various events in kubelet/pod lifecycle. (default "cni")
--network-plugin-mtu int32 The MTU to be passed to the network plugin, to override the default. Set to 0 to use the default 1460 MTU.
--pod-cidr string The CIDR to use for pod IP addresses, only used in standalone mode. In cluster mode, this is obtained from the master. For IPv6, the maximum number of IP's allocated is 65536
--pod-infra-container-image string The image whose network/ipc namespaces containers in each pod will use (default "k8s.gcr.io/pause:3.6")
--runtime-cgroups string Optional absolute name of cgroups to create and run the runtime in.
--runtime-request-timeout duration If no runtime progress is made before this deadline, the operation will be cancelled.
--streaming-bind-addr string The address to bind the CRI streaming server to. If not specified, it will bind to all addresses.
--version Prints the version of cri-dockerd
time="2022-09-10T19:21:00Z" level=fatal msg="Unknown command: version"
I0910 19:21:26.655552 1964 exec_runner.go:51] Run: sudo crictl version
I0910 19:21:26.707201 1964 out.go:177]
W0910 19:21:26.709258 1964 out.go:239] โ Exiting due to RUNTIME_ENABLE: Temporary Error: sudo crictl version: exit status 1
stdout:
stderr:
Usage:
cri-dockerd [flags]
Flags:
--buildinfo Prints the build information about cri-dockerd
--cni-bin-dir string A comma-separated list of full paths of directories in which to search for CNI plugin binaries. (default "/opt/cni/bin")
--cni-cache-dir string The full path of the directory in which CNI should store cache files. (default "/var/lib/cni/cache")
--cni-conf-dir string The full path of the directory in which to search for CNI config files (default "/etc/cni/net.d")
--container-runtime-endpoint string The endpoint of backend runtime service. Currently unix socket and tcp endpoints are supported on Linux, while npipe and tcp endpoints are supported on windows. Examples:'unix:///var/run/cri-dockerd.sock', 'npipe:////./pipe/cri-dockerd' (default "unix:///var/run/cri-dockerd.sock")
--cri-dockerd-root-directory string Path to the cri-dockerd root directory. (default "/var/lib/cri-dockerd")
--docker-endpoint string Use this for the docker endpoint to communicate with. (default "unix:///var/run/docker.sock")
--hairpin-mode HairpinMode The mode of hairpin to use. (default none)
-h, --help Help for cri-dockerd
--image-pull-progress-deadline duration If no pulling progress is made before this deadline, the image pulling will be cancelled. (default 1m0s)
--ipv6-dual-stack Enable IPv6 dual stack support
--log-level string The log level for cri-docker (default "info")
--network-plugin string The name of the network plugin to be invoked for various events in kubelet/pod lifecycle. (default "cni")
--network-plugin-mtu int32 The MTU to be passed to the network plugin, to override the default. Set to 0 to use the default 1460 MTU.
--pod-cidr string The CIDR to use for pod IP addresses, only used in standalone mode. In cluster mode, this is obtained from the master. For IPv6, the maximum number of IP's allocated is 65536
--pod-infra-container-image string The image whose network/ipc namespaces containers in each pod will use (default "k8s.gcr.io/pause:3.6")
--runtime-cgroups string Optional absolute name of cgroups to create and run the runtime in.
--runtime-request-timeout duration If no runtime progress is made before this deadline, the operation will be cancelled.
--streaming-bind-addr string The address to bind the CRI streaming server to. If not specified, it will bind to all addresses.
--version Prints the version of cri-dockerd
time="2022-09-10T19:21:26Z" level=fatal msg="Unknown command: version"
W0910 19:21:26.709325 1964 out.go:239]
W0910 19:21:26.711112 1964 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. โ
โ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
I0910 19:21:26.713067 1964 out.go:177]
What Happened?
I used to use minikube with driver=none and it was working fine until kubernetes stopped shipping docckershim. Now I build and installed cri-dockered and placed properly in order to run minikube. But getting this error.
OS-> Ubuntu 22.04 Docker -> apt install docker.io Kubectl -> Downloaded and installed
Attach the log file
*
==> Audit <==
==> Last Start <==
Log file created at: 2022/09/10 19:20:26 Running on machine: debajyoti-tk Binary: Built with gc go1.18.3 for linux/arm64 Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg I0910 19:20:26.094164 1964 out.go:296] Setting OutFile to fd 1 ... I0910 19:20:26.094283 1964 out.go:348] isatty.IsTerminal(1) = true I0910 19:20:26.094286 1964 out.go:309] Setting ErrFile to fd 2... I0910 19:20:26.094290 1964 out.go:348] isatty.IsTerminal(2) = true I0910 19:20:26.094407 1964 root.go:333] Updating PATH: /root/.minikube/bin W0910 19:20:26.094501 1964 root.go:310] Error reading config file at /root/.minikube/config/config.json: open /root/.minikube/config/config.json: no such file or directory I0910 19:20:26.094658 1964 out.go:303] Setting JSON to false I0910 19:20:26.095448 1964 start.go:115] hostinfo: {"hostname":"debajyoti-tk","uptime":448,"bootTime":1662837178,"procs":171,"os":"linux","platform":"ubuntu","platformFamily":"debian","platformVersion":"22.04","kernelVersion":"5.15.0-1017-oracle","kernelArch":"aarch64","virtualizationSystem":"","virtualizationRole":"guest","hostId":"43a8334f-8b18-4a46-856c-cae91b4c485c"} I0910 19:20:26.095503 1964 start.go:125] virtualization: guest I0910 19:20:26.100247 1964 out.go:177] ๐ minikube v1.26.1 on Ubuntu 22.04 (arm64) W0910 19:20:26.101922 1964 preload.go:295] Failed to list preload files: open /root/.minikube/cache/preloaded-tarball: no such file or directory I0910 19:20:26.101949 1964 notify.go:193] Checking for updates... I0910 19:20:26.102239 1964 config.go:180] Loaded profile config "minikube": Driver=none, ContainerRuntime=docker, KubernetesVersion=v1.24.3 I0910 19:20:26.102861 1964 exec_runner.go:51] Run: systemctl --version I0910 19:20:26.104971 1964 driver.go:365] Setting default libvirt URI to qemu:///system I0910 19:20:26.107156 1964 out.go:177] โจ Using the none driver based on existing profile I0910 19:20:26.108622 1964 start.go:284] selected driver: none I0910 19:20:26.108641 1964 start.go:808] validating driver "none" against &{Name:minikube KeepContext:false EmbedCerts:false MinikubeISO: KicBaseImage:gcr.io/k8s-minikube/kicbase:v0.0.33@sha256:73b259e144d926189cf169ae5b46bbec4e08e4e2f2bd87296054c3244f70feb8 Memory:5900 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.24.3 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:[{Component:kubelet Key:resolv-conf Value:/run/systemd/resolve/resolv.conf}] ShouldLoadCachedImages:false EnableDefaultCNI:false CNI: NodeIP: NodePort:8443 NodeName:} Nodes:[{Name:m01 IP:10.0.0.223 Port:8443 KubernetesVersion:v1.24.3 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:}
I0910 19:20:26.108723 1964 start.go:819] status for none: {Installed:true Healthy:true Running:false NeedsImprovement:false Error: Reason: Fix: Doc: Version:}
I0910 19:20:26.108744 1964 start.go:1544] auto setting extra-config to "kubelet.resolv-conf=/run/systemd/resolve/resolv.conf".
I0910 19:20:26.109129 1964 cni.go:95] Creating CNI manager for ""
I0910 19:20:26.109134 1964 cni.go:149] Driver none used, CNI unnecessary in this configuration, recommending no CNI
I0910 19:20:26.109153 1964 start_flags.go:310] config:
{Name:minikube KeepContext:false EmbedCerts:false MinikubeISO: KicBaseImage:gcr.io/k8s-minikube/kicbase:v0.0.33@sha256:73b259e144d926189cf169ae5b46bbec4e08e4e2f2bd87296054c3244f70feb8 Memory:5900 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.24.3 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:[{Component:kubelet Key:resolv-conf Value:/run/systemd/resolve/resolv.conf}] ShouldLoadCachedImages:false EnableDefaultCNI:false CNI: NodeIP: NodePort:8443 NodeName:} Nodes:[{Name:m01 IP:10.0.0.223 Port:8443 KubernetesVersion:v1.24.3 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:}
I0910 19:20:26.111475 1964 out.go:177] ๐ Starting control plane node minikube in cluster minikube
I0910 19:20:26.113071 1964 profile.go:148] Saving config to /root/.minikube/profiles/minikube/config.json ...
I0910 19:20:26.113556 1964 cache.go:208] Successfully downloaded all kic artifacts
I0910 19:20:26.113585 1964 start.go:371] acquiring machines lock for minikube: {Name:mkc8ab01ad3ea83211c505c81a7ee49a8e3ecb89 Clock:{} Delay:500ms Timeout:13m0s Cancel:}
I0910 19:20:26.113943 1964 start.go:375] acquired machines lock for "minikube" in 343.96ยตs
I0910 19:20:26.113973 1964 start.go:95] Skipping create...Using existing machine configuration
I0910 19:20:26.113977 1964 fix.go:55] fixHost starting: m01
W0910 19:20:26.114151 1964 none.go:130] unable to get port: "minikube" does not appear in /root/.kube/config
I0910 19:20:26.114159 1964 api_server.go:165] Checking apiserver status ...
I0910 19:20:26.114183 1964 exec_runner.go:51] Run: sudo pgrep -xnf kube-apiserver.minikube.
W0910 19:20:26.131362 1964 api_server.go:169] stopped: unable to get apiserver pid: sudo pgrep -xnf kube-apiserver.minikube.: exit status 1
stdout:
stderr: I0910 19:20:26.131398 1964 exec_runner.go:51] Run: sudo systemctl is-active --quiet service kubelet I0910 19:20:26.141651 1964 fix.go:103] recreateIfNeeded on minikube: state=Stopped err=
W0910 19:20:26.141667 1964 fix.go:129] unexpected machine state, will restart:
I0910 19:20:26.144134 1964 out.go:177] ๐ Restarting existing none bare metal machine for "minikube" ...
I0910 19:20:26.147007 1964 profile.go:148] Saving config to /root/.minikube/profiles/minikube/config.json ...
I0910 19:20:26.147432 1964 start.go:307] post-start starting for "minikube" (driver="none")
I0910 19:20:26.147464 1964 start.go:335] 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]
I0910 19:20:26.147499 1964 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
I0910 19:20:26.155297 1964 main.go:134] libmachine: Couldn't set key VERSION_CODENAME, no corresponding struct field found
I0910 19:20:26.155321 1964 main.go:134] libmachine: Couldn't set key PRIVACY_POLICY_URL, no corresponding struct field found
I0910 19:20:26.155330 1964 main.go:134] libmachine: Couldn't set key UBUNTU_CODENAME, no corresponding struct field found
I0910 19:20:26.157801 1964 out.go:177] โน๏ธ OS release is Ubuntu 22.04.1 LTS
I0910 19:20:26.159498 1964 filesync.go:126] Scanning /root/.minikube/addons for local assets ...
I0910 19:20:26.159555 1964 filesync.go:126] Scanning /root/.minikube/files for local assets ...
I0910 19:20:26.159570 1964 start.go:310] post-start completed in 12.131202ms
I0910 19:20:26.159662 1964 fix.go:57] fixHost completed within 45.600647ms
I0910 19:20:26.159667 1964 start.go:82] releasing machines lock for "minikube", held for 45.716207ms
I0910 19:20:26.160032 1964 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"
I0910 19:20:26.160083 1964 exec_runner.go:51] Run: curl -sS -m 2 https://k8s.gcr.io/
I0910 19:20:26.178101 1964 exec_runner.go:51] Run: sudo systemctl unmask docker.service
I0910 19:20:26.423924 1964 exec_runner.go:51] Run: sudo systemctl enable docker.socket
I0910 19:20:26.668504 1964 exec_runner.go:51] Run: sudo systemctl daemon-reload
I0910 19:20:26.876089 1964 exec_runner.go:51] Run: sudo systemctl restart docker
I0910 19:20:27.165503 1964 exec_runner.go:51] Run: sudo systemctl enable cri-docker.socket
I0910 19:20:27.408106 1964 exec_runner.go:51] Run: sudo systemctl daemon-reload
I0910 19:20:27.632612 1964 exec_runner.go:51] Run: sudo systemctl start cri-docker.socket
I0910 19:20:27.643691 1964 start.go:450] Will wait 60s for socket path /var/run/cri-dockerd.sock
I0910 19:20:27.643735 1964 exec_runner.go:51] Run: stat /var/run/cri-dockerd.sock
I0910 19:20:27.644933 1964 start.go:471] Will wait 60s for crictl version
I0910 19:20:27.644963 1964 exec_runner.go:51] Run: sudo crictl version
I0910 19:20:27.693814 1964 retry.go:31] will retry after 11.04660288s: Temporary Error: sudo crictl version: exit status 1
stdout:
stderr: Usage: cri-dockerd [flags]
Flags: --buildinfo Prints the build information about cri-dockerd --cni-bin-dir string A comma-separated list of full paths of directories in which to search for CNI plugin binaries. (default "/opt/cni/bin") --cni-cache-dir string The full path of the directory in which CNI should store cache files. (default "/var/lib/cni/cache") --cni-conf-dir string The full path of the directory in which to search for CNI config files (default "/etc/cni/net.d") --container-runtime-endpoint string The endpoint of backend runtime service. Currently unix socket and tcp endpoints are supported on Linux, while npipe and tcp endpoints are supported on windows. Examples:'unix:///var/run/cri-dockerd.sock', 'npipe:////./pipe/cri-dockerd' (default "unix:///var/run/cri-dockerd.sock") --cri-dockerd-root-directory string Path to the cri-dockerd root directory. (default "/var/lib/cri-dockerd") --docker-endpoint string Use this for the docker endpoint to communicate with. (default "unix:///var/run/docker.sock") --hairpin-mode HairpinMode The mode of hairpin to use. (default none)
-h, --help Help for cri-dockerd
--image-pull-progress-deadline duration If no pulling progress is made before this deadline, the image pulling will be cancelled. (default 1m0s)
--ipv6-dual-stack Enable IPv6 dual stack support
--log-level string The log level for cri-docker (default "info")
--network-plugin string The name of the network plugin to be invoked for various events in kubelet/pod lifecycle. (default "cni")
--network-plugin-mtu int32 The MTU to be passed to the network plugin, to override the default. Set to 0 to use the default 1460 MTU.
--pod-cidr string The CIDR to use for pod IP addresses, only used in standalone mode. In cluster mode, this is obtained from the master. For IPv6, the maximum number of IP's allocated is 65536
--pod-infra-container-image string The image whose network/ipc namespaces containers in each pod will use (default "k8s.gcr.io/pause:3.6")
--runtime-cgroups string Optional absolute name of cgroups to create and run the runtime in.
--runtime-request-timeout duration If no runtime progress is made before this deadline, the operation will be cancelled.
--streaming-bind-addr string The address to bind the CRI streaming server to. If not specified, it will bind to all addresses.
--version Prints the version of cri-dockerd
time="2022-09-10T19:20:27Z" level=fatal msg="Unknown command: version"
I0910 19:20:38.742315 1964 exec_runner.go:51] Run: sudo crictl version
I0910 19:20:38.791828 1964 retry.go:31] will retry after 21.607636321s: Temporary Error: sudo crictl version: exit status 1
stdout:
stderr: Usage: cri-dockerd [flags]
Flags: --buildinfo Prints the build information about cri-dockerd --cni-bin-dir string A comma-separated list of full paths of directories in which to search for CNI plugin binaries. (default "/opt/cni/bin") --cni-cache-dir string The full path of the directory in which CNI should store cache files. (default "/var/lib/cni/cache") --cni-conf-dir string The full path of the directory in which to search for CNI config files (default "/etc/cni/net.d") --container-runtime-endpoint string The endpoint of backend runtime service. Currently unix socket and tcp endpoints are supported on Linux, while npipe and tcp endpoints are supported on windows. Examples:'unix:///var/run/cri-dockerd.sock', 'npipe:////./pipe/cri-dockerd' (default "unix:///var/run/cri-dockerd.sock") --cri-dockerd-root-directory string Path to the cri-dockerd root directory. (default "/var/lib/cri-dockerd") --docker-endpoint string Use this for the docker endpoint to communicate with. (default "unix:///var/run/docker.sock") --hairpin-mode HairpinMode The mode of hairpin to use. (default none)
-h, --help Help for cri-dockerd
--image-pull-progress-deadline duration If no pulling progress is made before this deadline, the image pulling will be cancelled. (default 1m0s)
--ipv6-dual-stack Enable IPv6 dual stack support
--log-level string The log level for cri-docker (default "info")
--network-plugin string The name of the network plugin to be invoked for various events in kubelet/pod lifecycle. (default "cni")
--network-plugin-mtu int32 The MTU to be passed to the network plugin, to override the default. Set to 0 to use the default 1460 MTU.
--pod-cidr string The CIDR to use for pod IP addresses, only used in standalone mode. In cluster mode, this is obtained from the master. For IPv6, the maximum number of IP's allocated is 65536
--pod-infra-container-image string The image whose network/ipc namespaces containers in each pod will use (default "k8s.gcr.io/pause:3.6")
--runtime-cgroups string Optional absolute name of cgroups to create and run the runtime in.
--runtime-request-timeout duration If no runtime progress is made before this deadline, the operation will be cancelled.
--streaming-bind-addr string The address to bind the CRI streaming server to. If not specified, it will bind to all addresses.
--version Prints the version of cri-dockerd
time="2022-09-10T19:20:38Z" level=fatal msg="Unknown command: version"
I0910 19:21:00.403113 1964 exec_runner.go:51] Run: sudo crictl version
I0910 19:21:00.451994 1964 retry.go:31] will retry after 26.202601198s: Temporary Error: sudo crictl version: exit status 1
stdout:
stderr: Usage: cri-dockerd [flags]
Flags: --buildinfo Prints the build information about cri-dockerd --cni-bin-dir string A comma-separated list of full paths of directories in which to search for CNI plugin binaries. (default "/opt/cni/bin") --cni-cache-dir string The full path of the directory in which CNI should store cache files. (default "/var/lib/cni/cache") --cni-conf-dir string The full path of the directory in which to search for CNI config files (default "/etc/cni/net.d") --container-runtime-endpoint string The endpoint of backend runtime service. Currently unix socket and tcp endpoints are supported on Linux, while npipe and tcp endpoints are supported on windows. Examples:'unix:///var/run/cri-dockerd.sock', 'npipe:////./pipe/cri-dockerd' (default "unix:///var/run/cri-dockerd.sock") --cri-dockerd-root-directory string Path to the cri-dockerd root directory. (default "/var/lib/cri-dockerd") --docker-endpoint string Use this for the docker endpoint to communicate with. (default "unix:///var/run/docker.sock") --hairpin-mode HairpinMode The mode of hairpin to use. (default none)
-h, --help Help for cri-dockerd
--image-pull-progress-deadline duration If no pulling progress is made before this deadline, the image pulling will be cancelled. (default 1m0s)
--ipv6-dual-stack Enable IPv6 dual stack support
--log-level string The log level for cri-docker (default "info")
--network-plugin string The name of the network plugin to be invoked for various events in kubelet/pod lifecycle. (default "cni")
--network-plugin-mtu int32 The MTU to be passed to the network plugin, to override the default. Set to 0 to use the default 1460 MTU.
--pod-cidr string The CIDR to use for pod IP addresses, only used in standalone mode. In cluster mode, this is obtained from the master. For IPv6, the maximum number of IP's allocated is 65536
--pod-infra-container-image string The image whose network/ipc namespaces containers in each pod will use (default "k8s.gcr.io/pause:3.6")
--runtime-cgroups string Optional absolute name of cgroups to create and run the runtime in.
--runtime-request-timeout duration If no runtime progress is made before this deadline, the operation will be cancelled.
--streaming-bind-addr string The address to bind the CRI streaming server to. If not specified, it will bind to all addresses.
--version Prints the version of cri-dockerd
time="2022-09-10T19:21:00Z" level=fatal msg="Unknown command: version"
I0910 19:21:26.655552 1964 exec_runner.go:51] Run: sudo crictl version
I0910 19:21:26.707201 1964 out.go:177]
W0910 19:21:26.709258 1964 out.go:239] โ Exiting due to RUNTIME_ENABLE: Temporary Error: sudo crictl version: exit status 1
stdout:
stderr: Usage: cri-dockerd [flags]
Flags: --buildinfo Prints the build information about cri-dockerd --cni-bin-dir string A comma-separated list of full paths of directories in which to search for CNI plugin binaries. (default "/opt/cni/bin") --cni-cache-dir string The full path of the directory in which CNI should store cache files. (default "/var/lib/cni/cache") --cni-conf-dir string The full path of the directory in which to search for CNI config files (default "/etc/cni/net.d") --container-runtime-endpoint string The endpoint of backend runtime service. Currently unix socket and tcp endpoints are supported on Linux, while npipe and tcp endpoints are supported on windows. Examples:'unix:///var/run/cri-dockerd.sock', 'npipe:////./pipe/cri-dockerd' (default "unix:///var/run/cri-dockerd.sock") --cri-dockerd-root-directory string Path to the cri-dockerd root directory. (default "/var/lib/cri-dockerd") --docker-endpoint string Use this for the docker endpoint to communicate with. (default "unix:///var/run/docker.sock") --hairpin-mode HairpinMode The mode of hairpin to use. (default none)
-h, --help Help for cri-dockerd
--image-pull-progress-deadline duration If no pulling progress is made before this deadline, the image pulling will be cancelled. (default 1m0s)
--ipv6-dual-stack Enable IPv6 dual stack support
--log-level string The log level for cri-docker (default "info")
--network-plugin string The name of the network plugin to be invoked for various events in kubelet/pod lifecycle. (default "cni")
--network-plugin-mtu int32 The MTU to be passed to the network plugin, to override the default. Set to 0 to use the default 1460 MTU.
--pod-cidr string The CIDR to use for pod IP addresses, only used in standalone mode. In cluster mode, this is obtained from the master. For IPv6, the maximum number of IP's allocated is 65536
--pod-infra-container-image string The image whose network/ipc namespaces containers in each pod will use (default "k8s.gcr.io/pause:3.6")
--runtime-cgroups string Optional absolute name of cgroups to create and run the runtime in.
--runtime-request-timeout duration If no runtime progress is made before this deadline, the operation will be cancelled.
--streaming-bind-addr string The address to bind the CRI streaming server to. If not specified, it will bind to all addresses.
--version Prints the version of cri-dockerd
time="2022-09-10T19:21:26Z" level=fatal msg="Unknown command: version"
W0910 19:21:26.709325 1964 out.go:239] W0910 19:21:26.711112 1964 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. โ โ โ โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ I0910 19:21:26.713067 1964 out.go:177]*
Operating System
Ubuntu
Driver
None (Baremetal)