ERROR: dial tcp: lookup api.convox.svc.cluster.local: too many open files

Hi,

I am starting to try out Convox again after a long time of not using it, and there have been many updates so I started completely from scratch. I installed the Docker and kube dependencies, installed the CLI, convox update, and installed the local rack.

When I run convox start on my project, it starts building the dockerfile and I can see the output from each step. It’s a Rails app, and it finished installing gems with bundler but I got this error on the step after that, ADD . . to add my project’s files to the Dockerfile.

The error is:

ERROR: dial tcp: lookup api.convox.svc.cluster.local: too many open files

Any idea what might be causing this? At first I thought it may be copying the tmp directory in the project dir, but /tmp and other directories are in the .dockerignore.

Now when I try convox start again, it prints the same error without any Docker output.

I’m using an Ubuntu 18.04.2 LTS host and Convox client: 20190418192208

1 Like

I am running into the same issue as well. Has anyone found a solution to this yet?

1 Like

@xtagon @scott
Have you figure it out?
I think it has something to do with gen2 CLI not respecting the “–no-sync” flag…

Haven’t figured it out yet, sorry.

Thanks to Heron from Convox, I managed to resolve this.
Edit the file:
/var/snap/microk8s/current/args/containerd-env
and add the following line:

ulimit -n 65536

This resolved all such issues for me.