# Clear ELK installation cant add Fleet server 8.12

**URL:** <https://discuss.elastic.co/t/clear-elk-installation-cant-add-fleet-server-8-12/354944>\
**Category:** Elastic Agent\
**Tags:** fleet\
**Created:** [March 7, 2024, 10:56am UTC](https://discuss.elastic.co/t/clear-elk-installation-cant-add-fleet-server-8-12/354944 "2024-03-07T10:56:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hitmany](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hitmany/32/132436_2.png) [@hitmany](https://discuss.elastic.co/u/hitmany)\
**Post date:** [March 7, 2024, 10:56am UTC](https://discuss.elastic.co/t/clear-elk-installation-cant-add-fleet-server-8-12/354944/1 "2024-03-07T10:56:38Z")

</div>

Hi there, I am install Elasticsearch and Kibana. All services using self-signed certificates generated with elasticsearch-certutil. 😀

In the Kibana Fleet GUI interface, I added a Fleet server and selected Advanced. I created a policy, chose production deployment mode, added the Fleet server with port 8220 and https protocol url. I created a token and issued the command:

```auto
sudo ./elastic-agent install --url=bttps://fleet.myserver.com:8220
--fleet-server-es=bttps://elk-01.myserver.com:9200/)
--fleet-server-service-token=token-here
--fleet-server-policy=fleet-server-policy
--certificate-authorities=/etc/elasticsearch/certs/ca/ca.crt \ --fleet-server-es-ca=/etc/elasticsearch/certs/ca/ca.crt
--fleet-server-cert=/home/adminimum/fleet/fleet.crt
--fleet-server-cert-key=/home/adminimum/fleet/fleet.key
--fleet-server-port=8220

```

After waiting for the message, recieved error "[====] Waiting For Enroll... [2m12s] Error: fleet-server failed: context canceled",

I also tried the command:

```auto
sudo ./elastic-agent install
--fleet-server-es=bttps://elk-01.myserver.com:9200
--fleet-server-service-token=token-here
--fleet-server-es-ca=/etc/elasticsearch/certs/ca/ca.crt
--fleet-server-policy=fleet-server-policy
--fleet-server-port=8220

```

The same problem occurred again. I also tried using --fleet-server-es-insecure.

_ELK is accessible via curl -k -u {username}:{password} https://{ELASTICSEARCH\_HOST}:9200_

**bttps://kibana.myserver.com:5601/api/fleet/package\_policies/ad39463f-5cc0-4868-aba5-cb106318bb19**  
The result is here: pastebin .com/LvqK8NY3

Screenshot of settings attached.

 ![snap3](https://us1.discourse-cdn.com/elastic/original/3X/b/6/b618de4947aa74d4aa011d7092c12a87d7e6457f.png)

I checked app/fleet/\_debug I do not have preconfigured policies.

ELK Stack version 8.12.2

please help, why clear installation not working

---

<div class="post-metadata">

**Author:** ![MichelLaterman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michellaterman/32/110221_2.png) [@MichelLaterman](https://discuss.elastic.co/u/MichelLaterman)\
**Post date:** [March 13, 2024, 9:46am UTC](https://discuss.elastic.co/t/clear-elk-installation-cant-add-fleet-server-8-12/354944/2 "2024-03-13T09:46:47Z")

</div>

> [@hitmany](#):
>
> pastebin .com/LvqK8NY3

This is no longer available.

To be clear, you are having issues deploying an agent that runs the fleet-server, correct?

Do you have any proxies deployed? Can you confirm that the instance you are attempting to install fleet-server on can reach the Elasticsearch URL?

Also, are the typos in the 1st command you added intended? for instance

```auto
--fleet-server-es=bttps://elk-01.myserver.com:9200/)

```

There is an extra parenthesis at the end, and the schema is incorrect

---

<div class="post-metadata">

**Author:** ![hitmany](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hitmany/32/132436_2.png) [@hitmany](https://discuss.elastic.co/u/hitmany)\
**Post date:** [March 13, 2024, 10:18am UTC](https://discuss.elastic.co/t/clear-elk-installation-cant-add-fleet-server-8-12/354944/3 "2024-03-13T10:18:44Z")

</div>

> [@MichelLaterman](#):
>
> There is an extra parenthesis at the end, and the schema is incorrect

I used the https scheme. I wrote bttps in the message because the forum blocks links.

Do you still need the result of executing:

/api/fleet/package\_policies/ad39463f-5cc0-4868-aba5-cb106318bb19

And yes, it's my first setup and fleet server running on agent

I able to get results from elasticsearch server where fleet server hosting, but I must specify CA certificate location.

No proxies used

---

<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:** [April 10, 2024, 10:18am UTC](https://discuss.elastic.co/t/clear-elk-installation-cant-add-fleet-server-8-12/354944/4 "2024-04-10T10:18:49Z")

</div>

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