-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Couldn't get system state: Unknown property #291
Comments
After some initial investigation, it appears that the machines that are not complaining are running a higher version of systemd - 219 vs 208. The higher version outputs systemctl status differently, and the output includes a property 'State'. The question is, is the difference in output solely caused the difference in version (and if so, is the systemd collector only expected to work on machines with a certain version of systemd?) or is it caused by something else? Working machine:
Machine that complains:
|
Which version of the node-exporter are you using? Can you run this and see what it's reporting?
If you can't compile it yourself, here is a linux/amd64 binary: https://drive.google.com/file/d/0B5Dqy-L1tbQjeU1jeVZXX3NlT3c/view?usp=sharing @fabxc You probably have good systemd connections: Any ideas why this might be missing? Maybe it was introduced after 208 but haven't found anything in the changelog. |
@discordianfish Hi, I got Here's the example of my # systemctl status crond.service
crond.service - Command Scheduler
Loaded: loaded (/usr/lib/systemd/system/crond.service; enabled)
Active: active (running) since Mon 2016-08-29 16:14:16 CST; 8 months 1 days ago
Main PID: 434 (crond)
CGroup: /system.slice/crond.service
└─434 /usr/sbin/crond -n
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable. May be the |
Is this still an issue with the latest release? |
Same issue here. Host operating system: output of
|
@beylisstan Can you try if this still happens with 0.16.0? |
I believe this has been fixed in the meanwhile. If not, please re-open this issue. |
Could you please reopen this bug? Environment:
Here is some evidence:
|
It looks like this is coming from cc: @pgier |
@tiagoapimenta Can you verify that #1413 fixes this for you? |
Here it is:
Will it still be able to expose systemd metrics? |
I'm unable to build your code, here the steps I tried:
the error is the following:
|
Yes, only the The build error is because the package name is still Edit: Another easy way to test is to download the appropriate binary from the CI build https://circleci.com/gh/prometheus/node_exporter/6241#artifacts/containers/0 |
Well, the
The unit |
Thanks for testing, looks like the |
QA done, however for some strange reason Evidence:
|
The dbus property 'SystemState' and the timer property 'LastTriggerUSec' were added in version 212 of systemd. Check that the version of systemd is higher than 212 before attempting to query these properties systemd/systemd@f755e3b systemd/systemd@dedabea Resolves issue prometheus#291 Signed-off-by: Paul Gier <[email protected]>
The dbus property 'SystemState' and the timer property 'LastTriggerUSec' were added in version 212 of systemd. Check that the version of systemd is higher than 212 before attempting to query these properties systemd/systemd@f755e3b systemd/systemd@dedabea Resolves issue #291 Signed-off-by: Paul Gier <[email protected]>
I'll consider this to be fixed. Lemme know if someone still runs into this issue. |
The same issue occurred in our vm, and the version of node_exporter is also relatively new. node_exporter, version 1.2.0 (branch: HEAD, revision: 1296894) |
@cokepizza Do you just get the "Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable." warning or also "ERROR: systemd collector failed after 0.009243s: couldn't get system state: Unknown property"? |
The dbus property 'SystemState' and the timer property 'LastTriggerUSec' were added in version 212 of systemd. Check that the version of systemd is higher than 212 before attempting to query these properties systemd/systemd@f755e3b systemd/systemd@dedabea Resolves issue prometheus#291 Signed-off-by: Paul Gier <[email protected]>
The dbus property 'SystemState' and the timer property 'LastTriggerUSec' were added in version 212 of systemd. Check that the version of systemd is higher than 212 before attempting to query these properties systemd/systemd@f755e3b systemd/systemd@dedabea Resolves issue prometheus#291 Signed-off-by: Paul Gier <[email protected]>
This is appearing frequently in /var/log/messages:
Aug 25 12:46:18 bamboo node_exporter: time="2016-08-25T12:46:18Z" level=error msg="ERROR: systemd collector failed after 0.009243s: couldn't get system state: Unknown property" source="node_exporter.go:91"
Not sure if I should care and/or how to silence it.
The text was updated successfully, but these errors were encountered: