Skip to content

Beats running as a windows service randomly fail to restart #18914

Closed

Description

For confirmed bugs, please report:

  • Version: 7.6.0+
  • Operating System: Windows
  • Discuss Forum URL: n/a
  • Steps to Reproduce:

Running the following powershell:

restart-service winlogbeat

(and possibly any other Beat running as a service) can result in a failure to start the service:

PS C:\Program Files\winlogbeat> restart-service winlogbeat
restart-service : Service 'winlogbeat (winlogbeat)' cannot be started due to
the following error: Cannot start service winlogbeat on computer '.'.
At line:1 char:1
+ restart-service winlogbeat
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (System.ServiceProcess.ServiceControl
   ler:ServiceController) [Restart-Service], ServiceCommandException
    + FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Comman
   ds.RestartServiceCommand

Logs contain the following error:

ERROR instance/beat.go:932 Exiting: data path already locked by another beat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions