# Fleet-server can not running, "only 1 fleet-server input can be defined accessing config" occur in the log files

**URL:** https://discuss.elastic.co/t/fleet-server-can-not-running-only-1-fleet-server-input-can-be-defined-accessing-config-occur-in-the-log-files/325951
**Category:** Beats
**Tags:** docker, fleet
**Created:** [February 20, 2023, 10:10am UTC](https://discuss.elastic.co/t/fleet-server-can-not-running-only-1-fleet-server-input-can-be-defined-accessing-config-occur-in-the-log-files/325951 "2023-02-20T10:10:31Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![hds1989824](https://avatars.discourse-cdn.com/v4/letter/h/9dc877/32.png) [@hds1989824](https://discuss.elastic.co/u/hds1989824)
#### Post date: [February 20, 2023, 10:10am UTC](https://discuss.elastic.co/t/fleet-server-can-not-running-only-1-fleet-server-input-can-be-defined-accessing-config-occur-in-the-log-files/325951/1 "2023-02-20T10:10:31Z")

</div>

first, my elk server version is 7.17.7,and deploy by docker ,such as logstach,kibana,elasticsearch,server ip is 10.30.25.223 。port forward has added to the firewall (sonicwall), 10.30.25.223: 5601，10.30.25.223:9200，10.30.25.231:8220 ，so i can add a test server and monitoring his logs.  
today ,i am using this command below install fleet-server on an centos 7.5（10.30.25.231） 。

> sudo ./elastic-agent install  
> --fleet-server-es=[http://public:9200](http://public:9200)  
> --fleet-server-service-token=AAEAAWVsYXN0aWMvZmxlZXQtc2VydmVyL3Rva2VuLTE2NzY4ODUxNzQxNjg6M0JvUE9GT1hUaUNxMUlTZ1pOdUotdw  
> --fleet-server-policy=6cf07a90-8b4f-11ed-827f-f961fecd5cfd  
> --fleet-server-insecure-http

and it shows :  
Successfully enrolled the Elastic Agent.  
Elastic Agent has been successfully installed.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/0/c076e4b4f537f4a6826156b9eb71834e7270b7eb.png)  
😢 but unfortunately

cd /opt/Elastic/Agent/data/elastic-agent-2b200b/logs/default  
tail -f fleet-server-json.log  
{"log.level":"info","service.name":"fleet-server","@timestamp":"2023-02-20T09:43:15.383Z","message":"starting communication connection back to Elastic Agent"}  
{"log.level":"info","service.name":"fleet-server","@timestamp":"2023-02-20T09:43:15.384Z","message":"waiting for Elastic Agent to send initial configuration"}  
{"log.level":"error","service.name":"fleet-server","error.message":"only 1 fleet-server input can be defined accessing config","@timestamp":"2023-02-20T09:43:15

i have search this error by bing and google , but find nothing . 😢

---

<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: [February 20, 2023, 3:03pm UTC](https://discuss.elastic.co/t/fleet-server-can-not-running-only-1-fleet-server-input-can-be-defined-accessing-config-occur-in-the-log-files/325951/2 "2023-02-20T15:03:03Z")

</div>

Hi @hds1989824

It seems to me that somehow your Fleet server agent policy contains more than one fleet server integration, can you try to delete it and recreate a new one?

---

<div class="post-metadata">

### Author: ![hds1989824](https://avatars.discourse-cdn.com/v4/letter/h/9dc877/32.png) [@hds1989824](https://discuss.elastic.co/u/hds1989824)
#### Post date: [February 21, 2023, 1:56am UTC](https://discuss.elastic.co/t/fleet-server-can-not-running-only-1-fleet-server-input-can-be-defined-accessing-config-occur-in-the-log-files/325951/3 "2023-02-21T01:56:10Z")

</div>

yes，you are right。  
after delete other fleet-server config，and install one more time. it works!  
thanks very much!  
😃

---

<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: [March 21, 2023, 3:56am UTC](https://discuss.elastic.co/t/fleet-server-can-not-running-only-1-fleet-server-input-can-be-defined-accessing-config-occur-in-the-log-files/325951/4 "2023-03-21T03:56:24Z")

</div>

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