You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
The text was updated successfully, but these errors were encountered: