minikube: Minikube --mount Bad file descriptor

Steps to reproduce the issue:

  1. The issue is happened when we install new minikube (Tested a few times)
  2. Older version which run a few month ago has no issue, accidentally delete old minikube image (minikube delete) that cause minikube start -> rebuild the minikube image (IP 192.168.49.2) -> issue appears.

šŸ˜„ minikube v1.20.0 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.20.2 on Docker 20.10.6 … šŸ”Ž Verifying Kubernetes components… ā–Ŗ Using image gcr.io/k8s-minikube/storage-provisioner:v5 ā–Ŗ Using image kubernetesui/dashboard:v2.1.0 ā–Ŗ Using image kubernetesui/metrics-scraper:v1.0.4 🌟 Enabled addons: storage-provisioner, default-storageclass, dashboard šŸ„ Done! kubectl is now configured to use ā€œminikubeā€ cluster and ā€œdefaultā€ namespace by default

  1. issues appear in the mount

root@minikube:/containerfile# ls ls: cannot access ā€˜docker’: Bad file descriptor ls: cannot access ā€˜composer.lock’: Bad file descriptor ls: cannot access ā€˜phpunit.xml’: Bad file descriptor ls: cannot access ā€˜package-lock.json’: Bad file descriptor ls: cannot access ā€˜app’: Bad file descriptor ls: cannot access ā€˜webpack.mix.js’: Bad file descriptor ls: cannot access ā€˜frontend’: Bad file descriptor ls: cannot access ā€˜bootstrap’: Bad file descriptor ls: cannot access ā€˜docker-compose.yml’: Bad file descriptor ls: cannot access ā€˜node_modules’: Bad file descriptor ls: cannot access ā€˜public’: Bad file descriptor

since they can’t access and in the pod.

/var/www/html # ls ls: ./docker: Bad file descriptor ls: ./composer.lock: Bad file descriptor ls: ./namtest10: Bad file descriptor ls: ./phpunit.xml: Bad file descriptor ls: ./package-lock.json: Bad file descriptor ls: ./app: Bad file descriptor ls: ./webpack.mix.js: Bad file descriptor ls: ./frontend: Bad file descriptor ls: ./bootstrap: Bad file descriptor ls: ./docker-compose.yml: Bad file descriptor ls: ./node_modules: Bad file descriptor ls: ./public: Bad file descriptor ls: ./database: Bad file descriptor ls: ./tests: Bad file descriptor ls: ./package.json: Bad file descriptor ls: ./vendor: Bad file descriptor ls: ./routes: Bad file descriptor ls: ./artisan: Bad file descriptor ls: ./resources: Bad file descriptor ls: ./composer.json: Bad file descriptor ls: ./server.php: Bad file descriptor ls: ./README.md: Bad file descriptor

Full output of minikube logs command: root@minikube:~# date Tue Aug 17 21:04:58 UTC 2021

Aug 17 20:53:53 minikube kubelet[1008]: W0817 20:53:53.347979 1008 docker_sandbox.go:402] failed to read pod IP from plugin/docker: Couldn’t find network status for test/main-page-5f47c6db5b-b76tw through plugin: invalid network status for Aug 17 20:53:54 minikube kubelet[1008]: W0817 20:53:54.692472 1008 docker_sandbox.go:402] failed to read pod IP from plugin/docker: Couldn’t find network status for test/main-page-5f47c6db5b-b76tw through plugin: invalid network status for Aug 17 20:53:58 minikube kubelet[1008]: W0817 20:53:58.400456 1008 docker_sandbox.go:402] failed to read pod IP from plugin/docker: Couldn’t find network status for test/main-page-5f47c6db5b-b76tw through plugin: invalid network status for Aug 17 20:54:02 minikube kubelet[1008]: W0817 20:54:02.092122 1008 docker_sandbox.go:402] failed to read pod IP from plugin/docker: Couldn’t find network status for test/main-page-5f47c6db5b-b76tw through plugin: invalid network status for Aug 17 20:54:03 minikube kubelet[1008]: W0817 20:54:03.309024 1008 docker_sandbox.go:402] failed to read pod IP from plugin/docker: Couldn’t find network status for test/main-page-5f47c6db5b-b76tw through plugin: invalid network status for

  • Tried to build virtualbox nested (same issue)
  • Tried to build Physical Server (Same issue)
  • The working one for a few month (after delete old image minikube 1.20.0 ) -> it rebuild the image 192.168.49.2 -> same issue
  • The Drive= virtualbox is working but the performance is slow (because it used virtualbox instead)

Anyone please know how to fix please help. I suspect the newer minikube docker image has problem with the privilege access.

Thankss

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 19 (5 by maintainers)

Commits related to this issue

Most upvoted comments

I reinstalled the minikube in the VM and each deployment. I deleted so it is fresh deployment and the issue appeared in all new deployment docker driver.

The work around solution is change driver to VM mode so minikube will run docker in the virtual box instead of direct docker in the host. It has slower performance but it works.

Before change driver to vm mode, you try to delete all as above guide whether new minikube image is fixed or not. Till now, issue is not fixed then google, minukube virtualbox driver. This is my workaround.

On Mon, 27 Sep 2021, 07:20 Nestor Figliuolo, @.***> wrote:

Someone has a solution for this issue?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kubernetes/minikube/issues/12301#issuecomment-927391170, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARE3QO56YUWTXNMGUQ57U6TUD6TCLANCNFSM5CKVZHSQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.