Kubernetes can t start due to too many open files in system

+1 vote
I am trying create a bunch of pods, services and deployment using Kubernetes, but keep getting these errors when I run the kubectl describe command.

for "POD" with RunContainerError: "runContainer: API error (500): Cannot start container bbdb58770a848733bf7130b1b230d809fcec3062b2b16748c5e4a8b12cc0533a: [8] System error: too many open files in system\n"

I am not an Linux expert, so I am just wondering how do I find all the open files and close them?
Jul 5, 2018 in DevOps & Agile by Hannah
• 18,570 points

3 answers to this question.

0 votes

You can confirm which process is hogging file descriptors by running:

lsof | awk '{print $2}' | sort | uniq -c | sort -n

That will give you a sorted list of open FD counts with the pid of the process. Then you can look up each process

ps -p <pid>

answered Jul 5, 2018 by Kalgi
• 52,370 points
0 votes
You could probably try more powerful machines with higher CPU and larger memory. Let me know if it works. Thanks
answered Oct 25, 2018 by Haider
0 votes
Seems like a kernel config issue. If there's nothing important running on the cluster delete the old one and bring up a new cluster.
answered Oct 25, 2018 by Zaid

Related Questions In DevOps & Agile

0 votes
1 answer

How to configure maven in CentOS/ RHEL system?

Hi@akhtar, You can follow the below given steps ...READ MORE

answered Jun 3, 2020 in DevOps & Agile by MD
• 95,240 points
+1 vote
2 answers

is it possible to assign a Feature/User Story/Task to a team [Group] in VSTS

In most cases, we would break Work ...READ MORE

answered Oct 11, 2018 in DevOps & Agile by lina
• 8,220 points
+5 votes
3 answers

Steps to Call Python method in BuildBot

To run python code, you must write ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by ajs3033
• 7,280 points

edited Oct 12, 2018 by Kalgi 709 views
+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
+4 votes
1 answer

Installing Web UI (Dashboard):kubernetes-dashboard on main Ubuntu 16.04.6 LTS (Xenial Xerus) server

Follow these steps: $ kubeadm reset $ kubeadm init ...READ MORE

answered Apr 11, 2019 in Kubernetes by Kalgi
• 52,370 points

reshown Apr 12, 2019 by Kalgi 3,380 views
+13 votes
2 answers
+2 votes
2 answers

how to set different provisioning profiles for different targets using Xcode Build

For multiple targets, each task has to ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by ajs3033
• 7,280 points

edited Oct 16, 2018 by Kalgi 2,181 views