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

metricbeat restart loop with error: data path already locked by another beat #914

Closed
endorama opened this issue Aug 12, 2022 · 3 comments
Closed
Assignees
Labels
bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team v8.5.0

Comments

@endorama
Copy link
Member

  • Version: 8.3.2
  • Operating System: (Running in Docker with elastic-package)
  • Steps to Reproduce:
    1. create policy integration (gcp package in my case, compute and loadbalancing_metrics data streams)
    2. add it to an agent
    3. change the policy
    4. observe the behaviour in Agent logs

Reporting as issue after internal discussion.

I noticed this error in Agent logs:

metricbeat stderr: Exiting: data path already locked by another beat. Please make sure that multiple beats are not sharing the same data path (path.data).

This happened consistently every time I updated a policy assigned to an agent. After this error the agent is in degraded state and tries to restart metricbeat, but it fails and gets stuck in this loop.

This is particularly painful for testing integrations, as I have to restart the agent each time to have it pick up a change to a policy.

NOTE: I've not been able to reproduce it in further tests made to gather information for opening this issue, but it happened consistently in previous tests.

@endorama endorama added the bug Something isn't working label Aug 12, 2022
@cmacknz cmacknz added Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team 8.6-candidate labels Aug 12, 2022
@michel-laterman
Copy link
Contributor

I think I made an issue in the beats repo for this: elastic/beats#31670

@fearful-symmetry
Copy link
Contributor

Yah, I assume this is an extension of the lockfile issues under elastic-agent, currently addressed in elastic/beats#33169

@cmacknz
Copy link
Member

cmacknz commented Sep 27, 2022

Closing as duplicate of elastic/beats#31670 unless we find a reason to treat this separately.

@cmacknz cmacknz closed this as completed Sep 27, 2022
@joshdover joshdover closed this as not planned Won't fix, can't repro, duplicate, stale Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team v8.5.0
Projects
None yet
Development

No branches or pull requests

5 participants