-
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
OS collector fails with message "failed collecting os metrics:<nil> CreateFile D:\pagefile.sys: The system cannot find the file specified." #1069
Comments
Strange, this should have been resolved in #954. Are you seeing any relevant output from the exporter for the |
thanks @breed808 for quick turn around. Appreciate it. |
I've tried to reproduce this on a spare Windows 10 system but have failed. The exporter continues without failure, with paging on D:\ set to "system managed" and paging on C:\ disabled. The only meaningful difference I can see is the addition of the |
I'm running into the same/related issue. The OS collector fails with the error: The registry value for
The system is indeed configured to create a page file on B: with system managed size: However, the error message is correct, and the page file doesn't actually exist on B:. The page file on C: exists with the correct size. Windows itself doesn't seem to care that the file is missing, it just doesn't show up in the Performance Monitor: I don't know why the file doesn't exist, I couldn't find any warnings or errors in the event viewer. The disk is writable but completely empty. Maybe Windows just decided that 0 MB is the correct size and just doesn't create the file, who knows. This whole situation seems a bit nonsensical and misconfigured, but it is apparently a configuration that Windows allows, and it is the one I have to deal with for now. My issue is that this missing file causes the whole OS collector to fail. I think an appropriate solution would be to just skip a page file if it is missing and don't add anything to the total, instead of returning an error here: EDIT: |
Great work investigating that 👍. Float values in golang initialise at 0 so omitting the error check is fine here. @ReneZeidler could I get you to test the feature branch in #1108 before I merge it? |
Thanks for the fix. Unfortunately, the exporter now crashes:
The line fsipf += float64(file.Size()) needs to be wrapped in an |
When this fix will be released? |
Release candidate for v0.21.0 has been made available. v0.21.0 release will be available in about a week if no blocking issues are raised. |
Any update on the release please? we are waiting for this fix |
@breed808 any updates on the release please? |
@chavalikesavanand did the v0.21.0 release candidate resolve your issue? I'm hoping to have the official v0.21.0 released after merging #1133; unfortunately life has got in the way and delayed me a few weeks. |
@breed808 unfortunately this is reproducible only on our prod servers. we cannot test there without a formal release here. Hence looking out for .21 official release eagerly |
@breed808 any update on release .21 please? |
We are using 0.19.0 version with Prometheus 2.34.0.
windows_exporter_collector_success shows 0 for os collector. All other collectors succeeded.
we checked that pagefile is indeed enabled only on d: drive with "system managed" size. It is disabled on c: drive
we already tried executing lodctr /R many times and restarting windows exporter windows service many times.
Windows exporter windows service runs in local system account.
Windows exporter config:
collectors:
enabled: cpu,cpu_info,cs,iis,logical_disk,logon,memory,net,os,process,service,system,time
The text was updated successfully, but these errors were encountered: