RRD4J stopped working for some Items

hi. some of my items do not show up in chart graphs anymore. I tried to restart openhab, clear caches and reinstall the RRJD Binding.
any idea whats wrong? thanks!

Number Heizkoerper_Vorlauf "Heizkörper Vorlauf [%.1f °C]"    <temperature> (gHeizkoerper)    {channel="mqtt:topic:myBroker:Umwaelzpumpe:Heizkoerper_Vorlauf" }
Number Heizkoerper_Ruecklauf "Heizkörper Rücklauf [%.1f °C]" <temperature> (gHeizkoerper)    {channel="mqtt:topic:myBroker:Umwaelzpumpe:Heizkoerper_Ruecklauf" }
2019-02-18 10:36:23.047 [vent.ItemStateChangedEvent] - Heizkoerper_Vorlauf changed from 40.2 to 42.8
2019-02-18 10:36:23.049 [vent.ItemStateChangedEvent] - Heizkoerper_Ruecklauf changed from 23.3 to 23.2
2019-02-18 10:41:23.183 [vent.ItemStateChangedEvent] - Heizkoerper_Vorlauf changed from 42.8 to 45.0
2019-02-18 10:41:23.184 [vent.ItemStateChangedEvent] - Heizkoerper_Ruecklauf changed from 23.2 to 23.4
2019-02-18 10:46:23.282 [vent.ItemStateChangedEvent] - Heizkoerper_Vorlauf changed from 45.0 to 46.9
2019-02-18 10:46:23.284 [vent.ItemStateChangedEvent] - Heizkoerper_Ruecklauf changed from 23.4 to 23.7
2019-02-18 10:51:23.405 [vent.ItemStateChangedEvent] - Heizkoerper_Vorlauf changed from 46.9 to 48.7
2019-02-18 10:56:23.502 [vent.ItemStateChangedEvent] - Heizkoerper_Vorlauf changed from 48.7 to 49.9
2019-02-18 10:56:23.505 [vent.ItemStateChangedEvent] - Heizkoerper_Ruecklauf changed from 23.7 to 23.9
2019-02-18 11:01:23.606 [vent.ItemStateChangedEvent] - Heizkoerper_Vorlauf changed from 49.9 to 50.7
2019-02-18 11:01:23.637 [vent.ItemStateChangedEvent] - Heizkoerper_Ruecklauf changed from 23.9 to 24.4
2019-02-18 11:06:23.725 [vent.ItemStateChangedEvent] - Heizkoerper_Vorlauf changed from 50.7 to 46.7
2019-02-18 11:06:23.740 [vent.ItemStateChangedEvent] - Heizkoerper_Ruecklauf changed from 24.4 to 29.9
    Default item=Heizkoerper_Vorlauf
    Default item=Heizkoerper_Ruecklauf
    Chart item=Heizkoerper_Vorlauf period=4h refresh=60000 legend=true
    Chart item=Heizkoerper_Ruecklauf period=4h refresh=60000 legend=true

Did you change anything else before that?

I knew that question will come :wink:
already thought about that, I added another mqtt device and played with some rules. but not related to those items that now do not work anymore… further, it seems that RRJD stopped working for those items somewhen short before midnight, I have an alibi for that time.

meanwhile I changed the item name for testpurpose and can chart it successfully. when I rename it to the previous name it doesn’t work. is it possible that the RRJD is somehow weird? re-installing the RRJD binding does not delete stored values, it keeps it’s database or whatever it is as it is. can one manually edit or delete the RRJD file?

Are you using a raspi with SD card? It’s possible that the rrd4j file for that item became corrupted


in: /var/lib/openhab2

I’m running openhab on a laptop, bad SD Card is not the reason…
I played a little bit with the REST API and found out that there are no entries for that item:

  "name": "Heizkoerper_Vorlauf",
  "datapoints": "0",
  "data": []

I stopped openhab, deleted file Heizkoerper_Vorlauf.rrd, restarted openhab.
strange, same issue. the values are not stored in the persistence file.

I’m sure that you have looked at it, but may we see your rrd4j.persist ?


Strategies {
	everyMinute : "0 * * * * ?"
	default = everyChange

Items {

	* : strategy = everyUpdate, everyMinute 

this is the REST API output for the other item:

  "name": "Heizkoerper_Ruecklauf",
  "datapoints": "358",
  "data": [
      "time": 1550513520000,
      "state": "30.549999999999997"
      "time": 1550513760000,
      "state": "31.6"
      "time": 1550514000000,
      "state": "31.5"

as I couldn’t check every single item for valid datapoint entries, I decided to delete all of them including the groups. so, after stopping, deleting rrd files and starting openhab again, everything seems fine again.

I had the same problem that some of the items stopped recording and even past data got lost whereas other items run well. After deleting the rrd files from my synology and restarting openhab everything runs again. Of course, it is not satisfactory to repeat this procedure every couple of months. Does anyone has an idea what could be the reason?
Since the deleted files seemed to be rather obviously corrupted (I compared them with the running ones) I would have a possibility to display the rrd content in a readable form. Does anyone know a suitable editor or tool for this?

Have a look here.

1 Like

Thanks for the quick reply. But when starting the RrdInspector I get the following error message:

Fontconfig error: Cannot load default config file
Exception in thread "main" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
        at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204)
        at java.awt.Window.<init>(Window.java:536)
        at java.awt.Frame.<init>(Frame.java:420)
        at javax.swing.JFrame.<init>(JFrame.java:233)
        at org.rrd4j.inspector.RrdInspector.<init>(Unknown Source)
        at org.rrd4j.inspector.RrdInspector.main(Unknown Source)

I am not very familiar with Java. My system runs on a synology, where Java8 is installed. Can you give me a hint?

You need to copy and start it in your pc not on the (headless) systym running openhab!

Many thanks. It works :grinning: Sorry for answering late - too many business.

1 Like