# Fleet Server installation issue

**URL:** https://discuss.elastic.co/t/fleet-server-installation-issue/287741
**Category:** Beats
**Tags:** fleet
**Created:** [October 27, 2021, 12:38am UTC](https://discuss.elastic.co/t/fleet-server-installation-issue/287741 "2021-10-27T00:38:09Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dmitryyankowski](https://avatars.discourse-cdn.com/v4/letter/d/c77e96/32.png) [@dmitryyankowski](https://discuss.elastic.co/u/dmitryyankowski)
#### Post date: [October 27, 2021, 12:38am UTC](https://discuss.elastic.co/t/fleet-server-installation-issue/287741/1 "2021-10-27T00:38:09Z")

</div>

**Note** : OS is Ubuntu 20.04 and running Elastic Agent v7.15.1

I'm trying to setup a Fleet Server on my server and Elastic-Agent doesn't seem to be respecting the option for specifying my Fleet Server URL endpoint via the Kibana UI? For example, please see the screenshots and command below:

1. I try to start Fleet with the following command:

```auto
sudo ./elastic-agent install -f --fleet-server-es=http://localhost:9200 --fleet-server-service-token=<hidden> --fleet-server-policy=<hidden> --insecure

```

And get the following output:

```auto
2021-10-26T20:29:22.075-0400 INFO cmd/enroll_cmd.go:372 Generating self-signed certificate for Fleet Server
2021-10-26T20:29:28.088-0400 INFO cmd/enroll_cmd.go:724 Fleet Server - Starting
2021-10-26T20:29:30.091-0400 INFO cmd/enroll_cmd.go:705 Fleet Server - Running on policy with Fleet Server integration: <hidden>; missing config fleet.agent.id (expected during bootstrap process)
2021-10-26T20:29:30.092-0400 WARN [tls] tlscommon/tls_config.go:98 SSL/TLS verifications disabled.
2021-10-26T20:29:30.178-0400 INFO cmd/enroll_cmd.go:432 Starting enrollment to URL: https://elastic:8220/
2021-10-26T20:29:30.282-0400 WARN [tls] tlscommon/tls_config.go:98 SSL/TLS verifications disabled.
2021-10-26T20:29:31.022-0400 INFO cmd/enroll_cmd.go:247 Successfully triggered restart on running Elastic Agent.
Successfully enrolled the Elastic Agent.
Elastic Agent has been successfully installed.

```

As you can see in the above output, it says:

```auto
Starting enrollment to URL: https://elastic:8220/

```

I literally can't find any references of this saved in either the Kibana UI or in my files.

In the Kibana Logs I see:

```auto

[elastic_agent][error] Could not communicate with fleet-server Checking API will retry, error: fail to checkin to fleet-server: Post "https://elastic:8220/api/fleet/agents/<hidden>/checkin?": dial tcp <hidden>:8220: connect: connection refused

```

Here's my Fleet Server config in the Kibana UI:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/2/32322e9ea12eb16ff6d6562b118b93e4c511412f.png)

Can anyone assist me as to where the heck Elastic Agent is pulling this URL/Port from, and why my custom value `Fleet Server host` in the Kibana UI is not working? ☹

**Note** : I've also tried uninstall `elastic-agent` completely as well.

Any help would be appreciated!!!!

**tldr** : Elastic Agent is outputing "Starting enrollment to URL: [https://elastic:8220/](https://elastic:8220/)" when i've set my Fleet Server URL to "[https://elastic:3001](https://elastic:3001)" in the Kibana UI which causes the Fleet Server to crash subsequently.

---

<div class="post-metadata">

### Author: ![nchaulet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nchaulet/32/77896_2.png) [@nchaulet](https://discuss.elastic.co/u/nchaulet)
#### Post date: [November 11, 2021, 5:34pm UTC](https://discuss.elastic.co/t/fleet-server-installation-issue/287741/2 "2021-11-11T17:34:50Z")

</div>

Hi @dmitryyankowski

Did you change the port in the default fleet server policy -\> fleet server integration too? otherwise fleet server will start by default on port 8220

---

<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: [December 9, 2021, 7:35pm UTC](https://discuss.elastic.co/t/fleet-server-installation-issue/287741/3 "2021-12-09T19:35:16Z")

</div>

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