Hello,
I am having some problems enrolling linux and windows agent into Elastic Fleet services. This is the message I am getting:
sudo ./elastic-agent enroll -f --fleet-server-es=https://172.16.100.6:8220 --fleet-server-service-token=X2FNWExIOEJleW9ZVDRzQUdCY206UEpqSWFJa0tSdDJ0ZU1RN3JFVU8xQQ== --fleet-server-policy=594ee9f0-957c-11ec-9cf4-ff209d017486
2022-02-24T10:21:29.730-0600 INFO cmd/enroll_cmd.go:386 Generating self-signed certificate for Fleet Server
2022-02-24T10:21:30.338-0600 INFO cmd/enroll_cmd.go:571 Spawning Elastic Agent daemon as a subprocess to complete bootstrap process.
2022-02-24T10:21:30.483-0600 INFO application/application.go:67 Detecting execution mode
2022-02-24T10:21:30.486-0600 INFO application/application.go:88 Agent is in Fleet Server bootstrap mode
2022-02-24T10:21:30.759-0600 INFO [api] api/server.go:62 Starting stats endpoint
2022-02-24T10:21:30.759-0600 INFO application/fleet_server_bootstrap.go:130 Agent is starting
2022-02-24T10:21:30.759-0600 INFO [api] api/server.go:64 Metrics endpoint listening on: /home/ronniewatson/elastic-agent-7.17.0-linux-x86_64/data/tmp/elastic-agent.sock (configured: unix:///home/ronniewatson/elastic-agent-7.17.0-linux-x86_64/data/tmp/elastic-agent.sock)
2022-02-24T10:21:30.760-0600 INFO application/fleet_server_bootstrap.go:140 Agent is stopped
2022-02-24T10:21:30.762-0600 INFO stateresolver/stateresolver.go:48 New State ID is ImcuOHJh
2022-02-24T10:21:30.762-0600 INFO stateresolver/stateresolver.go:49 Converging state requires execution of 1 step(s)
2022-02-24T10:21:31.489-0600 INFO log/reporter.go:40 2022-02-24T10:21:31-06:00 - message: Application: fleet-server--7.17.0[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-02-24T10:21:31.490-0600 INFO stateresolver/stateresolver.go:66 Updating internal state
2022-02-24T10:21:32.513-0600 ERROR status/reporter.go:236 Elastic Agent status changed to: 'error'
2022-02-24T10:21:32.513-0600 ERROR log/reporter.go:36 2022-02-24T10:21:32-06:00 - message: Application: fleet-server--7.17.0[]: State changed to FAILED: Error - tls: first record does not look like a TLS handshake - type: 'ERROR' - sub_type: 'FAILED'
2022-02-24T10:21:33.342-0600 INFO cmd/enroll_cmd.go:776 Fleet Server - Error - tls: first record does not look like a TLS handshake
2022-02-24T10:21:42.515-0600 INFO status/reporter.go:236 Elastic Agent status changed to: 'online'
2022-02-24T10:21:42.515-0600 INFO log/reporter.go:40 2022-02-24T10:21:42-06:00 - message: Application: fleet-server--7.17.0[]: State changed to RESTARTING: - type: 'STATE' - sub_type: 'STARTING'
2022-02-24T10:21:42.516-0600 INFO log/reporter.go:40 2022-02-24T10:21:42-06:00 - message: Application: fleet-server--7.17.0[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-02-24T10:21:42.516-0600 INFO log/reporter.go:40 2022-02-24T10:21:42-06:00 - message: Application: fleet-server--7.17.0[]: State changed to RESTARTING: Restarting - type: 'STATE' - sub_type: 'STARTING'
Any tips on how I can fix this?