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