openhab-core
openhab-core copied to clipboard
Could not create rrd4j database file
When using RRD4j as persistence service i constantly get the following error when setting up a MQTT Item with the setup described below.
[ERROR] [d4j.internal.RRD4jPersistenceService] - Could not create rrd4j database file /var/lib/openhab/persistence/rrd4j/mqtt_testung_item.rrd': null
- Install a MQTT broker (Mosquitto)
- Install and configure the MQTT broker bridge (no special configuration)
- Configure a MQTT Thing with bridge from above
- Add a channel with identifier
mqtt_testung_channelwith state- and command-topicmqtt_testung_topicandWhas measurement unit - Link and add an Item
mqtt_testung_itemwith typeNumber:Energy, semantic classMeasurementand semantic propertyEnergy(I assume that those details are not very relevant) - Add a rule with name
mqtt_testung_rulewith a trigger of your choice (one that gets updated frequently) and a script as follows (note thatsmartpi_ptotis also my trigger state)
DSL: events.sendCommand('mqtt_testung_item', itemRegistry.getItem('smartpi_ptot').getState());
When removing the rule, the error is gone in the openhab log. I'm not sure if this is because no command is posted anymore or if this is for other reasons.
System environment:
runtimeInfo:
version: 3.3.0
buildString: Release Build
locale: en-AT
systemInfo:
configFolder: /etc/openhab
userdataFolder: /var/lib/openhab
logFolder: /var/log/openhab
javaVersion: 11.0.16
javaVendor: Ubuntu
osName: Linux
osVersion: 5.15.0-1013-raspi
osArchitecture: aarch64
availableProcessors: 4
freeMemory: 145644896
totalMemory: 223346688
startLevel: 100
bindings:
- mqtt
- netatmo
- tado
clientInfo:
device:
ios: false
android: false
androidChrome: false
desktop: true
iphone: false
ipod: false
ipad: false
edge: false
ie: false
firefox: false
macos: false
windows: false
cordova: false
phonegap: false
electron: false
nwjs: false
webView: false
webview: false
standalone: false
pixelRatio: 1
prefersColorScheme: light
isSecureContext: false
locationbarVisible: true
menubarVisible: true
navigator:
cookieEnabled: true
deviceMemory: N/A
hardwareConcurrency: 8
language: de-AT
languages:
- de-AT
- de
- en-US
- en
onLine: true
platform: Linux x86_64
screen:
width: 3440
height: 1440
colorDepth: 24
support:
touch: false
pointerEvents: true
observer: true
passiveListener: true
gestures: false
intersectionObserver: true
themeOptions:
dark: dark
filled: true
pageTransitionAnimation: default
bars: light
homeNavbar: default
homeBackground: default
expandableCardAnimation: default
userAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/104.0.0.0 Safari/537.36
timestamp: 2022-08-14T22:20:49.075Z