Cannot add a Fleet server

Hi All,

I am using Elastic Security feature for some time using beats applications to collect logs from the endpoints. Recently I tried to check the Elastic Agent feature and I encountered following issues when I tried to add Fleet server.

  1. I cannot see already available two agent policies in the Kibana, under Fleet>Agent>Select Agent Policy. when I click drop down, nothing appears there.

image

Available policies are as below.

  1. Since I cannot assign a policy from Kibana, I manually entered the policy ID with the enroll command. But I cannot add the Fleet server and process stops with following error.
State changed to FAILED: Error - assigned policy does not have fleet-server input - type: 'ERROR' - sub_type: 'FAILED'

The complete logs associate with the starting Fleet server is as below,

[root@localhost kibana] sudo elastic-agent enroll --url=https://IP:8220  -f  --fleet-server-es=https://ESIP:9200  --fleet-server-service-token=Token   --certificate-authorities=/etc/kibana/ca.crt   --fleet-server-es-ca=/etc/kibana/elasticsearch-ca.pem   --fleet-server-cert=/etc/kibana/fleet.crt   --fleet-server-cert-key=/etc/kibana/fleet.key --fleet-server-policy=39f7ae10-2746-11ec-ad7a-d9be8782438c
2022-01-28T13:51:00.454+0530	INFO	cmd/enroll_cmd.go:543	Spawning Elastic Agent daemon as a subprocess to complete bootstrap process.
2022-01-28T13:51:00.682+0530	INFO	application/application.go:67	Detecting execution mode
2022-01-28T13:51:00.685+0530	INFO	application/application.go:88	Agent is in Fleet Server bootstrap mode
2022-01-28T13:51:01.317+0530	INFO	[api]	api/server.go:62	Starting stats endpoint
2022-01-28T13:51:01.317+0530	INFO	application/fleet_server_bootstrap.go:130	Agent is starting
2022-01-28T13:51:01.319+0530	INFO	[api]	api/server.go:64	Metrics endpoint listening on: /var/lib/elastic-agent/data/tmp/elastic-agent.sock (configured: unix:///var/lib/elastic-agent/data/tmp/elastic-agent.sock)
2022-01-28T13:51:01.319+0530	INFO	application/fleet_server_bootstrap.go:140	Agent is stopped
2022-01-28T13:51:01.322+0530	INFO	stateresolver/stateresolver.go:48	New State ID is qWAz5xqA
2022-01-28T13:51:01.322+0530	INFO	stateresolver/stateresolver.go:49	Converging state requires execution of 1 step(s)
2022-01-28T13:51:01.386+0530	INFO	operation/operator.go:269	operation 'operation-install' skipped for fleet-server.7.15.0
2022-01-28T13:51:01.679+0530	INFO	log/reporter.go:40	2022-01-28T13:51:01+05:30 - message: Application: fleet-server--7.15.0[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-01-28T13:51:01.680+0530	INFO	stateresolver/stateresolver.go:66	Updating internal state
2022-01-28T13:51:02.532+0530	INFO	cmd/enroll_cmd.go:724	Fleet Server - Starting
2022-01-28T13:51:02.711+0530	ERROR	status/reporter.go:236	Elastic Agent status changed to: 'error'
2022-01-28T13:51:02.711+0530	ERROR	log/reporter.go:36	2022-01-28T13:51:02+05:30 - message: Application: fleet-server--7.15.0[]: State changed to FAILED: Error - assigned policy does not have fleet-server input - type: 'ERROR' - sub_type: 'FAILED'
2022-01-28T13:51:03.549+0530	INFO	cmd/enroll_cmd.go:724	Fleet Server - Error - assigned policy does not have fleet-server input
2022-01-28T13:51:04.714+0530	INFO	status/reporter.go:236	Elastic Agent status changed to: 'online'
2022-01-28T13:51:04.714+0530	INFO	log/reporter.go:40	2022-01-28T13:51:04+05:30 - message: Application: fleet-server--7.15.0[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-01-28T13:51:05.214+0530	ERROR	status/reporter.go:236	Elastic Agent status changed to: 'error'
2022-01-28T13:51:05.215+0530	ERROR	log/reporter.go:36	2022-01-28T13:51:05+05:30 - message: Application: fleet-server--7.15.0[]: State changed to FAILED: Error - assigned policy does not have fleet-server input - type: 'ERROR' - sub_type: 'FAILED'
2022-01-28T13:51:09.260+0530	INFO	status/reporter.go:236	Elastic Agent status changed to: 'online'
2022-01-28T13:51:09.260+0530	INFO	log/reporter.go:40	2022-01-28T13:51:09+05:30 - message: Application: fleet-server--7.15.0[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-01-28T13:51:09.580+0530	INFO	cmd/enroll_cmd.go:724	Fleet Server - Starting
2022-01-28T13:51:09.770+0530	ERROR	status/reporter.go:236	Elastic Agent status changed to: 'error'
2022-01-28T13:51:09.771+0530	ERROR	log/reporter.go:36	2022-01-28T13:51:09+05:30 - message: Application: fleet-server--7.15.0[]: State changed to FAILED: Error - assigned policy does not have fleet-server input - type: 'ERROR' - sub_type: 'FAILED'
2022-01-28T13:51:10.583+0530	INFO	cmd/enroll_cmd.go:724	Fleet Server - Error - assigned policy does not have fleet-server input
2022-01-28T13:51:11.769+0530	INFO	status/reporter.go:236	Elastic Agent status changed to: 'online'
2022-01-28T13:51:11.769+0530	INFO	log/reporter.go:40	2022-01-28T13:51:11+05:30 - message: Application: fleet-server--7.15.0[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-01-28T13:51:12.274+0530	ERROR	status/reporter.go:236	Elastic Agent status changed to: 'error'
2022-01-28T13:51:12.274+0530	ERROR	log/reporter.go:36	2022-01-28T13:51:12+05:30 - message: Application: fleet-server--7.15.0[]: State changed to FAILED: Error - assigned policy does not have fleet-server input - type: 'ERROR' - sub_type: 'FAILED'
2022-01-28T13:51:16.300+0530	INFO	status/reporter.go:236	Elastic Agent status changed to: 'online'
2022-01-28T13:51:16.300+0530	INFO	log/reporter.go:40	2022-01-28T13:51:16+05:30 - message: Application: fleet-server--7.15.0[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-01-28T13:51:16.621+0530	INFO	cmd/enroll_cmd.go:724	Fleet Server - Starting
2022-01-28T13:51:16.800+0530	ERROR	status/reporter.go:236	Elastic Agent status changed to: 'error'
2022-01-28T13:51:16.800+0530	ERROR	log/reporter.go:36	2022-01-28T13:51:16+05:30 - message: Application: fleet-server--7.15.0[]: State changed to FAILED: Error - assigned policy does not have fleet-server input - type: 'ERROR' - sub_type: 'FAILED'
2022-01-28T13:51:17.632+0530	INFO	cmd/enroll_cmd.go:724	Fleet Server - Error - assigned policy does not have fleet-server input
2022-01-28T13:51:18.811+0530	INFO	status/reporter.go:236	Elastic Agent status changed to: 'online'
2022-01-28T13:51:18.811+0530	INFO	log/reporter.go:40	2022-01-28T13:51:18+05:30 - message: Application: fleet-server--7.15.0[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-01-28T13:51:19.311+0530	ERROR	status/reporter.go:236	Elastic Agent status changed to: 'error'
2022-01-28T13:51:19.312+0530	ERROR	log/reporter.go:36	2022-01-28T13:51:19+05:30 - message: Application: fleet-server--7.15.0[]: State changed to FAILED: Error - assigned policy does not have fleet-server input - type: 'ERROR' - sub_type: 'FAILED'
2022-01-28T13:51:23.329+0530	INFO	status/reporter.go:236	Elastic Agent status changed to: 'online'
2022-01-28T13:51:23.329+0530	INFO	log/reporter.go:40	2022-01-28T13:51:23+05:30 - message: Application: fleet-server--7.15.0[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-01-28T13:51:23.656+0530	INFO	cmd/enroll_cmd.go:724	Fleet Server - Starting
2022-01-28T13:51:23.830+0530	ERROR	status/reporter.go:236	Elastic Agent status changed to: 'error'
2022-01-28T13:51:23.830+0530	ERROR	log/reporter.go:36	2022-01-28T13:51:23+05:30 - message: Application: fleet-server--7.15.0[]: State changed to FAILED: Error - assigned policy does not have fleet-server input - type: 'ERROR' - sub_type: 'FAILED'
2022-01-28T13:51:24.666+0530	INFO	cmd/enroll_cmd.go:724	Fleet Server - Error - assigned policy does not have fleet-server input
2022-01-28T13:51:25.837+0530	INFO	status/reporter.go:236	Elastic Agent status changed to: 'online'
2022-01-28T13:51:25.838+0530	INFO	log/reporter.go:40	2022-01-28T13:51:25+05:30 - message: Application: fleet-server--7.15.0[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-01-28T13:51:26.339+0530	ERROR	status/reporter.go:236	Elastic Agent status changed to: 'error'
2022-01-28T13:51:26.339+0530	ERROR	log/reporter.go:36	2022-01-28T13:51:26+05:30 - message: Application: fleet-server--7.15.0[]: State changed to FAILED: Error - assigned policy does not have fleet-server input - type: 'ERROR' - sub_type: 'FAILED'
2022-01-28T13:51:30.358+0530	INFO	status/reporter.go:236	Elastic Agent status changed to: 'online'
2022-01-28T13:51:30.358+0530	INFO	log/reporter.go:40	2022-01-28T13:51:30+05:30 - message: Application: fleet-server--7.15.0[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-01-28T13:51:30.709+0530	INFO	cmd/enroll_cmd.go:724	Fleet Server - Starting
2022-01-28T13:51:30.858+0530	ERROR	status/reporter.go:236	Elastic Agent status changed to: 'error'
2022-01-28T13:51:30.858+0530	ERROR	log/reporter.go:36	2022-01-28T13:51:30+05:30 - message: Application: fleet-server--7.15.0[]: State changed to FAILED: Error - assigned policy does not have fleet-server input - type: 'ERROR' - sub_type: 'FAILED'
2022-01-28T13:51:31.711+0530	INFO	cmd/enroll_cmd.go:724	Fleet Server - Error - assigned policy does not have fleet-server input
2022-01-28T13:51:34.863+0530	INFO	status/reporter.go:236	Elastic Agent status changed to: 'online'
2022-01-28T13:51:34.863+0530	INFO	log/reporter.go:40	2022-01-28T13:51:34+05:30 - message: Application: fleet-server--7.15.0[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-01-28T13:51:35.364+0530	ERROR	status/reporter.go:236	Elastic Agent status changed to: 'error'
2022-01-28T13:51:35.364+0530	ERROR	log/reporter.go:36	2022-01-28T13:51:35+05:30 - message: Application: fleet-server--7.15.0[]: State changed to FAILED: Error - assigned policy does not have fleet-server input - type: 'ERROR' - sub_type: 'FAILED'
2022-01-28T13:51:37.366+0530	INFO	status/reporter.go:236	Elastic Agent status changed to: 'online'
2022-01-28T13:51:37.366+0530	INFO	log/reporter.go:40	2022-01-28T13:51:37+05:30 - message: Application: fleet-server--7.15.0[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-01-28T13:51:37.737+0530	INFO	cmd/enroll_cmd.go:724	Fleet Server - Starting
2022-01-28T13:51:37.870+0530	ERROR	status/reporter.go:236	Elastic Agent status changed to: 'error'
2022-01-28T13:51:37.870+0530	ERROR	log/reporter.go:36	2022-01-28T13:51:37+05:30 - message: Application: fleet-server--7.15.0[]: State changed to FAILED: Error - assigned policy does not have fleet-server input - type: 'ERROR' - sub_type: 'FAILED'
2022-01-28T13:51:38.741+0530	INFO	cmd/enroll_cmd.go:724	Fleet Server - Error - assigned policy does not have fleet-server input
2022-01-28T13:51:41.881+0530	INFO	status/reporter.go:236	Elastic Agent status changed to: 'online'
2022-01-28T13:51:41.881+0530	INFO	log/reporter.go:40	2022-01-28T13:51:41+05:30 - message: Application: fleet-server--7.15.0[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-01-28T13:51:42.382+0530	ERROR	status/reporter.go:236	Elastic Agent status changed to: 'error'
2022-01-28T13:51:42.382+0530	ERROR	log/reporter.go:36	2022-01-28T13:51:42+05:30 - message: Application: fleet-server--7.15.0[]: State changed to FAILED: Error - assigned policy does not have fleet-server input - type: 'ERROR' - sub_type: 'FAILED'
2022-01-28T13:51:44.766+0530	INFO	cmd/enroll_cmd.go:729	Fleet Server - Error - assigned policy does not have fleet-server input
2022-01-28T13:51:46.387+0530	INFO	status/reporter.go:236	Elastic Agent status changed to: 'online'
2022-01-28T13:51:46.387+0530	INFO	log/reporter.go:40	2022-01-28T13:51:46+05:30 - message: Application: fleet-server--7.15.0[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-01-28T13:51:46.770+0530	INFO	cmd/enroll_cmd.go:724	Fleet Server - Starting
2022-01-28T13:51:46.888+0530	ERROR	status/reporter.go:236	Elastic Agent status changed to: 'error'
2022-01-28T13:51:46.888+0530	ERROR	log/reporter.go:36	2022-01-28T13:51:46+05:30 - message: Application: fleet-server--7.15.0[]: State changed to FAILED: Error - assigned policy does not have fleet-server input - type: 'ERROR' - sub_type: 'FAILED'
2022-01-28T13:51:47.773+0530	INFO	cmd/enroll_cmd.go:724	Fleet Server - Error - assigned policy does not have fleet-server input
2022-01-28T13:51:48.890+0530	INFO	status/reporter.go:236	Elastic Agent status changed to: 'online'
2022-01-28T13:51:48.891+0530	INFO	log/reporter.go:40	2022-01-28T13:51:48+05:30 - message: Application: fleet-server--7.15.0[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-01-28T13:51:49.391+0530	ERROR	status/reporter.go:236	Elastic Agent status changed to: 'error'
2022-01-28T13:51:49.392+0530	ERROR	log/reporter.go:36	2022-01-28T13:51:49+05:30 - message: Application: fleet-server--7.15.0[]: State changed to FAILED: Error - assigned policy does not have fleet-server input - type: 'ERROR' - sub_type: 'FAILED'
2022-01-28T13:51:53.407+0530	INFO	status/reporter.go:236	Elastic Agent status changed to: 'online'
2022-01-28T13:51:53.407+0530	INFO	log/reporter.go:40	2022-01-28T13:51:53+05:30 - message: Application: fleet-server--7.15.0[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-01-28T13:51:53.789+0530	INFO	cmd/enroll_cmd.go:724	Fleet Server - Starting
2022-01-28T13:51:53.907+0530	ERROR	status/reporter.go:236	Elastic Agent status changed to: 'error'
2022-01-28T13:51:53.907+0530	ERROR	log/reporter.go:36	2022-01-28T13:51:53+05:30 - message: Application: fleet-server--7.15.0[]: State changed to FAILED: Error - assigned policy does not have fleet-server input - type: 'ERROR' - sub_type: 'FAILED'
2022-01-28T13:51:54.801+0530	INFO	cmd/enroll_cmd.go:724	Fleet Server - Error - assigned policy does not have fleet-server input
2022-01-28T13:51:57.912+0530	INFO	status/reporter.go:236	Elastic Agent status changed to: 'online'
2022-01-28T13:51:57.912+0530	INFO	log/reporter.go:40	2022-01-28T13:51:57+05:30 - message: Application: fleet-server--7.15.0[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-01-28T13:51:58.412+0530	ERROR	status/reporter.go:236	Elastic Agent status changed to: 'error'
2022-01-28T13:51:58.413+0530	ERROR	log/reporter.go:36	2022-01-28T13:51:58+05:30 - message: Application: fleet-server--7.15.0[]: State changed to FAILED: Error - assigned policy does not have fleet-server input - type: 'ERROR' - sub_type: 'FAILED'
2022-01-28T13:52:00.414+0530	INFO	status/reporter.go:236	Elastic Agent status changed to: 'online'
2022-01-28T13:52:00.415+0530	INFO	log/reporter.go:40	2022-01-28T13:52:00+05:30 - message: Application: fleet-server--7.15.0[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-01-28T13:52:00.818+0530	INFO	cmd/enroll_cmd.go:724	Fleet Server - Starting
2022-01-28T13:52:00.915+0530	ERROR	status/reporter.go:236	Elastic Agent status changed to: 'error'
2022-01-28T13:52:00.916+0530	ERROR	log/reporter.go:36	2022-01-28T13:52:00+05:30 - message: Application: fleet-server--7.15.0[]: State changed to FAILED: Error - assigned policy does not have fleet-server input - type: 'ERROR' - sub_type: 'FAILED'
2022-01-28T13:52:01.820+0530	INFO	cmd/enroll_cmd.go:724	Fleet Server - Error - assigned policy does not have fleet-server input
2022-01-28T13:52:04.922+0530	INFO	status/reporter.go:236	Elastic Agent status changed to: 'online'
2022-01-28T13:52:04.922+0530	INFO	log/reporter.go:40	2022-01-28T13:52:04+05:30 - message: Application: fleet-server--7.15.0[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-01-28T13:52:05.422+0530	ERROR	status/reporter.go:236	Elastic Agent status changed to: 'error'
2022-01-28T13:52:05.423+0530	ERROR	log/reporter.go:36	2022-01-28T13:52:05+05:30 - message: Application: fleet-server--7.15.0[]: State changed to FAILED: Error - assigned policy does not have fleet-server input - type: 'ERROR' - sub_type: 'FAILED'
2022-01-28T13:52:07.424+0530	INFO	status/reporter.go:236	Elastic Agent status changed to: 'online'
2022-01-28T13:52:07.425+0530	INFO	log/reporter.go:40	2022-01-28T13:52:07+05:30 - message: Application: fleet-server--7.15.0[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-01-28T13:52:07.841+0530	INFO	cmd/enroll_cmd.go:724	Fleet Server - Starting
2022-01-28T13:52:07.925+0530	ERROR	status/reporter.go:236	Elastic Agent status changed to: 'error'
2022-01-28T13:52:07.925+0530	ERROR	log/reporter.go:36	2022-01-28T13:52:07+05:30 - message: Application: fleet-server--7.15.0[]: State changed to FAILED: Error - assigned policy does not have fleet-server input - type: 'ERROR' - sub_type: 'FAILED'
2022-01-28T13:52:08.843+0530	INFO	cmd/enroll_cmd.go:724	Fleet Server - Error - assigned policy does not have fleet-server input
2022-01-28T13:52:11.929+0530	INFO	status/reporter.go:236	Elastic Agent status changed to: 'online'
2022-01-28T13:52:11.929+0530	INFO	log/reporter.go:40	2022-01-28T13:52:11+05:30 - message: Application: fleet-server--7.15.0[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-01-28T13:52:12.429+0530	ERROR	status/reporter.go:236	Elastic Agent status changed to: 'error'
2022-01-28T13:52:12.430+0530	ERROR	log/reporter.go:36	2022-01-28T13:52:12+05:30 - message: Application: fleet-server--7.15.0[]: State changed to FAILED: Error - assigned policy does not have fleet-server input - type: 'ERROR' - sub_type: 'FAILED'
2022-01-28T13:52:14.857+0530	INFO	cmd/enroll_cmd.go:729	Fleet Server - Error - assigned policy does not have fleet-server input
2022-01-28T13:52:16.447+0530	INFO	status/reporter.go:236	Elastic Agent status changed to: 'online'
2022-01-28T13:52:16.447+0530	INFO	log/reporter.go:40	2022-01-28T13:52:16+05:30 - message: Application: fleet-server--7.15.0[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-01-28T13:52:16.869+0530	INFO	cmd/enroll_cmd.go:724	Fleet Server - Starting
2022-01-28T13:52:16.944+0530	ERROR	status/reporter.go:236	Elastic Agent status changed to: 'error'
2022-01-28T13:52:16.944+0530	ERROR	log/reporter.go:36	2022-01-28T13:52:16+05:30 - message: Application: fleet-server--7.15.0[]: State changed to FAILED: Error - assigned policy does not have fleet-server input - type: 'ERROR' - sub_type: 'FAILED'
2022-01-28T13:52:17.871+0530	INFO	cmd/enroll_cmd.go:724	Fleet Server - Error - assigned policy does not have fleet-server input
2022-01-28T13:52:18.950+0530	INFO	status/reporter.go:236	Elastic Agent status changed to: 'online'
2022-01-28T13:52:18.951+0530	INFO	log/reporter.go:40	2022-01-28T13:52:18+05:30 - message: Application: fleet-server--7.15.0[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-01-28T13:52:19.451+0530	ERROR	status/reporter.go:236	Elastic Agent status changed to: 'error'
2022-01-28T13:52:19.452+0530	ERROR	log/reporter.go:36	2022-01-28T13:52:19+05:30 - message: Application: fleet-server--7.15.0[]: State changed to FAILED: Error - assigned policy does not have fleet-server input - type: 'ERROR' - sub_type: 'FAILED'
2022-01-28T13:52:23.456+0530	INFO	status/reporter.go:236	Elastic Agent status changed to: 'online'
2022-01-28T13:52:23.456+0530	INFO	log/reporter.go:40	2022-01-28T13:52:23+05:30 - message: Application: fleet-server--7.15.0[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-01-28T13:52:23.886+0530	INFO	cmd/enroll_cmd.go:724	Fleet Server - Starting
2022-01-28T13:52:23.956+0530	ERROR	status/reporter.go:236	Elastic Agent status changed to: 'error'
2022-01-28T13:52:23.957+0530	ERROR	log/reporter.go:36	2022-01-28T13:52:23+05:30 - message: Application: fleet-server--7.15.0[]: State changed to FAILED: Error - assigned policy does not have fleet-server input - type: 'ERROR' - sub_type: 'FAILED'
2022-01-28T13:52:24.888+0530	INFO	cmd/enroll_cmd.go:724	Fleet Server - Error - assigned policy does not have fleet-server input
2022-01-28T13:52:27.961+0530	INFO	status/reporter.go:236	Elastic Agent status changed to: 'online'
2022-01-28T13:52:27.962+0530	INFO	log/reporter.go:40	2022-01-28T13:52:27+05:30 - message: Application: fleet-server--7.15.0[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-01-28T13:52:28.462+0530	ERROR	status/reporter.go:236	Elastic Agent status changed to: 'error'
2022-01-28T13:52:28.462+0530	ERROR	log/reporter.go:36	2022-01-28T13:52:28+05:30 - message: Application: fleet-server--7.15.0[]: State changed to FAILED: Error - assigned policy does not have fleet-server input - type: 'ERROR' - sub_type: 'FAILED'
2022-01-28T13:52:30.464+0530	INFO	status/reporter.go:236	Elastic Agent status changed to: 'online'
2022-01-28T13:52:30.464+0530	INFO	log/reporter.go:40	2022-01-28T13:52:30+05:30 - message: Application: fleet-server--7.15.0[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-01-28T13:52:30.911+0530	INFO	cmd/enroll_cmd.go:724	Fleet Server - Starting
2022-01-28T13:52:30.964+0530	ERROR	status/reporter.go:236	Elastic Agent status changed to: 'error'
2022-01-28T13:52:30.965+0530	ERROR	log/reporter.go:36	2022-01-28T13:52:30+05:30 - message: Application: fleet-server--7.15.0[]: State changed to FAILED: Error - assigned policy does not have fleet-server input - type: 'ERROR' - sub_type: 'FAILED'
2022-01-28T13:52:31.913+0530	INFO	cmd/enroll_cmd.go:724	Fleet Server - Error - assigned policy does not have fleet-server input
2022-01-28T13:52:34.970+0530	INFO	status/reporter.go:236	Elastic Agent status changed to: 'online'
2022-01-28T13:52:34.970+0530	INFO	log/reporter.go:40	2022-01-28T13:52:34+05:30 - message: Application: fleet-server--7.15.0[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-01-28T13:52:35.471+0530	ERROR	status/reporter.go:236	Elastic Agent status changed to: 'error'
2022-01-28T13:52:35.471+0530	ERROR	log/reporter.go:36	2022-01-28T13:52:35+05:30 - message: Application: fleet-server--7.15.0[]: State changed to FAILED: Error - assigned policy does not have fleet-server input - type: 'ERROR' - sub_type: 'FAILED'
2022-01-28T13:52:37.926+0530	INFO	cmd/enroll_cmd.go:729	Fleet Server - Error - assigned policy does not have fleet-server input
2022-01-28T13:52:39.476+0530	INFO	status/reporter.go:236	Elastic Agent status changed to: 'online'
2022-01-28T13:52:39.476+0530	INFO	log/reporter.go:40	2022-01-28T13:52:39+05:30 - message: Application: fleet-server--7.15.0[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-01-28T13:52:39.930+0530	INFO	cmd/enroll_cmd.go:724	Fleet Server - Starting
2022-01-28T13:52:39.976+0530	ERROR	status/reporter.go:236	Elastic Agent status changed to: 'error'
2022-01-28T13:52:39.976+0530	ERROR	log/reporter.go:36	2022-01-28T13:52:39+05:30 - message: Application: fleet-server--7.15.0[]: State changed to FAILED: Error - assigned policy does not have fleet-server input - type: 'ERROR' - sub_type: 'FAILED'
2022-01-28T13:52:40.933+0530	INFO	cmd/enroll_cmd.go:724	Fleet Server - Error - assigned policy does not have fleet-server input
2022-01-28T13:52:41.978+0530	INFO	status/reporter.go:236	Elastic Agent status changed to: 'online'
2022-01-28T13:52:41.978+0530	INFO	log/reporter.go:40	2022-01-28T13:52:41+05:30 - message: Application: fleet-server--7.15.0[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-01-28T13:52:42.479+0530	ERROR	status/reporter.go:236	Elastic Agent status changed to: 'error'
2022-01-28T13:52:42.479+0530	ERROR	log/reporter.go:36	2022-01-28T13:52:42+05:30 - message: Application: fleet-server--7.15.0[]: State changed to FAILED: Error - assigned policy does not have fleet-server input - type: 'ERROR' - sub_type: 'FAILED'
2022-01-28T13:52:46.486+0530	INFO	status/reporter.go:236	Elastic Agent status changed to: 'online'
2022-01-28T13:52:46.486+0530	INFO	log/reporter.go:40	2022-01-28T13:52:46+05:30 - message: Application: fleet-server--7.15.0[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-01-28T13:52:46.958+0530	INFO	cmd/enroll_cmd.go:724	Fleet Server - Starting
2022-01-28T13:52:46.986+0530	ERROR	status/reporter.go:236	Elastic Agent status changed to: 'error'
2022-01-28T13:52:46.987+0530	ERROR	log/reporter.go:36	2022-01-28T13:52:46+05:30 - message: Application: fleet-server--7.15.0[]: State changed to FAILED: Error - assigned policy does not have fleet-server input - type: 'ERROR' - sub_type: 'FAILED'
2022-01-28T13:52:47.960+0530	INFO	cmd/enroll_cmd.go:724	Fleet Server - Error - assigned policy does not have fleet-server input
2022-01-28T13:52:50.991+0530	INFO	status/reporter.go:236	Elastic Agent status changed to: 'online'
2022-01-28T13:52:50.991+0530	INFO	log/reporter.go:40	2022-01-28T13:52:50+05:30 - message: Application: fleet-server--7.15.0[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-01-28T13:52:51.491+0530	ERROR	status/reporter.go:236	Elastic Agent status changed to: 'error'
2022-01-28T13:52:51.492+0530	ERROR	log/reporter.go:36	2022-01-28T13:52:51+05:30 - message: Application: fleet-server--7.15.0[]: State changed to FAILED: Error - assigned policy does not have fleet-server input - type: 'ERROR' - sub_type: 'FAILED'
2022-01-28T13:52:53.974+0530	INFO	cmd/enroll_cmd.go:729	Fleet Server - Error - assigned policy does not have fleet-server input
2022-01-28T13:52:55.497+0530	INFO	status/reporter.go:236	Elastic Agent status changed to: 'online'
2022-01-28T13:52:55.497+0530	INFO	log/reporter.go:40	2022-01-28T13:52:55+05:30 - message: Application: fleet-server--7.15.0[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-01-28T13:52:55.979+0530	INFO	cmd/enroll_cmd.go:724	Fleet Server - Starting
2022-01-28T13:52:55.998+0530	ERROR	status/reporter.go:236	Elastic Agent status changed to: 'error'
2022-01-28T13:52:55.998+0530	ERROR	log/reporter.go:36	2022-01-28T13:52:55+05:30 - message: Application: fleet-server--7.15.0[]: State changed to FAILED: Error - assigned policy does not have fleet-server input - type: 'ERROR' - sub_type: 'FAILED'
2022-01-28T13:52:56.981+0530	INFO	cmd/enroll_cmd.go:724	Fleet Server - Error - assigned policy does not have fleet-server input
2022-01-28T13:52:58.000+0530	INFO	status/reporter.go:236	Elastic Agent status changed to: 'online'
2022-01-28T13:52:58.000+0530	INFO	log/reporter.go:40	2022-01-28T13:52:58+05:30 - message: Application: fleet-server--7.15.0[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-01-28T13:52:58.501+0530	ERROR	status/reporter.go:236	Elastic Agent status changed to: 'error'
2022-01-28T13:52:58.502+0530	ERROR	log/reporter.go:36	2022-01-28T13:52:58+05:30 - message: Application: fleet-server--7.15.0[]: State changed to FAILED: Error - assigned policy does not have fleet-server input - type: 'ERROR' - sub_type: 'FAILED'
2022-01-28T13:53:00.990+0530	INFO	cmd/run.go:182	Shutting down Elastic Agent and sending last events...
2022-01-28T13:53:00.990+0530	INFO	operation/operator.go:201	waiting for installer of pipeline 'default' to finish
2022-01-28T13:53:00.990+0530	INFO	process/app.go:176	Signaling application to stop because of shutdown: fleet-server--7.15.0
2022-01-28T13:53:01.004+0530	INFO	status/reporter.go:236	Elastic Agent status changed to: 'online'
2022-01-28T13:53:01.004+0530	INFO	log/reporter.go:40	2022-01-28T13:53:01+05:30 - message: Application: fleet-server--7.15.0[]: State changed to STOPPING: Stopping - type: 'STATE' - sub_type: 'STOPPING'
2022-01-28T13:53:02.491+0530	INFO	log/reporter.go:40	2022-01-28T13:53:02+05:30 - message: Application: fleet-server--7.15.0[]: State changed to STOPPED: Stopped - type: 'STATE' - sub_type: 'STOPPED'
2022-01-28T13:53:02.491+0530	INFO	cmd/run.go:190	Shutting down completed.
2022-01-28T13:53:02.491+0530	INFO	[api]	api/server.go:66	Stats endpoint (/var/lib/elastic-agent/data/tmp/elastic-agent.sock) finished: accept unix /var/lib/elastic-agent/data/tmp/elastic-agent.sock: use of closed network connection
Error: fleet-server never started by elastic-agent daemon: context canceled
For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/7.15/fleet-troubleshooting.html

I would really appreciate if you could show me some light to resolve this issue.

Billz26

Hi, could you try adding Fleet Server integration to Default Fleet Server policy? After doing that, the dropdown should be populated and the enroll should work.
The integration should be added by default, something might have gone wrong during setup.

Hi Julia,

Yes, it worked correctly after doing the integration manually. Thank you.

Billz26

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