-
Notifications
You must be signed in to change notification settings - Fork 700
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
Version 0.25.1 occasional startup issues #1398
Comments
Just wanted to note that I'm also seeing similar. We also have a large number of servers and for the most part it's fine but a handful of servers will show this error. Restarting fixes it. |
When I follow the error line to see where the windows_exporter/pkg/perflib/perflib.go Line 267 in 96c1412
This functions calls more than once the following binary reader: windows_exporter/pkg/perflib/raw_types.go Lines 90 to 92 in 96c1412
this reader could return EOF if the given buffer is empty. So one thing what could happen is that for example the queryraw func returns an empty buffer here:windows_exporter/pkg/perflib/perflib.go Lines 268 to 283 in 96c1412
which would then return the Since it is not really reproducible and very hard to guess on what Maybe something like this: if err != nil {
return nil, fmt.Errorf("failed to read performance data block for %s with: %v", query, err)
} @breed808 or @jkroepke do you think that would be worth adding? I am open to create PR :) |
Just to mention that i also stumbled upon this issue. Occurrence ratio ~3% (1 out of 33hosts). Although restarting the service did not fix the issue for me |
Are you able to test your fix? |
@jkroepke did you address me? Cos I don't have a solution/fix for this, my approach would only add more visibility which could help to find the cause of this problem. But I just saw the PR #1459 and I think the effort should go more in this direction. Cos if I understand it correctly by success of this PR most of the perflib calls would go away anyways. |
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs. |
Hello, regarding the problem it went away when i updated my hosts to windows 11 |
i'm going to close the issue. If it still appears. Please create a new one. |
Sometime when the
windows_exporter
start we get this error (event log):ts=2024-01-28T03:43:29.147Z caller=stdlib.go:105 level=error caller=http.go:144 msg="error gathering metrics: error collecting metric Desc{fqName: \"windows_exporter_collector_success\", help: \"windows_exporter: Whether the collector was successful.\", constLabels: {}, variableLabels: {collector}}: failed to prepare scrape: EOF"
The issue is that once the error has happened at startup, the service is up but is unable to recover; The service should either:
Additional informations
The text was updated successfully, but these errors were encountered: