Hi,
My setup:
Elasticsearch 8.1.0, Kibana 8.1.0, Elastic Agent 8.1.0
Downloaded elastic agent on my windows machine.
Ran the following command:
elastic-agent.exe install --fleet-server-es=https://localhost:9200 --fleet-server-service-token=AAEAAWVsYXN0aWMvZmxlZXQtc2VydmVyL3Rva2VuLTE2NTQxNjMwMzc2ODc6bUg4SHI5bDNRWUt3VFdxUVVRMWNuQQ --fleet-server-policy=fleet-server-policy --fleet-server-insecure-http
Getting below error:
Elastic Agent will be installed at C:\Program Files\Elastic\Agent and will run as a service. Do you want to continue? [Y/n]:Y
{"log.level":"info","@timestamp":"2022-06-02T15:26:59.725+0530","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":744},"message":"Waiting for Elastic Agent to start Fleet Server","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2022-06-02T15:27:05.754+0530","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":777},"message":"Fleet Server - Error - x509: certificate signed by unknown authority","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2022-06-02T15:27:13.775+0530","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":777},"message":"Fleet Server - Restarting","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2022-06-02T15:27:29.802+0530","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":777},"message":"Fleet Server - Error - x509: certificate signed by unknown authority","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.1/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.1/fleet-troubleshooting.html
Can anybody help here?