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

**URL:** <https://community.convox.com/t/error-dial-tcp-lookup-api-convox-svc-cluster-local-too-many-open-files/505>\
**Category:** Rack (Version 2)\
**Created:** [April 26, 2019, 12:09am UTC](https://community.convox.com/t/error-dial-tcp-lookup-api-convox-svc-cluster-local-too-many-open-files/505 "2019-04-26T00:09:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![xtagon](https://avatars.discourse-cdn.com/v4/letter/x/c37758/32.png) [@xtagon](https://community.convox.com/u/xtagon)\
**Post date:** [April 26, 2019, 12:09am UTC](https://community.convox.com/t/error-dial-tcp-lookup-api-convox-svc-cluster-local-too-many-open-files/505/1 "2019-04-26T00:09:12Z")

</div>

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:

```auto
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

---

<div class="post-metadata">

**Author:** ![scott](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@scott](https://community.convox.com/u/scott)\
**Post date:** [May 10, 2019, 10:52pm UTC](https://community.convox.com/t/error-dial-tcp-lookup-api-convox-svc-cluster-local-too-many-open-files/505/2 "2019-05-10T22:52:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![alon](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.convox.com/alon/32/49_2.png) [@alon](https://community.convox.com/u/alon)\
**Post date:** [September 25, 2021, 5:45pm UTC](https://community.convox.com/t/error-dial-tcp-lookup-api-convox-svc-cluster-local-too-many-open-files/505/3 "2021-09-25T17:45:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![xtagon](https://avatars.discourse-cdn.com/v4/letter/x/c37758/32.png) [@xtagon](https://community.convox.com/u/xtagon)\
**Post date:** [September 27, 2021, 4:05pm UTC](https://community.convox.com/t/error-dial-tcp-lookup-api-convox-svc-cluster-local-too-many-open-files/505/4 "2021-09-27T16:05:49Z")

</div>

Haven’t figured it out yet, sorry.

---

<div class="post-metadata">

**Author:** ![alon](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.convox.com/alon/32/49_2.png) [@alon](https://community.convox.com/u/alon)\
**Post date:** [November 17, 2021, 9:30pm UTC](https://community.convox.com/t/error-dial-tcp-lookup-api-convox-svc-cluster-local-too-many-open-files/505/5 "2021-11-17T21:30:39Z")

</div>

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:

```auto
ulimit -n 65536

```

This resolved all such issues for me.
