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

[Flaky Test]: TestBeatsServerless/TestRunAndCheckData – elastic-agent logged an unexpected error: Error fetching data for metricset system.process #6431

Closed
ycombinator opened this issue Dec 23, 2024 · 9 comments
Assignees
Labels
flaky-test Unstable or unreliable test cases. Team:Elastic-Agent Label for the Agent team

Comments

@ycombinator
Copy link
Contributor

Failing test case

TestBeatsServerless/TestRunAndCheckData

Error message

elastic-agent logged an unexpected error: Error fetching data for metricset system.process: non fatal error; reporting partial metrics: error fetching PID metrics for 1 processes, most likely a "permission denied" error. Enable debug logging to determine the exact cause.

Build

https://buildkite.com/elastic/elastic-agent-extended-testing/builds/5776#0193f478-fb7b-4f04-b543-140fe8b4a56b

OS

Linux

Stacktrace and notes

>>> (linux-amd64-ubuntu-2404-default) Test output (sudo) (stdout): === FAIL: testing/integration TestBeatsServerless/TestRunAndCheckData (80.50s)
>>> (linux-amd64-ubuntu-2404-default) Test output (sudo) (stdout): beats_serverless_test.go:197:
>>> (linux-amd64-ubuntu-2404-default) Test output (sudo) (stdout): Error Trace:	/home/ubuntu/agent/testing/integration/beats_serverless_test.go:197
>>> (linux-amd64-ubuntu-2404-default) Test output (sudo) (stdout): Error:      	Received unexpected error:
>>> (linux-amd64-ubuntu-2404-default) Test output (sudo) (stdout): elastic-agent logged an unexpected error: Error fetching data for metricset system.process: non fatal error; reporting partial metrics: error fetching PID metrics for 1 processes, most likely a "permission denied" error. Enable debug logging to determine the exact cause.
>>> (linux-amd64-ubuntu-2404-default) Test output (sudo) (stdout): Test:       	TestBeatsServerless/TestRunAndCheckData
@ycombinator ycombinator added flaky-test Unstable or unreliable test cases. Team:Elastic-Agent Label for the Agent team labels Dec 23, 2024
@elasticmachine
Copy link
Contributor

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

@ycombinator
Copy link
Contributor Author

@ycombinator
Copy link
Contributor Author

@ycombinator
Copy link
Contributor Author

This is the error message that's seen in the failing test:

Error fetching data for metricset system.process: non fatal error; reporting partial metrics: error fetching PID metrics for 1 processes, most likely a "permission denied" error. Enable debug logging to determine the exact cause.

It looks like this message was introduced on December 12, 2024 ago via elastic/elastic-agent-system-metrics#195. A new release of elastic-agent-system-metrics, 0.11.5, containing the above change (and other changes as well), was made on the same day. This new release was pulled into Beats on the same day as well.

@VihasMakwana you are probably most familiar with this area of code so I'm assigning this issue to you for investigation. Thanks.

@ycombinator ycombinator changed the title [Failing Test]: TestBeatsServerless/TestRunAndCheckData – elastic-agent logged an unexpected error: Error fetching data for metricset system.process [Flaky Test]: TestBeatsServerless/TestRunAndCheckData – elastic-agent logged an unexpected error: Error fetching data for metricset system.process Dec 23, 2024
@ycombinator
Copy link
Contributor Author

@ycombinator
Copy link
Contributor Author

@VihasMakwana I think we can close this issue now that you have resolved the underlying cause of the test flakiness?

@VihasMakwana
Copy link
Contributor

Closed by #6438

@archon810
Copy link

What version is the fix available in? We're currently seeing this error in our production logs on version 8.17.1.

@mauri870
Copy link
Member

What version is the fix available in?

The fix should be available in 8.16.3 and 8.17.1.

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

No branches or pull requests

5 participants