Unable to create a fleet server with SSL certificates configured

Unable to create a fleet server with SSL certificates configured.
the below error is coming. Please tell why ?


./elastic-agent install --url=https://10.0.30.129:8220
Elastic Agent will be installed at /opt/Elastic/Agent and will run as a service. Do you want to continue? [Y/n]:y
Do you want to enroll this Agent into Fleet? [Y/n]:y
Fleet enrollment token: AAEAAWVsYXN0aWMvZmxlZXQtc2VydmVyL3Rva2VuLTE3MjMxMjQyNDE2Njk6M1RDVEZmblRSN3loWVpzV212ZDRsdw
[====] Service Started [6s] Elastic Agent successfully installed, starting enrollment.
[ ===] Waiting For Enroll... [7s] {"log.level":"info","@timestamp":"2024-08-08T19:08:24.302+0530","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":517},"message":"Starting enrollment to URL: https://10.0.30.129:8220/","ecs.version":"1.6.0"}
[== ] Waiting For Enroll... [7s] {"log.level":"info","@timestamp":"2024-08-08T19:08:24.593+0530","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":523},"message":"1st enrollment attempt failed, retrying enrolling to URL: https://10.0.30.129:8220/ with exponential backoff (init 1s, max 10s)","ecs.version":"1.6.0"}
Error: fail to enroll: fail to execute request to fleet-server: dial tcp 10.0.30.129:8220: connect: connection refused
For help, please see our troubleshooting guide at Troubleshoot common problems | Fleet and Elastic Agent Guide [8.14] | Elastic
[== ] Uninstalled [9s] Error uninstalling. Printing logs
2024-08-08T13:38:24.947Z DEBUG [install] Loaded configuration from /home/fmsadmin/elastic-agent-8.14.3-linux-x86_64/elastic-agent.yml
2024-08-08T13:38:24.947Z DEBUG [install] Merged configuration from /home/fmsadmin/elastic-agent-8.14.3-linux-x86_64/elastic-agent.yml into result
2024-08-08T13:38:24.947Z DEBUG [install] Merged all configuration files from [/home/fmsadmin/elastic-agent-8.14.3-linux-x86_64/elastic-agent.yml], no external input files
2024-08-08T13:38:24.948Z DEBUG [install.composable] Starting controller for composable inputs
2024-08-08T13:38:24.948Z DEBUG [install.composable] Started controller for composable inputs
2024-08-08T13:38:24.948Z DEBUG [install.composable] Variable state changed for composable inputs; debounce started
2024-08-08T13:38:24.949Z DEBUG [install.composable] Kubernetes leaderelection provider skipped, unable to connect: unable to build kfig duefig due to error: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
2024-08-08T13:38:24.949Z INFO [install.composable.providers.docker] Docker provider skipped, unable to connect: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
2024-08-08T13:38:24.949Z DEBUG [install.composable.providers.kubernetes] Kubernetes provider for resource pod skipped, unable to connect: unable to build kube config due to error: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
2024-08-08T13:38:24.949Z DEBUG [install.composable.providers.kubernetes] Kubernetes provider for resource node skipped, unable to connect: unable to build kube config due to error: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
2024-08-08T13:38:25.077Z DEBUG [install.composable] Computing new variable state for composable inputs
2024-08-08T13:38:25.077Z DEBUG [install.composable] Stopping controller for composable inputs
2024-08-08T13:38:25.327Z DEBUG [install.composable] Stopped controller for composable inputs
Error: enroll command failed for unknown reason: exit status 1

From Elasticsearch to Elastic Agent

Removed docker

I've move this to the agent forum, it's not an Elasticsearch issue

It appears that the URL you are trying to use is incorrect - there does not seem to be anything listening on that address.

1 Like

I have followed the exact steps mentioned in the elastic portal for creating a three node elk cluster and implementing ssl between the nodes and kibana. No where in the portal it is mentioned of creating a port that needs to listen. Kindly help with a documentation that telling to make the port listen for fleet server.