# Fail to enroll: fail to execute request to Kibana: Status code: 404, Kibana returned an error: Not Found, message: Not Found

**URL:** <https://discuss.elastic.co/t/fail-to-enroll-fail-to-execute-request-to-kibana-status-code-404-kibana-returned-an-error-not-found-message-not-found/278720>\
**Category:** Kibana\
**Tags:** elastic-stack-security, fleet\
**Created:** [July 14, 2021, 9:20pm UTC](https://discuss.elastic.co/t/fail-to-enroll-fail-to-execute-request-to-kibana-status-code-404-kibana-returned-an-error-not-found-message-not-found/278720 "2021-07-14T21:20:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![RaonyO](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@RaonyO](https://discuss.elastic.co/u/RaonyO)\
**Post date:** [July 14, 2021, 9:20pm UTC](https://discuss.elastic.co/t/fail-to-enroll-fail-to-execute-request-to-kibana-status-code-404-kibana-returned-an-error-not-found-message-not-found/278720/1 "2021-07-14T21:20:46Z")

</div>

when i execute

> " .\elastic-agent.exe install -f --url=[https://xx.xx.xxx.xxx:5601](https://xx.xx.xxx.xxx:5601) --enrollment-token=Q0REZW9Ib...== --insecure"

this message appears

> 2021-07-14T18:47:12.757-0300 DEBUG kibana/client.go:170 Request method: POST, path: /api/ingest\_manager/fleet/agents/enroll  
> 2021-07-14T18:47:12.775-0300 WARN [tls] tlscommon/tls\_config.go:83 SSL/TLS verifications disabled.  
> fail to enroll: fail to execute request to Kibana: Status code: 404, Kibana returned an error: Not Found, message: Not Found

I'm having this error when trying to connect a windows agent to the fleet server, can someone help?

---

<div class="post-metadata">

**Author:** ![blaker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/blaker/32/65621_2.png) [@blaker](https://discuss.elastic.co/u/blaker)\
**Post date:** [July 19, 2021, 3:13pm UTC](https://discuss.elastic.co/t/fail-to-enroll-fail-to-execute-request-to-kibana-status-code-404-kibana-returned-an-error-not-found-message-not-found/278720/2 "2021-07-19T15:13:44Z")

</div>

What version of Elastic Agent are you running?

---

<div class="post-metadata">

**Author:** ![RaonyO](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@RaonyO](https://discuss.elastic.co/u/RaonyO)\
**Post date:** [July 20, 2021, 12:06pm UTC](https://discuss.elastic.co/t/fail-to-enroll-fail-to-execute-request-to-kibana-status-code-404-kibana-returned-an-error-not-found-message-not-found/278720/3 "2021-07-20T12:06:11Z")

</div>

7.13.3

---

<div class="post-metadata">

**Author:** ![blaker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/blaker/32/65621_2.png) [@blaker](https://discuss.elastic.co/u/blaker)\
**Post date:** [July 21, 2021, 2:08pm UTC](https://discuss.elastic.co/t/fail-to-enroll-fail-to-execute-request-to-kibana-status-code-404-kibana-returned-an-error-not-found-message-not-found/278720/4 "2021-07-21T14:08:04Z")

</div>

So the issue seems that you are using Kibana to enroll your Elastic Agent. This changed in 7.13 to use a new component called Fleet Server. See the release notes here for 7.13:

> **[Fleet and Elastic Agent 7.13.0 | Fleet User Guide \[7.13\] | Elastic](https://www.elastic.co/guide/en/fleet/current/release-notes-7.13.0.html)**

---

<div class="post-metadata">

**Author:** ![RaonyO](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@RaonyO](https://discuss.elastic.co/u/RaonyO)\
**Post date:** [July 21, 2021, 3:05pm UTC](https://discuss.elastic.co/t/fail-to-enroll-fail-to-execute-request-to-kibana-status-code-404-kibana-returned-an-error-not-found-message-not-found/278720/5 "2021-07-21T15:05:51Z")

</div>

thanks for the answer!, i tried to install by fleet server on windows and the following error is displayed:

```auto
.\elastic-agent.exe install -f --url=https://xx.xx.xxx.160:5601 --enrollment-token=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXcnhrdw== --insecure
The Elastic Agent is currently in BETA and should not be used in production

2021-07-21T12:02:23.757-0300 WARN [tls] tlscommon/tls_config.go:98 SSL/TLS verifications disabled.
Error: fail to enroll: fail to execute request to fleet-server: status code: 404, fleet-server returned an error: Not Found, message: Not Found
Error: enroll command failed with exit code: 1
PS C:\Users\xxxx\Downloads\elastic-agent-7.13.4-windows-x86_64\elastic-agent-7.13.4-windows-x86_64>

```

ps: I tried to install on linux (on the ELK server itself) and it worked, the agent was detected by the fleet server

---

<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:** [August 18, 2021, 3:06pm UTC](https://discuss.elastic.co/t/fail-to-enroll-fail-to-execute-request-to-kibana-status-code-404-kibana-returned-an-error-not-found-message-not-found/278720/6 "2021-08-18T15:06:26Z")

</div>

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