Hello all, some items do not persist, I’m using mapdb & rrd4j, and mapdb is my default service
I update items from ui , but they are not persist.
And I turned Logging for persistance I’m getting this error
2020-09-20 18:46:22.057 [ERROR] [sistence.rrd4j.internal.RRD4jService] - Could not create rrd4j database file '/var/lib/openhab2/persistence/rrd4j/Relay02.rrd': Read failed, file /var/lib/openhab2/persistence/rrd4j/Relay02.rrd not mapped for I/O
here is my configurations:
rrd4j.persist
Strategies {
// for rrd charts, we need a cron strategy
everyMinute : "0 * * * * ?"
everyHour : "0 0 * ? * *"
everyDay : "0 0 0 * * ?" // Every day at midnight - 12am
default = everyChange
}
Items {
Control* : strategy = everyUpdate, everyMinute
}
mapdb.persist
Strategies {
default = everyChange
}
Items {
// persist Control items on every change
Control*, ControlPeriod, Sensors* : strategy = everyUpdate, restoreOnStartup
}
runtime.cfg
################ PERSISTENCE ####################
# The persistence service to use if no other is specified.
#
org.eclipse.smarthome.persistence:default=mapdb
items
Only Relay01, Relay02 are persist
Group Control "Control" <switch>
Switch Relay01 "Relay01" <switch> (Control) ["Relay"] {gpio="pin:2"}
Switch Relay02 "Relay02" <switch> (Control) ["Relay"] {gpio="pin:3"}
Switch Relay03 "Relay03" <switch> (Control) ["Relay"] {gpio="pin:17"}
Switch Relay04 "Relay04" <switch> (Control) ["Relay"] {gpio="pin:4"}
Switch Relay05 "Relay05" <switch> (Control) ["Relay"] {gpio="pin:27"}
Persistence REST API
http://openhabip:8080/rest/persistence/items/Relay02?serviceId=rrd4j
{
"name": "Relay02",
"datapoints": "0",
"data": []
}
---------------------------
http://openhabip:8080/rest/persistence/items/Relay01?serviceId=rrd4j
{
"name": "Relay01",
"datapoints": "1101",
"data": [
{
"time": 1600561380000,
"state": "ON"
},
{
"time": 1600561440000,
"state": "ON"
},
{
"time": 1600561440000,
"state": "ON"
},
{
"time": 1600561500000,
"state": "ON"
},.............................