Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elastic Agent crashes while trying to start the agent with Fleet Server #24273

Closed
aleksmaus opened this issue Mar 1, 2021 · 2 comments · Fixed by #24281
Closed

Elastic Agent crashes while trying to start the agent with Fleet Server #24273

aleksmaus opened this issue Mar 1, 2021 · 2 comments · Fixed by #24281
Assignees
Labels
Team:Elastic-Agent Label for the Agent team

Comments

@aleksmaus
Copy link
Member

Elastic Agent crashes after trying to enroll the the agent with the fleet policy while the agent is running as systemd service.
Confirmed the crash by dev, was asked to open a ticket.

Feb 28 19:53:40 ams-fleet-server elastic-agent[4475]: 2021-02-28T19:53:40.391Z INFO warn/warn.go:18 The Elastic Agent is currently in BETA and should not be used in production
Feb 28 19:53:40 ams-fleet-server elastic-agent[4475]: 2021-02-28T19:53:40.399Z INFO application/application.go:65 Detecting execution mode
Feb 28 19:53:40 ams-fleet-server elastic-agent[4475]: 2021-02-28T19:53:40.400Z ERROR [control] server/listener.go:52 Failed to cleanup /tmp/elastic-agent-5a5e5b6ebc690323c31e5e16db0145ce9739438c4bd3d99df9672b941fcf81ea.sock: remove /tmp/elastic-agent-5a5e5b6ebc690323c31e5e16db0145ce9739438c4bd3d99df9672b941fcf81ea.sock: no such file or directory
Feb 28 19:53:40 ams-fleet-server elastic-agent[4475]: panic: runtime error: invalid memory address or nil pointer dereference
Feb 28 19:53:40 ams-fleet-server elastic-agent[4475]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xc44265]
Feb 28 19:53:40 ams-fleet-server elastic-agent[4475]: goroutine 1 [running]:
Feb 28 19:53:40 ams-fleet-server elastic-agent[4475]: github.com/elastic/beats/v7/x-pack/elastic-agent/pkg/agent/application.createApplication(0xc00047ebb0, 0x7ffcdba97ea9, 0x24, 0xc00051ea20, 0x7fd7d8081ac0, 0xc00051e690, 0x1d8d2e0, 0xc0002b2600, 0x1d3c4a0, 0xc000085b60, ...)
Feb 28 19:53:40 ams-fleet-server elastic-agent[4475]: /go/src/github.com/elastic/beats/x-pack/elastic-agent/pkg/agent/application/application.go:82 +0x305
Feb 28 19:53:40 ams-fleet-server elastic-agent[4475]: github.com/elastic/beats/v7/x-pack/elastic-agent/pkg/agent/application.New(0xc00047ebb0, 0x7ffcdba97ea9, 0x24, 0x7fd7d8081ac0, 0xc00051e690, 0x1d8d2e0, 0xc0002b2600, 0x1d3c4a0, 0xc000085b60, 0xc000010e80, ...)
Feb 28 19:53:40 ams-fleet-server elastic-agent[4475]: /go/src/github.com/elastic/beats/x-pack/elastic-agent/pkg/agent/application/application.go:52 +0x145
Feb 28 19:53:40 ams-fleet-server elastic-agent[4475]: github.com/elastic/beats/v7/x-pack/elastic-agent/pkg/agent/cmd.run(0xc00047e1d0, 0xc000376c60, 0x0, 0x0)
Feb 28 19:53:40 ams-fleet-server elastic-agent[4475]: /go/src/github.com/elastic/beats/x-pack/elastic-agent/pkg/agent/cmd/run.go:143 +0xe1d
Feb 28 19:53:40 ams-fleet-server elastic-agent[4475]: github.com/elastic/beats/v7/x-pack/elastic-agent/pkg/agent/cmd.newRunCommandWithArgs.func1(0xc0001ddb80, 0xc0004361e0, 0x0, 0xa)
Feb 28 19:53:40 ams-fleet-server elastic-agent[4475]: /go/src/github.com/elastic/beats/x-pack/elastic-agent/pkg/agent/cmd/run.go:53 +0x3c
Feb 28 19:53:40 ams-fleet-server elastic-agent[4475]: github.com/spf13/cobra.(*Command).execute(0xc0001ddb80, 0xc00003e180, 0xa, 0xc, 0xc0001ddb80, 0xc00003e180)
Feb 28 19:53:40 ams-fleet-server elastic-agent[4475]: /go/pkg/mod/github.com/spf13/[email protected]/command.go:830 +0x2c2
Feb 28 19:53:40 ams-fleet-server elastic-agent[4475]: github.com/spf13/cobra.(*Command).ExecuteC(0xc0001dca00, 0xc, 0xc, 0xc000376c60)
Feb 28 19:53:40 ams-fleet-server elastic-agent[4475]: /go/pkg/mod/github.com/spf13/[email protected]/command.go:914 +0x30b
Feb 28 19:53:40 ams-fleet-server elastic-agent[4475]: github.com/spf13/cobra.(*Command).Execute(...)
Feb 28 19:53:40 ams-fleet-server elastic-agent[4475]: /go/pkg/mod/github.com/spf13/[email protected]/command.go:864
Feb 28 19:53:40 ams-fleet-server elastic-agent[4475]: main.main()
Feb 28 19:53:40 ams-fleet-server elastic-agent[4475]: /go/src/github.com/elastic/beats/x-pack/elastic-agent/main.go:20 +0x139
Feb 28 19:53:40 ams-fleet-server systemd[1]: elastic-agent.service: Main process exited, code=exited, status=2/INVALIDARGUMENT

  • Version: 8.0.0-SNAPSHOT
  • Operating System: Ubunutu 18.04
  • Steps to Reproduce:
  1. Install Elastic Agent
  2. Follow the steps to enroll as described in [Elastic Agent] Enroll with Fleet Server #23865
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Mar 1, 2021
@blakerouse blakerouse added the Team:Fleet Label for the Fleet team label Mar 1, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/fleet (Team:Fleet)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Mar 1, 2021
@andresrc andresrc added the Team:Elastic-Agent Label for the Agent team label Mar 1, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/agent (Team:Agent)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Elastic-Agent Label for the Agent team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants