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

0 votes

I have been trying to create pods, services and deployment using Kubernetes, but  errors  is getting popped 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 have already terminated all pods and try restarting the machine, but issue still persist .I am just wondering how shall find all the open files and close them ?

Can anyone help me with this?

Aug 20, 2018 in Docker by shubham
• 6,890 points
217 views

1 answer to this question.

0 votes

Run the below command to know about descriptors:

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 w/

ps -p <pid>

If the main hogs are docker/kubernetes, then I would recommend following along on the issue that caesarxuchao referenced.

answered Aug 20, 2018 by Damon Salvatore
• 5,510 points

Related Questions In Docker

0 votes
1 answer

Can you use docker-compose files to start services in Docker 1.12 swarm-mode?

Yess, you can. you must download/install the ...READ MORE

answered Aug 10, 2018 in Docker by Kalgi
• 45,890 points
44 views
0 votes
1 answer

Is it possible to start a shell session in a running container (without ssh)

use this docker exec -it "id of running ...READ MORE

answered Jul 25, 2018 in Docker by Kalgi
• 45,890 points
61 views
0 votes
1 answer

Is it possible to start a shell session in a running container (without ssh)

use this docker exec -it "id of running ...READ MORE

answered Jul 27, 2018 in Docker by Kalgi
• 45,890 points
58 views
0 votes
1 answer

Slave image does not support running docker

You need to install docker client and ...READ MORE

answered Jul 19, 2018 in Docker by Kalgi
• 2,620 points
660 views
0 votes
1 answer
0 votes
1 answer
+1 vote
1 answer