# Adding Kibana, Fleet, Ingest node to cluster

**URL:** <https://discuss.elastic.co/t/adding-kibana-fleet-ingest-node-to-cluster/311958>\
**Category:** Elasticsearch\
**Tags:** fleet, elastic-agent\
**Created:** [August 11, 2022, 5:51pm UTC](https://discuss.elastic.co/t/adding-kibana-fleet-ingest-node-to-cluster/311958 "2022-08-11T17:51:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BRosenberg](https://avatars.discourse-cdn.com/v4/letter/b/df705f/32.png) [@BRosenberg](https://discuss.elastic.co/u/BRosenberg)\
**Post date:** [August 11, 2022, 5:51pm UTC](https://discuss.elastic.co/t/adding-kibana-fleet-ingest-node-to-cluster/311958/1 "2022-08-11T17:51:39Z")

</div>

Hello. I'm attempting to add a 4th node to my cluster.

Nodes:  
[elastic-node-01] [elastic-79] [elastic-180] Roles: master, data  
[kibana-primary] Roles: ingest, ml, remote\_cluster\_client, transform

I'm trying to install and add Fleet to the [kibana-primary] node using the Kibana web interface, however when I go to install the elastic-agent on the node, it errors out and does not install the elastic-agent. The only output from the install process is:

```auto
Elastic Agent will be installed at /opt/Elastic/Agent and will run as a service. Do you want to continue? [Y/n]:y
{"log.level":"info","@timestamp":"2022-08-11T16:49:41.589Z","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":403},"message":"Generating self-signed certificate for Fleet Server","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2022-08-11T16:49:45.270Z","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":792},"message":"Fleet Server - Waiting on fleet-server input to be added to policy: fleet-server-policy","ecs.version":"1.6.0"}
Error: fleet-server failed: context canceled
For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/8.3/fleet-troubleshooting.html
Error: enroll command failed with exit code: 1
For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/8.3/fleet-troubleshooting.html

```

Following the troubleshooting page I tried installing the elastic-agent alone `./elastic-agent install -f`, so that logging could occur, and then ran `elastic-agent enroll -f -v --fleet-server-es=https://[IP ADDRESS OF elastic-node-01]:9200 --fleet-server-service-token=AAEAAWVsYXN0aWMvZmxlZXQtc2VydmVyL3Rva2VuLTE2NjAyMzY0MDE3MjQ6MlZncHVUWnRSWFN6TUU3bE0wWVFLUQ --fleet-server-policy=fleet-server-policy --fleet-server-es-ca-trusted-fingerprint=07c89e04b0272a81382a73f0e5ab651e731bd1fad27349cc55948830ec2c0479`

Logs:

```auto
Aug 11 17:04:10 kibana-primary elastic-agent[23454]: {"log.level":"info","@timestamp":"2022-08-11T17:04:10.308Z","log.origin":{"file.name":"operation/operator.go","file.line":222},"message":"waiting for installer of pipeline 'default' to finish","ecs.version":"1.6.0"}
Aug 11 17:04:10 kibana-primary elastic-agent[23454]: {"log.level":"info","@timestamp":"2022-08-11T17:04:10.309Z","log.origin":{"file.name":"process/app.go","file.line":182},"message":"Signaling application to stop because of shutdown: metricbeat--8.3.3--36643631373035623733363936343635","ecs.version":"1.6.0"}
Aug 11 17:04:10 kibana-primary elastic-agent[23454]: {"log.level":"info","@timestamp":"2022-08-11T17:04:10.310Z","log.origin":{"file.name":"process/app.go","file.line":182},"message":"Signaling application to stop because of shutdown: metricbeat--8.3.3","ecs.version":"1.6.0"}
Aug 11 17:04:10 kibana-primary elastic-agent[23454]: {"log.level":"info","@timestamp":"2022-08-11T17:04:10.310Z","log.origin":{"file.name":"process/app.go","file.line":182},"message":"Signaling application to stop because of shutdown: filebeat--8.3.3--36643631373035623733363936343635","ecs.version":"1.6.0"}
Aug 11 17:04:10 kibana-primary elastic-agent[23454]: {"log.level":"error","@timestamp":"2022-08-11T17:04:10.813Z","log.origin":{"file.name":"process/stdlogger.go","file.line":54},"message":"filebeat_monitoring stderr: "panic: close of closed channel

goroutine 104 [running]:
"","agent.console.name":"filebeat_monitoring","agent.console.type":"stderr","ecs.version":"1.6.0"}
Aug 11 17:04:10 kibana-primary elastic-agent[23454]: {"log.level":"error","@timestamp":"2022-08-11T17:04:10.813Z","log.origin":{"file.name":"process/stdlogger.go","file.line":54},"message":"filebeat_monitoring stderr: "github.com/elastic/beats/v7/filebeat/beater.(*Filebeat).Stop(0xc0007834a0)
	/go/src/github.com/elastic/beats/filebeat/beater/filebeat.go:428 +0x3f
github.com/elastic/beats/v7/libbeat/cmd/instance.(*Beat).launch.func5()
	/go/src/github.com/elastic/beats/libbeat/cmd/instance/beat.go:461 +0x55
sync.(*Once).doSlow(0x0?, 0x0?)
	/usr/local/go/src/sync/once.go:68 +0xc2
sync.(*Once).Do(...)
	/usr/local/go/src/sync/once.go:59
github.com/elastic/elastic-agent-libs/service.HandleSignals.func1()
	/go/pkg/mod/github.com/elastic/elastic-agent-libs@v0.2.9/service/service.go:60 +0x19c
created by github.com/elastic/elastic-agent-libs/service.HandleSignals
	/go/pkg/mod/github.com/elastic/elastic-agent-libs@v0.2.9/service/service.go:49 +0x18f
"","agent.console.name":"filebeat_monitoring","agent.console.type":"stderr","ecs.version":"1.6.0"}
Aug 11 17:04:10 kibana-primary elastic-agent[23454]: {"log.level":"error","@timestamp":"2022-08-11T17:04:10.833Z","log.origin":{"file.name":"process/stdlogger.go","file.line":54},"message":"metricbeat stderr: "panic: close of closed channel

goroutine 106 [running]:
github.com/elastic/beats/v7/metricbeat/beater.(*Metricbeat).Stop(0xc000424180?)
	/go/src/github.com/elastic/beats/metricbeat/beater/metricbeat.go:276 +0x1c
github.com/elastic/beats/v7/libbeat/cmd/instance.(*Beat).launch.func5()
	/go/src/github.com/elastic/beats/libbeat/cmd/instance/beat.go:461 +0x55
sync.(*Once).doSlow(0x0?, 0x0?)
	/usr/local/go/src/sync/once.go:68 +0xc2
sync.(*Once).Do(...)
	/usr/local/go/src/sync/once.go:59
github.com/elastic/elastic-agent-libs/service.HandleSignals.func1()
	/go/pkg/mod/github.com/elastic/elastic-agent-libs@v0.2.9/service/service.go:60 +0x19c
created by github.com/elastic/elastic-agent-libs/service.HandleSignals
	/go/pkg/mod/github.com/elastic/elastic-agent-libs@v0.2.9/service/service.go:49 +0x18f
"","agent.console.name":"metricbeat","agent.console.type":"stderr","ecs.version":"1.6.0"}
Aug 11 17:04:10 kibana-primary elastic-agent[23454]: {"log.level":"error","@timestamp":"2022-08-11T17:04:10.833Z","log.origin":{"file.name":"process/stdlogger.go","file.line":54},"message":"metricbeat_monitoring stderr: "panic: close of closed channel

goroutine 2091 [running]:
github.com/elastic/beats/v7/metricbeat/beater.(*Metricbeat).Stop(0xc000244a80?)
	/go/src/github.com/elastic/beats/metricbeat/beater/metricbeat.go:276 +0x1c
github.com/elastic/beats/v7/libbeat/cmd/instance.(*Beat).launch.func5()
	/go/src/github.com/elastic/beats/libbeat/cmd/instance/beat.go:461 +0x55
sync.(*Once).doSlow(0x0?, 0x0?)
	/usr/local/go/src/sync/once.go:68 +0xc2
sync.(*Once).Do(...)
	/usr/local/go/src/sync/once.go:59
github.com/elastic/elastic-agent-libs/service.HandleSignals.func1()
	/go/pkg/mod/github.com/elastic/elastic-agent-libs@v0.2.9/service/service.go:60 +0x19c
created by github.com/elastic/elastic-agent-libs/service.HandleSignals
	/go/pkg/mod/github.com/elastic/elastic-agent-libs@v0.2.9/service/service.go:49 +0x18f
"","agent.console.name":"metricbeat_monitoring","agent.console.type":"stderr","ecs.version":"1.6.0"}
Aug 11 17:04:10 kibana-primary elastic-agent[23454]: {"log.level":"info","@timestamp":"2022-08-11T17:04:10.842Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2022-08-11T17:04:10Z - message: Application: metricbeat--8.3.3--36643631373035623733363936343635[81dd967a-0dea-4eab-ab3f-f0e7066994af]: State changed to STOPPED: Stopped - type: 'STATE' - sub_type: 'STOPPED'","ecs.version":"1.6.0"}
Aug 11 17:04:11 kibana-primary elastic-agent[23454]: {"log.level":"info","@timestamp":"2022-08-11T17:04:11.822Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2022-08-11T17:04:11Z - message: Application: filebeat--8.3.3--36643631373035623733363936343635[81dd967a-0dea-4eab-ab3f-f0e7066994af]: State changed to STOPPED: Stopped - type: 'STATE' - sub_type: 'STOPPED'","ecs.version":"1.6.0"}
Aug 11 17:04:11 kibana-primary elastic-agent[23454]: {"log.level":"info","@timestamp":"2022-08-11T17:04:11.843Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2022-08-11T17:04:11Z - message: Application: metricbeat--8.3.3[81dd967a-0dea-4eab-ab3f-f0e7066994af]: State changed to STOPPED: Stopped - type: 'STATE' - sub_type: 'STOPPED'","ecs.version":"1.6.0"}

```

At this point I'm not sure where else to check for errors. The cluster itself reports that it's healthy. And there don't appear to be security/certificate errors during the enroll.

Any advice on how to proceed would be appreciated.

---

<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:** [September 8, 2022, 5:52pm UTC](https://discuss.elastic.co/t/adding-kibana-fleet-ingest-node-to-cluster/311958/2 "2022-09-08T17:52:03Z")

</div>

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