# Haproxy.main: Cannot raise FD limit

**URL:** <https://discuss.elastic.co/t/haproxy-main-cannot-raise-fd-limit/192648>\
**Category:** Elastic Cloud Enterprise (ECE)\
**Created:** [July 29, 2019, 8:51am UTC](https://discuss.elastic.co/t/haproxy-main-cannot-raise-fd-limit/192648 "2019-07-29T08:51:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![apaulsen](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@apaulsen](https://discuss.elastic.co/u/apaulsen)\
**Post date:** [July 29, 2019, 8:51am UTC](https://discuss.elastic.co/t/haproxy-main-cannot-raise-fd-limit/192648/1 "2019-07-29T08:51:05Z")

</div>

We have only one proxy deployed (6 nodes, 3 allocators).  
UI became unresponsive. We can authenticate, but get no deployments listed.  
Via curl / API we can list all deployments etc.

Searching for reason we've found the following message:

`ALERT] 051/133231 (106) : Cannot open configuration file/directory /app/managedd /haproxy.cfg : No such file or directory [WARNING] 051/133232 (113) : [haproxy.main()] Cannot raise FD limit to 200034, ll imit is 65536. [WARNING] 051/133232 (113) : Failed to connect to the old process socket '/app/dd ata/haproxy/haproxy.sock' [ALERT] 051/133232 (113) : Failed to get the sockets from the old process! [WARNING] 051/133232 (113) : [haproxy.main()] FD limit (65536) too low for maxcoo nn=100000/maxsock=200034. Please raise 'ulimit-n' to 200034 or more to avoid anyy trouble. [WARNING] 051/133232 (113) : Reexecuting Master process [WARNING] 051/141136 (113) : [haproxy.main()] Cannot raise FD limit to 200034, ll imit is 65536.`

The proxy container runs in unprivileged state, so we can't set ulimit to another value.  
How can we proceed?

TIA,  
Agnes

...  
on the other hand the API-Call says proxy is healthy

```auto
 ... api/v1/platform/infrastructure/proxies

"proxies": [{
    "public_hostname": "...",
    "runner_id": "...",
    "healthy": true,
    "proxy_id": "...",
    "host_ip": "...",
    "metadata": {
    }
  }]

```

---

<div class="post-metadata">

**Author:** ![apaulsen](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@apaulsen](https://discuss.elastic.co/u/apaulsen)\
**Post date:** [July 29, 2019, 11:10am UTC](https://discuss.elastic.co/t/haproxy-main-cannot-raise-fd-limit/192648/2 "2019-07-29T11:10:54Z")

</div>

Solved: Reason certificate has to be renewed.

---

<div class="post-metadata">

**Author:** ![pmoust](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pmoust/32/11656_2.png) [@pmoust](https://discuss.elastic.co/u/pmoust)\
**Post date:** [August 1, 2019, 9:52pm UTC](https://discuss.elastic.co/t/haproxy-main-cannot-raise-fd-limit/192648/3 "2019-08-01T21:52:54Z")

</div>


