# Fail to add second fleet server with error missing enrollment api key

**URL:** <https://discuss.elastic.co/t/fail-to-add-second-fleet-server-with-error-missing-enrollment-api-key/325698>\
**Category:** Elastic Agent\
**Created:** [February 16, 2023, 7:41am UTC](https://discuss.elastic.co/t/fail-to-add-second-fleet-server-with-error-missing-enrollment-api-key/325698 "2023-02-16T07:41:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lusynda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lusynda/32/53557_2.png) [@lusynda](https://discuss.elastic.co/u/lusynda)\
**Post date:** [February 16, 2023, 7:41am UTC](https://discuss.elastic.co/t/fail-to-add-second-fleet-server-with-error-missing-enrollment-api-key/325698/1 "2023-02-16T07:41:15Z")

</div>

Hi all,  
I have a weird case that i dont know how to fix.  
I've already setup a fleet server successfully and already enrolling agent to that fleet. But now i want to add another fleet server to the cluster to ensure high availability for the fleet cluster.  
I have try enrolling with the same policy as the old fleet server, the same cert, key and everything, i also try to create another policy and still it's not working.  
It keep giving me the error:

```auto
Error: fail to enroll: fail to execute request to fleet-server: 1 error occurred:
* missing enrollment api key

```

I've also try to enroll the agent with a diff policy ( this action was a success ) then change the policy to the one with fleet-server but then fleet-server did not installed on the serrver with the agent installed on.

How to i resolve this error?

Thanks for your time.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 16, 2023, 7:41am UTC](https://discuss.elastic.co/t/fail-to-add-second-fleet-server-with-error-missing-enrollment-api-key/325698/2 "2023-03-16T07:41:58Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
