Http issues


Platform: Raspi with openhabian and OH 2.5.3 stable.

Recently I had multiple error messages in openhab.log after upgrading to 2.5.3.
According to some recommenations, I have deleted the cache and tmp
(rm -R /var/lib/openhab2/tmp/*)

Since then it’s worse: Even without any rules I get many errors like this:

2020-04-01 08:17:03.380 [ERROR] [    ] - Fatal transport error: Read timed out
2020-04-01 08:17:03.383 [ERROR] [ab.binding.http.internal.HttpBinding] - No response received from 'cacheLuft'

The same http cache config used to work before and the server is also available.

I removed the http binding and installed it again with Paper UI, but it die not help.
Any suggestions?

What I did to solve this issue was to remove this from configs:

# DEBUG: ausschalten von cacheLuft wegen log errors
# cacheLuft.url=
# cacheLuft.updateInterval=300000 

and in items file:

Number  Particles_PM10  "PM10 Partikel [%s] µg/m3"                  (G_jdbc,Group_HabPanel_Dashboard) //{http="<[cacheLuft:600000:JSONPATH($[0].sensordatavalues[0].value)]" }
Number  Particles_PM2   "PM2 Partikel [%s] µg/m3"                   (G_jdbc,Group_HabPanel_Dashboard) //{http="<[cacheLuft:600000:JSONPATH($[0].sensordatavalues[1].value)]" }

However, I still get:

2020-04-01 12:56:37.135 [ERROR] [    ] - Fatal transport error: Read timed out
2020-04-01 12:56:37.138 [ERROR] [ab.binding.http.internal.HttpBinding] - No response received from 'cacheLuft'

Is there any other place / file I should be deleting?

This version 1.x binding will not be picking up config changes in flight.
You must restart the binding (or the OH system)

I did:
Stopped OH
replaced http.cfg with new version.
replaced items file with new version.
deleted cache and tmp
start OH

cacheLuft still there

Oh, I always forget this bit. OH2 makes a “working” copy http.config for 1.x bindings. Stop OH, delete that, restart and it will make a new one.

It’s getting worse.

After stopping OH with
sudo systemctl stop openhab2.service
and cleaning the cache with
sudo openhab-cli clean-cache
sudo systemctl start openhab2.service
I don’t get logs anymore

Ah, awesome - thanks a lot - will do!