Open bigverm23 opened 1 year ago
curl -k -u user:password https://10.0.0.7:9200 produces:
{
"name" : "es01",
"cluster_name" : "ken",
"cluster_uuid" : "*******************",
"version" : {
"number" : "8.6.0",
"build_flavor" : "default",
"build_type" : "docker",
"build_hash" : "f67ef2df40237445caa70e2fef79471cc608d70d",
"build_date" : "2023-01-04T09:35:21.782467981Z",
"build_snapshot" : false,
"lucene_version" : "9.4.2",
"minimum_wire_compatibility_version" : "7.17.0",
"minimum_index_compatibility_version" : "7.0.0"
},
"tagline" : "You Know, for Search"
}
I am also facing the same issue with version 8.6.2 when trying to install fleet-server on MAC
It seems to me that the Elasticsearch output is not configured correctly the EOF error is probably happening because Fleet Server cannot reach elasticsearch, can you try to configure the output with an address that Fleet Server can reach? in the Fleet UI (Fleet plugin => the settings tab) or via an environment variables in Kibana XPACK_FLEET_AGENTS_ELASTICSEARCH_HOSTS: '["https://elasticsearch:9200"]'
Hey! I had the same problem. The issue is with generated instructions from Kibana. It should be HTTPS (not HTTP) when specifying fleet-server-es.
Elastic, can this be fixed in the next version? Thanks!
This is correct.
sudo ./elastic-agent install \ --fleet-server-es=https://localhost:9200 \ --fleet-server-service-token=xxxxxxxxxx \ --fleet-server-policy=fleet-server-policy
use this doc to create ssl:https://www.elastic.co/guide/en/fleet/8.1/secure-connections.html
then run as:
./bin/elasticsearch-certutil ca --pem ./bin/elasticsearch-certutil cert \ --name fleet-server \ --ca-cert /usr/share/elasticsearch/fleek/ca/ca.crt \ --ca-key /usr/share/elasticsearch/fleek/ca/ca.key \ --dns fleet.xxx.com \ --ip 192.168.20.7 \ --pem
sudo ./elastic-agent install -f \ --url=https://192.168.20.7:8220 \ --fleet-server-es=https://192.168.20.7:9200 \ --fleet-server-service-token=AAEAAWVsYXN0aWMvZmxlZXQtc2VydmVyL3Rva2VuLTE3MjYxOTIzOTQ3NjY6c0NsSDJKVFFSSXU4ODFpTHBCRFVwUQ \ --fleet-server-es-ca=/var/lib/docker/volumes/es8_certs/_data/ca/ca.crt \ --certificate-authorities=/data/es-kibana/es8/feek-key/ca/ca.crt \ --fleet-server-cert=/data/es-kibana/es8/feek-key/fleet-server/fleet-server.crt \ --fleet-server-cert-key=/data/es-kibana/es8/feek-key/fleet-server/fleet-server.key
then it's ok.
{"log.level":"info","@timestamp":"2024-09-13T14:19:24.187+0800","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":777},"message":"Fleet Server - Starting","ecs.version":"1.6.0"} {"log.level":"info","@timestamp":"2024-09-13T14:19:28.192+0800","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":758},"message":"Fleet Server - Running on default policy with Fleet Server integration; missing config fleet.agent.id (expected during bootstrap process)","ecs.version":"1.6.0"} {"log.level":"info","@timestamp":"2024-09-13T14:19:29.157+0800","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":455},"message":"Starting enrollment to URL: https://192.168.20.7:8220/","ecs.version":"1.6.0"} {"log.level":"info","@timestamp":"2024-09-13T14:19:33.012+0800","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":255},"message":"Successfully triggered restart on running Elastic Agent.","ecs.version":"1.6.0"} Successfully enrolled the Elastic Agent. Elastic Agent has been successfully installed.
Used docker-compose:
For confirmed bugs, please report: