Since a couple of days, I’m getting the following warning in my openhab.log file when I try to use the persistence API function “previousState” in my JS rule on one specific item (“previousState” is working without errors/warnings on the other items):
2024-11-15 09:53:40.844 [WARN ] [rnal.influx2.InfluxDB2RepositoryImpl] - Failed to execute query 'FilterCriteria [itemName=vHOUS_SAInverterBusVoltageTotal_Volt, beginDate=null, endDate=2024
-11-15T09:53:30.840776089-07:00[America/Phoenix], pageNumber=0, pageSize=1000, operator=EQ, ordering=DESCENDING, state=null]': timeout
At the same time the following warning is showing in the InfluxDB logfile:
ts=2024-11-15T17:08:11.674126Z lvl=warn msg="internal error not returned to client" log_id=0stB6~u0000 handler=error_logger error="context canceled"
The line in the JS rule which produces this error message is:
const isBusVoltageChangedPrevState = items.vHOUS_SAInverterBusVoltageTotal_Volt.persistence.previousState(true);
The item definition looks like this:
Number:ElectricPotential vHOUS_SAInverterBusVoltageTotal_Volt "SA Inverter Bus Voltage Total" <sun> (gSolar) {channel="mqtt:topic:mymosquittobroker:SolarAssistant:InverterBusVoltageTotal_Volt"}
I’m running OpenHAB 4.2.0 with InfluxDB 2.7.10 (both via docker).
There are no other issues with the installation. It runs since many months without problems (just updated InfluxDB from 2.7.3 to 2.7.10 to see if the error will go away, but it’s the same under both versions).
I don’t know, why this error occur.
Any ideas how I may dig deeper into analyzing this problem?
update:
Just updated from OH 4.2.0 to 4.2.2 but the problem is still there.