# Elastic endpoint Could not communicate with Checking API will retry

**URL:** <https://discuss.elastic.co/t/elastic-endpoint-could-not-communicate-with-checking-api-will-retry/251303>\
**Category:** Endpoint Security\
**Created:** [October 7, 2020, 3:58pm UTC](https://discuss.elastic.co/t/elastic-endpoint-could-not-communicate-with-checking-api-will-retry/251303 "2020-10-07T15:58:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheHunter1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thehunter1/32/80190_2.png) [@TheHunter1](https://discuss.elastic.co/u/TheHunter1)\
**Post date:** [October 7, 2020, 3:58pm UTC](https://discuss.elastic.co/t/elastic-endpoint-could-not-communicate-with-checking-api-will-retry/251303/1 "2020-10-07T15:58:03Z")

</div>

Hello everybody,

I am trying elastic endpoint from code source and I am getting this error:

```auto
Could not communicate with Checking API will retry, error: fail to checkin to fleet: Post "https://@IP_KIBANA:5601/api/ingest_manager/fleet/agents/ **enrollement_key** /checkin?": net/http: request canceled (Client.Timeout exceeded while awaiting headers)

```

I tried it on windows and Linux and have the same issue  
To configure it I run the below commands:

for windows:

```auto
.\elastic-agent enroll --certificate-authorities ca.crt https://@ip_KIBANA:5601 @enrollment token
.\install-service-elastic-agent.ps1

```

and for linux:

```auto
elastic-agent enroll --certificate-authorities ca.crt https://@ip_KIBANA:5601 @enrollment token
systemctl enable elastic-agent
systemctl start elastic-agent

```

I am using elasticsearch and kibana 8.0.0

---

<div class="post-metadata">

**Author:** ![mikemitchell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mikemitchell/32/45160_2.png) [@mikemitchell](https://discuss.elastic.co/u/mikemitchell)\
**Post date:** [October 8, 2020, 3:02pm UTC](https://discuss.elastic.co/t/elastic-endpoint-could-not-communicate-with-checking-api-will-retry/251303/2 "2020-10-08T15:02:44Z")

</div>

Im also dealing with the same issue. I can communicate initially but eventually the check command fails and shutdown the elastic agent.

---

<div class="post-metadata">

**Author:** ![TheHunter1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thehunter1/32/80190_2.png) [@TheHunter1](https://discuss.elastic.co/u/TheHunter1)\
**Post date:** [October 8, 2020, 3:08pm UTC](https://discuss.elastic.co/t/elastic-endpoint-could-not-communicate-with-checking-api-will-retry/251303/3 "2020-10-08T15:08:45Z")

</div>

hello @mikemitchell,

For me I found the issue, it was my bad cause I was trying it in a VM and it the network adapter was configured in **bridge mode**  
if it's not the case for you, make sure that your firewall doesn't block your packets

Best regards

---

<div class="post-metadata">

**Author:** ![mikemitchell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mikemitchell/32/45160_2.png) [@mikemitchell](https://discuss.elastic.co/u/mikemitchell)\
**Post date:** [October 12, 2020, 2:25pm UTC](https://discuss.elastic.co/t/elastic-endpoint-could-not-communicate-with-checking-api-will-retry/251303/4 "2020-10-12T14:25:43Z")

</div>

@TheHunter1

Thanks for the response.

On my side, the initial connections are succesfully but over time the checkin endpoint fails and stops the services. When I curl the checkin service on the Kibana Fleet endpoint, I get a response stating the service is not found.

---

<div class="post-metadata">

**Author:** ![TheHunter1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thehunter1/32/80190_2.png) [@TheHunter1](https://discuss.elastic.co/u/TheHunter1)\
**Post date:** [October 15, 2020, 7:04am UTC](https://discuss.elastic.co/t/elastic-endpoint-could-not-communicate-with-checking-api-will-retry/251303/5 "2020-10-15T07:04:06Z")

</div>

I had once the same issue, but even with chekin problems it works for me, after I enrolled the agent I had just to restart the windows machine and then I began receiving endpoint data

---

<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:** [November 12, 2020, 7:04am UTC](https://discuss.elastic.co/t/elastic-endpoint-could-not-communicate-with-checking-api-will-retry/251303/6 "2020-11-12T07:04:25Z")

</div>

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