Hi Everyone, I am trying to install fleet server on one of my elastic data nodes. However im facing this error. Could someone help me out please?
./elastic-agent install -f --fleet-server-es=https://xyz:9200 --fleet-server-service-token=AAEAA**** --fleet-server-es-ca=/etc/elasticsearch/elastic-certificates.p12
2021-08-25T06:35:13.238-0400 INFO cmd/enroll_cmd.go:354 Generating self-signed certificate for Fleet Server
2021-08-25T06:35:14.815-0400 INFO cmd/enroll_cmd.go:701 Fleet Server - Starting
2021-08-25T06:35:20.824-0400 INFO cmd/enroll_cmd.go:706 Fleet Server - Starting
2021-08-25T06:35:26.831-0400 INFO cmd/enroll_cmd.go:706 Fleet Server - Starting
2021-08-25T06:35:32.838-0400 INFO cmd/enroll_cmd.go:706 Fleet Server - Starting
2021-08-25T06:35:38.848-0400 INFO cmd/enroll_cmd.go:706 Fleet Server - Starting
2021-08-25T06:35:44.858-0400 INFO cmd/enroll_cmd.go:706 Fleet Server - Starting
2021-08-25T06:35:50.866-0400 INFO cmd/enroll_cmd.go:706 Fleet Server - Starting
2021-08-25T06:35:56.875-0400 INFO cmd/enroll_cmd.go:706 Fleet Server - Starting
2021-08-25T06:36:02.886-0400 INFO cmd/enroll_cmd.go:706 Fleet Server - Starting
2021-08-25T06:36:08.894-0400 INFO cmd/enroll_cmd.go:706 Fleet Server - Starting
2021-08-25T06:36:14.902-0400 INFO cmd/enroll_cmd.go:706 Fleet Server - Starting
2021-08-25T06:36:19.909-0400 INFO cmd/enroll_cmd.go:682 Fleet Server - Missed last check-in
2021-08-25T06:36:20.665-0400 INFO cmd/enroll_cmd.go:414 Starting enrollment to URL: https://xyz:8220
Error: fail to enroll: fail to execute request to fleet-server: 1 error occurred:
* missing enrollment api key