# Http challenge race condition

**URL:** <https://community.traefik.io/t/http-challenge-race-condition/1908>\
**Category:** Traefik v2\
**Tags:** letsencrypt-acme\
**Created:** [September 26, 2019, 7:22am UTC](https://community.traefik.io/t/http-challenge-race-condition/1908 "2019-09-26T07:22:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fredlahde](https://avatars.discourse-cdn.com/v4/letter/f/50afbb/32.png) [@fredlahde](https://community.traefik.io/u/fredlahde)\
**Post date:** [September 26, 2019, 7:22am UTC](https://community.traefik.io/t/http-challenge-race-condition/1908/1 "2019-09-26T07:22:41Z")

</div>

We have Traefik running as a Daemonset with 2 Instances behind a round-robin level 4 ELB.

Consider following scenario:

- Traefik Instance A initiates a LE http challenge, and sets `/.well-known/acme-challenge/{token}` in its router
- LE tries to verify the challenge, requests `/.well-known/acme-challenge/{token}` but lands at Traefik Instance B
- LE gets a 404 and does not create a cert

What can we do to improve this?

---

<div class="post-metadata">

**Author:** ![zespri](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/zespri/32/310_2.png) [@zespri](https://community.traefik.io/u/zespri)\
**Post date:** [September 26, 2019, 10:12pm UTC](https://community.traefik.io/t/http-challenge-race-condition/1908/2 "2019-09-26T22:12:45Z")

</div>

Well the obvious one would be to use DNS challenge I think...

---

<div class="post-metadata">

**Author:** ![fredlahde](https://avatars.discourse-cdn.com/v4/letter/f/50afbb/32.png) [@fredlahde](https://community.traefik.io/u/fredlahde)\
**Post date:** [September 27, 2019, 6:27am UTC](https://community.traefik.io/t/http-challenge-race-condition/1908/3 "2019-09-27T06:27:55Z")

</div>

Due to various reasons we need to use the http one
