Hello! I am a student new to the Elastic Stack, and I’m learning how to set it up. I’ve deployed Debian on a VM in Proxmox and installed both Kibana and Elasticsearch, and they are successfully connected and running locally on the same machine.
I’m now trying to enable Fleet for central agent management. I’ve added an integration and created a policy. While setting up a production deployment (even though it’s just for my personal learning), I followed the commands generated by Kibana. When the system displays "Confirm Connection," I try to install the agent with the following flags:
sudo ./elastic-agent install --url=https://10.5.0.3:8220 --fleet-server-es=https://10.5.0.3:9200 --fleet-server-service-token=... --fleet-server-policy=... --certificate-authorities=... --fleet-server-cert=... --fleet-server-cert-key=... --fleet-server-port=8220 --insecure
However, despite all my efforts, I keep running into issues with the Fleet Server not starting, and I am not sure if I’m missing something in the configuration. Could anyone guide me on what I might be doing wrong or provide steps to troubleshoot this?
Output after I run the command:
Elastic Agent will be installed at /opt/Elastic/Agent and will run as a service. Do you want to continue? [Y/n]:y
[=== ] Service Started [12s] Elastic Agent successfully installed, starting enrollment.
[====] Waiting For Enroll... [14s] {"log.level":"info","@timestamp":"2024-11-14T15:05:07.348+0400","log.origin":{"function":"github.com/elastic/elastic-agent/internal/pkg/agent/cmd.(*enrollCmd).daemonReloadWithBackoff","file.name":"cmd/enroll_cmd.go","file.line":483},"message":"Restarting agent daemon, attempt 0","ecs.version":"1.6.0"}
[ ] Waiting For Enroll... [16s] {"log.level":"info","@timestamp":"2024-11-14T15:05:09.350+0400","log.origin":{"function":"github.com/elastic/elastic-agent/internal/pkg/agent/cmd.waitForFleetServer.func1","file.name":"cmd/enroll_cmd.go","file.line":826},"message":"Fleet Server - waiting for output unit","ecs.version":"1.6.0"}
[=== ] Waiting For Enroll... [1m53s] ^CError: fleet-server failed: timed out waiting for Fleet Server to start after 2m0s
For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/8.16/fleet-troubleshooting.html
Thanks in advance for your help!