# Help with Fleet setup

**URL:** <https://discuss.elastic.co/t/help-with-fleet-setup/299759>\
**Category:** Beats\
**Tags:** fleet\
**Created:** [March 15, 2022, 3:58pm UTC](https://discuss.elastic.co/t/help-with-fleet-setup/299759 "2022-03-15T15:58:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigdamhero](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bigdamhero/32/34478_2.png) [@bigdamhero](https://discuss.elastic.co/u/bigdamhero)\
**Post date:** [March 15, 2022, 3:58pm UTC](https://discuss.elastic.co/t/help-with-fleet-setup/299759/1 "2022-03-15T15:58:34Z")

</div>

I got a fleet server to connect to my sandbox cluster to test and setup this framework. I am trying to get an agent to connect with my fleet server. I am trying to just get the quickstart going so useing the --insecure flag.

Fleet and agent running on Ubuntu.

Using the command from agent box of : sudo elastic-agent enroll --url=http://fqdn:8220 --enrollment-token=token --insecure

the command runs and I get a repeated:  
`{"log.level":"info","@timestamp":"2022-03-15T10:35:37.185-0500","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":474},"message":"Retrying enrollment to URL: http://fqdn of fleet server:8220/","ecs.version":"1.6.0"}`

Any help or assistance. Is there a way to ping the endpoint to see if its listening?

---

<div class="post-metadata">

**Author:** ![bigdamhero](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bigdamhero/32/34478_2.png) [@bigdamhero](https://discuss.elastic.co/u/bigdamhero)\
**Post date:** [March 15, 2022, 6:01pm UTC](https://discuss.elastic.co/t/help-with-fleet-setup/299759/2 "2022-03-15T18:01:34Z")

</div>

here is the pertinent part.

`"Remote server is not ready to accept connections, will retry in a moment.","ecs.version":"1.6.0"}`

---

<div class="post-metadata">

**Author:** ![zx8086](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zx8086/32/94917_2.png) [@zx8086](https://discuss.elastic.co/u/zx8086)\
**Post date:** [March 15, 2022, 9:01pm UTC](https://discuss.elastic.co/t/help-with-fleet-setup/299759/3 "2022-03-15T21:01:17Z")

</div>

Have you tried troubleshooting the url to see if you gat a healthy status from the fleet api ?

---

<div class="post-metadata">

**Author:** ![bigdamhero](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bigdamhero/32/34478_2.png) [@bigdamhero](https://discuss.elastic.co/u/bigdamhero)\
**Post date:** [March 16, 2022, 4:55pm UTC](https://discuss.elastic.co/t/help-with-fleet-setup/299759/4 "2022-03-16T16:55:22Z")

</div>

I actually found that the fleet server was not listening on the correct port. I had to enable the port and problem solved.

---

<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 13, 2022, 6:55pm UTC](https://discuss.elastic.co/t/help-with-fleet-setup/299759/5 "2022-04-13T18:55:54Z")

</div>

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