Ahiel
(Ahiel)
May 17, 2017, 8:50am
1
Hello,
I’m using OH2, with rrd4j and getting lots of errors with some (most of them is ok) of my items.
[ERROR] [sistence.rrd4j.internal.RRD4jService] - Could not create rrd4j database file ‘/var/lib/openhab2/persistence/rrd4j/washingMachineWatts.rrd’: sync failed
Using REST I can see the value of the item in rrd4j presistence, but still my log is full with errors…
I’ve tried to delete the file, didn’t help.
Does anybody has any idea how to solve it?
Thanks ahead.
opus
(Jürgen Baginski)
May 18, 2017, 3:55am
2
Could you post the files which configure rrd4j and the item definitions?
opus
(Jürgen Baginski)
May 18, 2017, 6:10am
4
rrd4j needs a strategy for every minute.
rrd4j does only persist numerical data, you have strategy for all items!
You did not show your rrd4j.cfg file.
Ahiel
(Ahiel)
May 18, 2017, 6:18am
5
The problem is with numerical data (float)
my rrd4j.cfg is empty (only comments…)
opus
(Jürgen Baginski)
May 18, 2017, 8:03am
6
The last line in that file (xxx.items…) defines which items are persisted!
Ahiel
(Ahiel)
May 18, 2017, 8:10am
7
Yes, but by default all the items persist
opus
(Jürgen Baginski)
May 18, 2017, 9:07am
8
In this case I have to repeat my first statement.
rrd4j needs a strategy every Minute which you do not use.
Ahiel
(Ahiel)
May 18, 2017, 10:19am
9
At the beginning it was every minute and then night log was filled with errors so I change it to every hour…
It wasn’t working even with one minutes
Did you find a solution? I have the same problem since I persist my cpu load of my raspberry. I am using openhabian with a raspberry pi 3 and as well I persist everyMinute.
20:03:28.544 [ERROR] [sistence.rrd4j.internal.RRD4jService] - Could not create rrd4j database file '/var/lib/openhab2/persistence/rrd4j/Systeminfo_openhabian_Cpu_Load.rrd': sync failed
Thank you for your help!
KevinHab
(Kevin Hab)
June 2, 2017, 10:10am
12
Hi @Ahiel @johannesbonn
For example to you :
rrd4j.cfg file :
Strategies {
everyMinute : "0 * * * * ?"
everyHour : "0 0 * * * ?"
everyDay : "0 0 0 * * ?"
default = everyChange
}
Items {
* : strategy = everyMinute, everyChange, restoreOnStartup
}
demo.items file :
Number MyReport “Report”
I think your item name should have no “_” in your item name.
Ex: MyReport is OK
My_Report isn’t OK
Try it and good luck
Ahiel
(Ahiel)
June 2, 2017, 12:32pm
13
My items has no underscore…
KevinHab
(Kevin Hab)
June 5, 2017, 2:27am
14
Unfortunely!
In my case, it is OK.
You can try in new OH2 to check it.
Regards
Ahiel
(Ahiel)
June 25, 2017, 11:42am
15
I have tried with a new openhabian image… still the same…
opus
(Jürgen Baginski)
June 25, 2017, 1:11pm
16
Did you check the Karaf-Console? Try setting the logging-level of rrd4j to debug.
Ahiel
(Ahiel)
June 26, 2017, 6:31am
17
Well I moved to influxdb… (because of that and because of grafana…)