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

Windows service for Beat does not stop gracefully #38666

Open
ycombinator opened this issue Mar 27, 2024 · 3 comments · Fixed by #40572 · May be fixed by #40794
Open

Windows service for Beat does not stop gracefully #38666

ycombinator opened this issue Mar 27, 2024 · 3 comments · Fixed by #40572 · May be fixed by #40794
Labels
bug Team:Elastic-Agent Label for the Agent team Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team

Comments

@ycombinator
Copy link
Contributor

Version

8.13.0

Operating System

Windows Server 2019

Steps to Reproduce:

  1. Install the Beat, e.g. Filebeat, on Windows.
  2. Make sure the Beat's service is registered with the service manager.
  3. Restart Windows.
  4. Check the Event Viewer for messages about the Beat's service

Observed behavior

The Event Viewer shows messages like this:

The filebeat service terminated unexpectedly. It has done this 1 time(s).

Expected behavior

The service stops gracefully and there are no messages like the one shown above in the Event Viewer.

Related

A similar issue was reported for Elastic Agent in #27527. It was fixed in #27730. The fix was to wait until the stop was reported to the service manager or wait 500ms, whichever happens first. We need a similar fix for Beats.

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

Pinging @elastic/elastic-agent (Team:Elastic-Agent)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Mar 27, 2024
@pierrehilbert pierrehilbert added the Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team label Jun 3, 2024
@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

@cmacknz
Copy link
Member

cmacknz commented Sep 20, 2024

Re-introduced by revert #40705

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