Skip to content
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

Cannot start Minikube on Ubuntu using docker desktop vm #14402

Closed
AmanSarraf opened this issue Jun 23, 2022 · 5 comments
Closed

Cannot start Minikube on Ubuntu using docker desktop vm #14402

AmanSarraf opened this issue Jun 23, 2022 · 5 comments
Labels
kind/support Categorizes issue or PR as a support question. triage/duplicate Indicates an issue is a duplicate of other open issue.

Comments

@AmanSarraf
Copy link

What Happened?

When I do minikube start

aman@aman-HP-Laptop-15g-br0xx:~$ minikube start
πŸ˜„  minikube v1.25.2 on Ubuntu 20.04
✨  Using the docker driver based on existing profile
πŸ‘  Starting control plane node minikube in cluster minikube
🚜  Pulling base image ...
πŸ”„  Restarting existing docker container for "minikube" ...
🐳  Preparing Kubernetes v1.23.3 on Docker 20.10.12 ...
    β–ͺ kubelet.housekeeping-interval=5m
🀦  Unable to restart cluster, will reset it: apiserver health: apiserver healthz never reported healthy: cluster wait timed out during healthz check
    β–ͺ Generating certificates and keys ...
    β–ͺ Booting up control plane ...
    β–ͺ Configuring RBAC rules ...| E0623 21:42:45.788445    5800 start.go:264] Unable to scale down deployment "coredns" in namespace "kube-system" to 1 replica: timed out waiting for the condition

πŸ”Ž  Verifying Kubernetes components...
    β–ͺ Using image gcr.io/k8s-minikube/storage-provisioner:v5
❗  Enabling 'default-storageclass' returned an error: running callbacks: [Error making standard the default storage class: Error listing StorageClasses: Get "https://192.168.49.2:8443/apis/storage.k8s.io/v1/storageclasses": dial tcp 192.168.49.2:8443: i/o timeout]
🌟  Enabled addons: storage-provisioner
❌  Problems detected in kubelet:
    Jun 23 16:09:56 minikube kubelet[7626]: W0623 16:09:56.074774    7626 reflector.go:324] object-"kube-system"/"coredns": failed to list *v1.ConfigMap: configmaps "coredns" is forbidden: User "system:node:minikube" cannot list resource "configmaps" in API group "" in the namespace "kube-system": no relationship found between node 'minikube' and this object
    Jun 23 16:09:56 minikube kubelet[7626]: E0623 16:09:56.075110    7626 reflector.go:138] object-"kube-system"/"coredns": Failed to watch *v1.ConfigMap: failed to list *v1.ConfigMap: configmaps "coredns" is forbidden: User "system:node:minikube" cannot list resource "configmaps" in API group "" in the namespace "kube-system": no relationship found between node 'minikube' and this object

Although the Kicbase image is running fine

aman@aman-HP-Laptop-15g-br0xx:~$ docker ps
CONTAINER ID   IMAGE                                 COMMAND                  CREATED       STATUS          PORTS                                                                                                                                  NAMES
4582f7f3d9b0   gcr.io/k8s-minikube/kicbase:v0.0.30   "/usr/local/bin/entr…"   6 hours ago   Up 14 minutes   127.0.0.1:39887->22/tcp, 127.0.0.1:41395->2376/tcp, 127.0.0.1:45447->5000/tcp, 127.0.0.1:40909->8443/tcp, 127.0.0.1:34817->32443/tcp   minikube

Attach the log file

The corresponding log file:
logs.txt

Operating System

Ubuntu

Driver

Docker

@spowelljr
Copy link
Member

Hi @AmanSarraf, thanks for reporting your issue with minikube.

I see that you're restarting an existing instance, if you clean out the existing instance (minikube delete --all) and then try starting minikube again fresh do you get a different error?

@spowelljr spowelljr added kind/support Categorizes issue or PR as a support question. triage/needs-information Indicates an issue needs more information in order to work on it. labels Jun 23, 2022
@AmanSarraf
Copy link
Author

I tried minikube logs --file=logs.txt but didn't helped
LOG file :
logs.txt

@AmanSarraf
Copy link
Author

when I try running the docker kicbase image

aman@aman-HP-Laptop-15g-br0xx:~$ docker run docker.io/kicbase/stable:v0.0.32
+ userns=
+ grep -Eqv '0[[:space:]]+0[[:space:]]+4294967295' /proc/self/uid_map
+ validate_userns
+ [[ -z '' ]]
+ return
+ configure_containerd
+ local snapshotter=
+ [[ -n '' ]]
+ [[ -z '' ]]
++ stat -f -c %T /kind
+ '[[overlayfs' == zfs ']]'
/usr/local/bin/entrypoint: line 112: [[overlayfs: command not found
+ [[ -n '' ]]
+ configure_proxy
+ mkdir -p /etc/systemd/system.conf.d/
+ [[ ! -z '' ]]
+ cat
INFO: ensuring we can execute mount/umount even with userns-remap
+ fix_kmsg
+ [[ ! -e /dev/kmsg ]]
+ [[ -e /dev/console ]]
+ echo 'WARN: /dev/kmsg does not exist, nor does /dev/console!'
WARN: /dev/kmsg does not exist, nor does /dev/console!
+ fix_mount
+ echo 'INFO: ensuring we can execute mount/umount even with userns-remap'
++ which mount
++ which umount
+ chown root:root /usr/bin/mount /usr/bin/umount
++ which mount
++ which umount
+ chmod -s /usr/bin/mount /usr/bin/umount
INFO: remounting /sys read-only
+++ which mount
++ stat -f -c %T /usr/bin/mount
+ [[ overlayfs == \a\u\f\s ]]
+ echo 'INFO: remounting /sys read-only'
+ mount -o remount,ro /sys
mount: /sys: permission denied.
+ [[ -n '' ]]
+ exit 1

@afbjorklund
Copy link
Collaborator

afbjorklund commented Jun 26, 2022

Same issue as #14202

KernelVersion:5.10.104-linuxkit OperatingSystem:Docker Desktop

@afbjorklund afbjorklund changed the title Cannot start Minikube on Ubuntu using docker Cannot start Minikube on Ubuntu using docker desktop vm Jun 26, 2022
@afbjorklund afbjorklund added triage/duplicate Indicates an issue is a duplicate of other open issue. and removed triage/needs-information Indicates an issue needs more information in order to work on it. labels Jun 26, 2022
@spowelljr
Copy link
Member

Hi @AmanSarraf, since this is a duplicate of #14202 I'm going to close this issue to centralize discussion, feel free to ask any follow up questions in #14202, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question. triage/duplicate Indicates an issue is a duplicate of other open issue.
Projects
None yet
Development

No branches or pull requests

3 participants