elastic / elastic/fleet-server
Error: fleet-server failed: timed out waiting for Fleet Server to start after 2m0s
- Dominant language
- Go
- Stars
- 113
- Forks
- 117
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 112
Description
**install log:**
Elastic Agent will be installed at /opt/Elastic/Agent and will run as a service. Do you want to continue? [Y/n]:
[ ===] Service Started [3s] Elastic Agent successfully installed, starting enrollment.
[= ] Waiting For Enroll... [5s] {"log.level":"info","@timestamp":"2025-05-19T09:45:09.736+0800","log.origin":{"function":"github.com/elastic/elastic-agent/internal/pkg/agent/cmd.(*enrollCmd).prepareFleetTLS","file.name":"cmd/enroll_cmd.go","file.line":449},"message":"Generating self-signed certificate for Fleet Server","ecs.version":"1.6.0"}
[=== ] Waiting For Enroll... [6s] {"log.level":"info","@timestamp":"2025-05-19T09:45:10.241+0800","log.origin":{"function":"github.com/elastic/elastic-agent/internal/pkg/agent/cmd.(*enrollCmd).daemonReloadWithBackoff","file.name":"cmd/enroll_cmd.go","file.line":495},"message":"Restarting agent daemon, attempt 0","ecs.version":"1.6.0"}
[ =] Waiting For Enroll... [8s] {"log.level":"info","@timestamp":"2025-05-19T09:45:12.245+0800","log.origin":{"function":"github.com/elastic/elastic-agent/internal/pkg/agent/cmd.waitForFleetServer.func1","file.name":"cmd/enroll_cmd.go","file.line":792},"message":"Waiting for Elastic Agent to start","ecs.version":"1.6.0"}
[ =] Waiting For Enroll... [12s] {"log.level":"info","@timestamp":"2025-05-19T09:45:16.251+0800","log.origin":{"function":"github.com/elastic/elastic-agent/internal/pkg/agent/cmd.waitForFleetServer.func1","file.name":"cmd/enroll_cmd.go","file.line":842},"message":"Fleet Server - waiting for output unit","ecs.version":"1.6.0"}
[=== ] **Waiting For Enroll... [2m6s] Error: 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.18/fleet-troubleshooting.html
[= ] Uninstalled [2m7s] Error uninstalling. Printing logs
2025-05-19T01:47:10.507Z DEBUG [install] Loaded configuration from /home/houzb/install/elastic-agent-8.18.1-linux-x86_64/elastic-agent.yml
2025-05-19T01:47:10.507Z DEBUG [install] Merged configuration from /home/houzb/install/elastic-agent-8.18.1-linux-x86_64/elastic-agent.yml into result
2025-05-19T01:47:10.507Z DEBUG [install] Merged all configuration files from [/home/houzb/install/elastic-agent-8.18.1-linux-x86_64/elastic-agent.yml], no external input files
2025-05-19T01:47:10.665Z DEBUG [install] Loaded configuration from /home/houzb/install/elastic-agent-8.18.1-linux-x86_64/elastic-agent.yml
2025-05-19T01:47:10.665Z DEBUG [install] Merged configuration from /home/houzb/install/elastic-agent-8.18.1-linux-x86_64/elastic-agent.yml into result
2025-05-19T01:47:10.665Z DEBUG [install] Merged all configuration files from [/home/houzb/install/elastic-agent-8.18.1-linux-x86_64/elastic-agent.yml], no external input files
2025-05-19T01:47:10.665Z DEBUG [install.composable] Starting controller for composable inputs
2025-05-19T01:47:10.665Z DEBUG [install.composable] Started controller for composable inputs
2025-05-19T01:47:10.665Z DEBUG [install.composable] Computing new variable state for composable inputs
2025-05-19T01:47:10.665Z DEBUG [install.composable] Stopping controller for composable inputs
2025-05-19T01:47:10.665Z DEBUG [install.composable] Stopped controller for composable inputs
Error: enroll command failed for unknown reason: exit status 1
For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/8.18/fleet-troubleshooting.html
Contributor guide
Assessment
This issue has not been assessed yet.