# Elastic Agent / Endpoint no longer can connect to fleet server

**URL:** <https://discuss.elastic.co/t/elastic-agent-endpoint-no-longer-can-connect-to-fleet-server/316702>\
**Category:** Elastic Agent\
**Created:** [October 16, 2022, 4:18am UTC](https://discuss.elastic.co/t/elastic-agent-endpoint-no-longer-can-connect-to-fleet-server/316702 "2022-10-16T04:18:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ting\_sf](https://avatars.discourse-cdn.com/v4/letter/t/da6949/32.png) [@Ting\_sf](https://discuss.elastic.co/u/Ting_sf)\
**Post date:** [October 16, 2022, 4:18am UTC](https://discuss.elastic.co/t/elastic-agent-endpoint-no-longer-can-connect-to-fleet-server/316702/1 "2022-10-16T04:18:03Z")

</div>

I had elastic agent / end point installed on about 10 computers, they were working for pass months, I just noted today that all pcs are showing offline status, and I check logs, all show following error:

[elastic\_agent][error] Could not communicate with fleet-server Checking API will retry, error: fail to checkin to fleet-server: Post "[http://192.168.0.46:8220/api/fleet/agents/b449511d-27ff-4644-b2a2-bea4104574cf/checkin?](http://192.168.0.46:8220/api/fleet/agents/b449511d-27ff-4644-b2a2-bea4104574cf/checkin?)": dial tcp 192.168.0.46:8220: connectex: No connection could be made because the target machine actively refused it.

wondering someone could offer me some troubleshooting idea. I did not change anything at my elastic server (I am using single node), no sure where to start.

thanks in advance.

---

<div class="post-metadata">

**Author:** ![Ting\_sf](https://avatars.discourse-cdn.com/v4/letter/t/da6949/32.png) [@Ting\_sf](https://discuss.elastic.co/u/Ting_sf)\
**Post date:** [October 17, 2022, 8:07pm UTC](https://discuss.elastic.co/t/elastic-agent-endpoint-no-longer-can-connect-to-fleet-server/316702/2 "2022-10-17T20:07:44Z")

</div>

Hi, All;

I resolved it today. By some reason, the elastic-agent is not running on fleet server (even though I reboot the machine, still come back not restart), I have to do "sudo service elastic-agent restart" to start the service, then communication is back.

I was not see this coming, I thought all services are auto start at reboot. What I think what happened is that elasticsearch takes long time to restart, and some of other service got time out to restart (just what I think, not sure)

Anyway, it is resolved.

---

<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 14, 2022, 8:07pm UTC](https://discuss.elastic.co/t/elastic-agent-endpoint-no-longer-can-connect-to-fleet-server/316702/3 "2022-11-14T20:07:47Z")

</div>

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