InfluxDB not persisting after backup

Hi, my raspberry pi didnt start, so i used a backup.
for this i copied var/lib/openhab and etc/openhab to a fresh openhabian install.
Now my Influx Database isnt working anymore. i deleted via “sudo apt-get remove influxdb” and reinstalled it again.

I always get this error, when trying to use .previousState(true)

Script execution of rule with UID 'Tageszeit_gBewohner-2' failed: An error occurred during the script execution: Could not invoke method: org.openhab.core.model.script.actions.BusEvent.sendCommand(org.openhab.core.items.Item,java.lang.String) on instance: null in Tageszeit_gBewohner

Exactly this rule worked flawless before my raspberries crash. The influxDB isnt storing the data/isnt storing it correctly.

Can someone help me get rid of this error?


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

Items {
* : strategy = everyChange

How do you know that is trying to use influxdb?

I would imagine that installed rrd4j and made it system default target (for things like rules functions).

i am using

item1.sendCommand(item2.previousState(true, "influxdb").state)

to make sure, that openhab is using influxdb

1 Like

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.