Open sktechnologiesadl opened 1 year ago
find the logs below
root@ip-172-31-5-188:~# cat logs.txt *
==> Audit <==
--------- | ------------------ | ---------- | ------ | --------- | --------------------- | --------------------- | Command | Args | Profile | User | Version | Start Time | End Time | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
start | --vm-driver=none | minikube | root | v1.29.0 | 21 Feb 23 07:09 UTC | |||||||||
start | --vm-driver=none | minikube | root | v1.29.0 | 21 Feb 23 07:17 UTC | |||||||||
start | --vm-driver=none | minikube | root | v1.29.0 | 21 Feb 23 07:18 UTC | |||||||||
stop | minikube | root | v1.29.0 | 21 Feb 23 07:19 UTC | 21 Feb 23 07:19 UTC | |||||||||
start | --vm-driver=none | minikube | root | v1.29.0 | 21 Feb 23 07:21 UTC | |||||||||
start | --vm-driver=none | minikube | root | v1.29.0 | 21 Feb 23 07:24 UTC | |||||||||
start | --vm-driver=none | minikube | root | v1.29.0 | 21 Feb 23 07:27 UTC | |||||||||
start | --vm-driver=none | minikube | root | v1.29.0 | 21 Feb 23 07:28 UTC | |||||||||
start | --driver=none | minikube | root | v1.29.0 | 21 Feb 23 07:31 UTC | |||||||||
start | --vm-driver=none | minikube | root | v1.29.0 | 21 Feb 23 07:41 UTC | |||||||||
start | --vm-driver=none | minikube | root | v1.29.0 | 21 Feb 23 07:43 UTC | |||||||||
--------- | ------------------ | ---------- | ------ | --------- | --------------------- | --------------------- |
==> Last Start <==
Log file created at: 2023/02/21 07:43:43
Running on machine: ip-172-31-5-188
Binary: Built with gc go1.19.5 for linux/amd64
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
I0221 07:43:43.691789 1735 out.go:296] Setting OutFile to fd 1 ...
I0221 07:43:43.692055 1735 out.go:348] isatty.IsTerminal(1) = true
I0221 07:43:43.692061 1735 out.go:309] Setting ErrFile to fd 2...
I0221 07:43:43.692068 1735 out.go:348] isatty.IsTerminal(2) = true
I0221 07:43:43.692208 1735 root.go:334] Updating PATH: /root/.minikube/bin
W0221 07:43:43.692331 1735 root.go:311] Error reading config file at /root/.minikube/config/config.json: open /root/.minikube/config/config.json: no such file or directory
I0221 07:43:43.692539 1735 out.go:303] Setting JSON to false
I0221 07:43:43.693293 1735 start.go:125] hostinfo: {"hostname":"ip-172-31-5-188","uptime":216,"bootTime":1676965208,"procs":124,"os":"linux","platform":"ubuntu","platformFamily":"debian","platformVersion":"22.04","kernelVersion":"5.15.0-1030-aws","kernelArch":"x86_64","virtualizationSystem":"xen","virtualizationRole":"guest","hostId":"ec22bd00-7c19-b693-4e5a-5b53bc786291"}
I0221 07:43:43.693358 1735 start.go:135] virtualization: xen guest
I0221 07:43:43.697607 1735 out.go:177] ๐ minikube v1.29.0 on Ubuntu 22.04 (xen/amd64)
W0221 07:43:43.699933 1735 preload.go:295] Failed to list preload files: open /root/.minikube/cache/preloaded-tarball: no such file or directory
I0221 07:43:43.700087 1735 notify.go:220] Checking for updates...
I0221 07:43:43.700390 1735 config.go:180] Loaded profile config "minikube": Driver=none, ContainerRuntime=docker, KubernetesVersion=v1.26.1
I0221 07:43:43.701085 1735 exec_runner.go:51] Run: systemctl --version
I0221 07:43:43.703345 1735 driver.go:365] Setting default libvirt URI to qemu:///system
I0221 07:43:43.706062 1735 out.go:177] โจ Using the none driver based on existing profile
I0221 07:43:43.708223 1735 start.go:296] selected driver: none
I0221 07:43:43.708246 1735 start.go:857] validating driver "none" against &{Name:minikube KeepContext:false EmbedCerts:false MinikubeISO: KicBaseImage:gcr.io/k8s-minikube/kicbase:v0.0.37@sha256:8bf7a0e8a062bc5e2b71d28b35bfa9cc862d9220e234e86176b3785f685d8b15 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.26.1 ClusterName:minikube Namespace:default 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:[{Component:kubelet Key:resolv-conf Value:/run/systemd/resolve/resolv.conf}] ShouldLoadCachedImages:false EnableDefaultCNI:false CNI: NodeIP: NodePort:8443 NodeName:} Nodes:[{Name:m01 IP:172.31.5.188 Port:8443 KubernetesVersion:v1.26.1 ContainerRuntime:docker ControlPlane:true Worker:true}] Addons:map[] CustomAddonImages:map[] CustomAddonRegistries:map[] VerifyComponents:map[apiserver:true system_pods:true] StartHostTimeout:6m0s ScheduledStop:
stderr:
I0221 07:43:43.731636 1735 exec_runner.go:51] Run: sudo systemctl is-active --quiet service kubelet
I0221 07:43:43.744994 1735 fix.go:103] recreateIfNeeded on minikube: state=Stopped err=
stderr: cat: /version.json: No such file or directory I0221 07:43:43.767268 1735 exec_runner.go:51] Run: sh -c "stat /etc/cni/net.d/loopback.conf" W0221 07:43:43.768969 1735 cni.go:208] loopback cni configuration skipped: "/etc/cni/net.d/loopback.conf" not found I0221 07:43:43.769067 1735 exec_runner.go:51] Run: sudo mkdir -p /etc/systemd/system/cri-docker.service.d I0221 07:43:43.783997 1735 exec_runner.go:144] found /etc/systemd/system/cri-docker.service.d/10-cni.conf, removing ... I0221 07:43:43.784008 1735 exec_runner.go:207] rm: /etc/systemd/system/cri-docker.service.d/10-cni.conf I0221 07:43:43.784064 1735 exec_runner.go:151] cp: memory --> /etc/systemd/system/cri-docker.service.d/10-cni.conf (135 bytes) I0221 07:43:43.784164 1735 exec_runner.go:51] Run: sudo cp -a /tmp/minikube3287675091 /etc/systemd/system/cri-docker.service.d/10-cni.conf I0221 07:43:43.811830 1735 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" ; I0221 07:43:43.821176 1735 cni.go:258] no active bridge cni configs found in "/etc/cni/net.d" - nothing to disable I0221 07:43:43.821204 1735 start.go:483] detecting cgroup driver to use... I0221 07:43:43.821225 1735 detect.go:199] detected "systemd" cgroup driver on host os I0221 07:43:43.821360 1735 exec_runner.go:51] Run: /bin/bash -c "sudo mkdir -p /etc && printf %!s(MISSING) "runtime-endpoint: unix:///run/containerd/containerd.sock image-endpoint: unix:///run/containerd/containerd.sock " | sudo tee /etc/crictl.yaml" I0221 07:43:43.840621 1735 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" W0221 07:43:43.851653 1735 start.go:450] 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 I0221 07:43:43.851673 1735 start.go:483] detecting cgroup driver to use... I0221 07:43:43.851694 1735 detect.go:199] detected "systemd" cgroup driver on host os I0221 07:43:43.851797 1735 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" I0221 07:43:43.872997 1735 exec_runner.go:51] Run: sudo systemctl unmask docker.service I0221 07:43:44.127696 1735 exec_runner.go:51] Run: sudo systemctl enable docker.socket I0221 07:43:44.379412 1735 docker.go:529] configuring docker to use "systemd" as cgroup driver... I0221 07:43:44.379437 1735 exec_runner.go:144] found /etc/docker/daemon.json, removing ... I0221 07:43:44.379444 1735 exec_runner.go:207] rm: /etc/docker/daemon.json I0221 07:43:44.379524 1735 exec_runner.go:151] cp: memory --> /etc/docker/daemon.json (143 bytes) I0221 07:43:44.379636 1735 exec_runner.go:51] Run: sudo cp -a /tmp/minikube1086914626 /etc/docker/daemon.json I0221 07:43:44.391790 1735 exec_runner.go:51] Run: sudo systemctl daemon-reload I0221 07:43:44.684332 1735 exec_runner.go:51] Run: sudo systemctl restart docker I0221 07:43:45.215272 1735 exec_runner.go:51] Run: sudo systemctl enable cri-docker.socket I0221 07:43:45.475338 1735 exec_runner.go:51] Run: sudo systemctl unmask cri-docker.socket I0221 07:43:45.713907 1735 exec_runner.go:51] Run: sudo systemctl enable cri-docker.socket I0221 07:43:45.951605 1735 exec_runner.go:51] Run: sudo systemctl daemon-reload I0221 07:43:46.197407 1735 exec_runner.go:51] Run: sudo systemctl restart cri-docker.socket I0221 07:43:46.230144 1735 start.go:530] Will wait 60s for socket path /var/run/cri-dockerd.sock I0221 07:43:46.230209 1735 exec_runner.go:51] Run: stat /var/run/cri-dockerd.sock I0221 07:43:46.231498 1735 start.go:551] Will wait 60s for crictl version I0221 07:43:46.231532 1735 exec_runner.go:51] Run: which crictl I0221 07:43:46.232396 1735 exec_runner.go:51] Run: sudo /usr/bin/crictl version I0221 07:43:48.502977 1735 exec_runner.go:84] Completed: sudo /usr/bin/crictl version: (2.270554923s) I0221 07:43:48.503007 1735 retry.go:31] will retry after 11.04660288s: Temporary Error: sudo /usr/bin/crictl version: exit status 1 stdout:
stderr: E0221 07:43:48.500684 2136 remote_runtime.go:145] "Version from runtime service failed" err="rpc error: code = Unavailable desc = connection closed before server preface received" time="2023-02-21T07:43:48Z" level=fatal msg="getting the runtime version: rpc error: code = Unavailable desc = connection closed before server preface received" I0221 07:43:59.549883 1735 exec_runner.go:51] Run: sudo /usr/bin/crictl version I0221 07:43:59.583151 1735 retry.go:31] will retry after 21.607636321s: Temporary Error: sudo /usr/bin/crictl version: exit status 1 stdout:
stderr: E0221 07:43:59.580723 2150 remote_runtime.go:145] "Version from runtime service failed" err="rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing dial unix /var/run/cri-dockerd.sock: connect: connection refused\"" time="2023-02-21T07:43:59Z" level=fatal msg="getting the runtime version: rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing dial unix /var/run/cri-dockerd.sock: connect: connection refused\"" I0221 07:44:21.192504 1735 exec_runner.go:51] Run: sudo /usr/bin/crictl version I0221 07:44:21.232003 1735 out.go:177] W0221 07:44:21.233990 1735 out.go:239] โ Exiting due to RUNTIME_ENABLE: Temporary Error: sudo /usr/bin/crictl version: exit status 1 stdout:
stderr: E0221 07:44:21.226531 2157 remote_runtime.go:145] "Version from runtime service failed" err="rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing dial unix /var/run/cri-dockerd.sock: connect: connection refused\"" time="2023-02-21T07:44:21Z" level=fatal msg="getting the runtime version: rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing dial unix /var/run/cri-dockerd.sock: connect: connection refused\""
W0221 07:44:21.234020 1735 out.go:239]
W0221 07:44:21.235152 1735 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. โ
โ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
I0221 07:44:21.238106 1735 out.go:177]
* root@ip-172-31-5-188:~# cat logs.txt
Sounds like an issue with cri-dockerd, check the service logs in systemd ?
seems like minikube should do more detection on None Driver to check if docker-dockerd is healthy
we could add a health check in None driver here https://github.com/medyagh/minikube/blob/41f8a181f3e464de26a7fa4b4b487487a5202464/pkg/minikube/registry/drvs/none/none.go
similiar to other checks we do in other drivers https://github.com/medyagh/minikube/blob/41f8a181f3e464de26a7fa4b4b487487a5202464/pkg/minikube/registry/drvs/docker/docker.go#L261
@x7upLime
could this specific error be caused by
W0221 07:43:43.851653 1735 start.go:450] 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
?
will investigate further..
The config file is optional, so it is possible that it is missing (or only contains a few lines), needs to be tested for
For the currently resulting config, see containerd config dump
(for the built-in values, containerd config default
)
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle rotten
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
What Happened?
root@ip-172-31-5-188:~# sudo -E minikube start --driver=none ๐ minikube v1.29.0 on Ubuntu 22.04 (xen/amd64) โจ Using the none driver based on existing profile ๐ Starting control plane node minikube in cluster minikube ๐ Restarting existing none bare metal machine for "minikube" ... โน๏ธ OS release is Ubuntu 22.04.2 LTS
โ Exiting due to RUNTIME_ENABLE: Temporary Error: sudo /usr/bin/crictl version: exit status 1 stdout:
stderr: E0221 07:32:28.999758 10664 remote_runtime.go:145] "Version from runtime service failed" err="rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing dial unix /var/run/cri-dockerd.sock: connect: connection refused\"" time="2023-02-21T07:32:28Z" level=fatal msg="getting the runtime version: 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@ip-172-31-5-188:~#
Attach the log file
getting the above issue
Operating System
Ubuntu
Driver
Docker