rrd4j persistence not working

I’m trying to set up rrd4j persistence on OpenHab. I keep getting the following error coming up coming up.

[ERROR] [i.h.s.p.PersistenceModelHelper] - Can’t open model file ‘rrd4j’

So I enabled the debug for rrd4j and I get this:

[DEBUG] [.p.rrd4j.internal.RRD4jService] - config 'objectClass' should have the format 'name.configkey' 2016-01-31 16:20:09.637 [DEBUG] [.p.rrd4j.internal.RRD4jService] - Created default_numeric = GAUGE heartbeat = 60 min/max = NaN/NaN step = 60 6 archives(s) = [ AVERAGE xff = 0.5 steps = 1 rows = 480 AVERAGE xff = 0.5 steps = 4 rows = 360 AVERAGE xff = 0.5 steps = 14 rows = 644 AVERAGE xff = 0.5 steps = 60 rows = 720 AVERAGE xff = 0.5 steps = 720 rows = 730 AVERAGE xff = 0.5 steps = 10080 rows = 520] 0 items(s) = [] 2016-01-31 16:20:09.638 [DEBUG] [.p.rrd4j.internal.RRD4jService] - Created default_other = GAUGE heartbeat = 3600 min/max = NaN/NaN step = 1 6 archives(s) = [ MAX xff = 0.999 steps = 1 rows = 3600 MAX xff = 0.999 steps = 10 rows = 1440 MAX xff = 0.999 steps = 60 rows = 1440 MAX xff = 0.999 steps = 900 rows = 2880 MAX xff = 0.999 steps = 21600 rows = 1460 MAX xff = 0.999 steps = 86400 rows = 3650] 0 items(s) = [] 2016-01-31 16:20:09.639 [INFO ] [.p.rrd4j.internal.RRD4jService] - Removing invalid defintion component = null heartbeat = 0 min/max = 0.0/0.0 step = 0 0 archives(s) = [] 0 items(s) = [] 2016-01-31 16:20:09.678 [DEBUG] [p.r.i.charts.RRD4jChartServlet] - Starting up rrd chart servlet at /rrdchart.png

openhab.cfg
# The name of the default persistence service to use persistence:default=rrd4j
rrd4j.persistence is as follows:
` // persistence strategies have a name and a definition and are referred to in the “Items” section
Strategies {
every1min : "0 * * * * ?"
everyHour : "0 0 * * * ?"
everyDay : “0 0 0 * * ?”

    // if no strategy is specified for an item entry below, the default list will be used
    default = everyChange
}

/*
 * Each line in this section defines for which item(s) which strategy(ies) should be applied.
 * You can list single items, use "*" for all items or "groupitem*" for all members of a group
 * item (excl. the group item itself).
 */
Items {
    // persist all items once a day and on every change and restore them from the db at startup
    * : strategy = everyChange, everyDay, restoreOnStartup
    BT_Furnace : strategy = every1min, restoreOnStartup
}

Groups {
    // additionally, persist all temperature and weather values every hour
    gSensors* : strategy = every1min
}

`

What am I missing?

Wrong filename: name it rrd4j.persist.

1 Like

Thanks sihui, that fixed it. Some times I can’t see the forest for the trees.