When I install elastic-agent and fleet-server against a successfully running https/SSL Elasticsearch and Kibana.....The output indicates a successful start and enrolment but a few minutes later the elastic-agent status indicates a failure. Any idea what is the meaning of the errors below ?
root@efire:~# /usr/bin/elastic-agent status
Status: FAILED
Message: (no message)
Applications:
- metricbeat (HEALTHY)
Running - fleet-server (CONFIGURING)
Re-configuring - filebeat_monitoring (HEALTHY)
Running - metricbeat_monitoring (HEALTHY)
Running - endpoint-security (FAILED)
Missed two check-ins - filebeat (HEALTHY)
Running
root@efire:~#
tail -f /opt/Elastic/Endpoint/state/log/endpoint-000000.log
{"@timestamp":"2022-02-17T02:41:31.408567293Z","agent":{"id":"00000000-0000-0000-0000-000000000000","type":"endpoint"},"ecs":{"version":"1.11.0"},"log":{"level":"notice","origin":{"file":{"line":93,"name":"BulkQueueConsumer.cpp"}}},"message":"BulkQueueConsumer.cpp:93 *No valid comms client available*","process":{"pid":15158,"thread":{"id":15165}}}
sudo ./elastic-agent install --url=https://efire.consulting.com:8220 --fleet-server-es=https://fire.consulting.com:9200 --fleet-server-service-token=<removed> --fleet-server-policy=2016d7cc-135e-5583-9758-3ba01f5a06e5 --certificate-authorities=/etc/elasticagent/ca.crt --fleet-server-es-ca=/etc/elasticagent/efire.crt --fleet-server-cert=/etc/elasticagent/fleet-server/fleet-server.crt --fleet-server-cert-key=/etc/elasticagent/fleet-server/fleet-server.key
Elastic Agent will be installed at /opt/Elastic/Agent and will run as a service. Do you want to continue? [Y/n]:Y
2022-02-16T18:36:06.025Z INFO cmd/enroll_cmd.go:743 Waiting for Elastic Agent to start Fleet Server
2022-02-16T18:36:12.038Z INFO cmd/enroll_cmd.go:757 Fleet Server - Running on policy with Fleet Server integration: 2016d7cc-135e-5583-9758-3ba01f5a06e5; missing config fleet.agent.id (expected during bootstrap process)
2022-02-16T18:36:12.788Z INFO cmd/enroll_cmd.go:454 Starting enrollment to URL: https://efire.consulting.com:8220/
2022-02-16T18:36:13.701Z INFO cmd/enroll_cmd.go:254 Successfully triggered restart on running Elastic Agent.
Successfully enrolled the Elastic Agent.
Elastic Agent has been successfully installed.