openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.9k stars 3.59k forks source link

[http] binding stops polling #17633

Open sipvoip opened 3 weeks ago

sipvoip commented 3 weeks ago

http binding 4.2.2 - The binding stops polling and then restarts minutes later. This happens every few minutes to hours.

I would expect the binding to continue polling based on refresh. When I look at TRACE logs, there is nothing. When it stops working, it just freezes, restarts, and refreshes every 30 seconds like nothing is wrong.

OpenHabian 4.2.2

Thing http:url:rainwise "Rainwise" [
  baseURL="http://10.88.64.97/weather.json", refresh=30] {
    Channels:
      Type string : temp "Temperature" [ stateTransformation="JSONPATH:$.us.atmp.tic" ]
}

Thing http:url:usgs "USGS" [
  baseURL="https://waterservices.usgs.gov/nwis/iv/?sites=01616500&parameterCd=00065", timeout=30000, refresh=3600] {
    Channels:
      Type string : level "Level" [ stateTransformation="XSLT:usgs_level.xsl" ]
}

Thing http:url:outback "Outback" [
  baseURL="http://10.88.64.2/Dev_status.cgi?&Port=0", refresh=60] {
    Channels:
      Type string : dev_status "Dev_status"
}

Thing http:url:pokeys46 "HVAC Temps" [
  baseURL="http://10.88.64.46/devStat.xml", refresh=30] {
    Channels:
      Type string : hvac_supply "HVAC Supply Temp" [ stateTransformation="XSLT:hvac_supply.xsl" ]
      Type string : hvac_return "HVAC Return Temp" [ stateTransformation="XSLT:hvac_return.xsl" ]
}

Thing http:url:pokeys47 "HVAC Temps" [
  baseURL="http://10.88.64.47/devStat.xml", refresh=30] {
    Channels:
      Type string : hvac_supply "HVAC Supply Temp" [ stateTransformation="XSLT:hvac_supply.xsl" ]
      Type string : hvac_return "HVAC Return Temp" [ stateTransformation="XSLT:hvac_return.xsl" ]
}

Thing http:url:pokeys48 "HVAC Temps" [
  baseURL="http://10.88.64.48/devStat.xml", refresh=30] {
    Channels:
      Type string : hvac_supply "HVAC Supply Temp" [ stateTransformation="XSLT:hvac_supply.xsl" ]
      Type string : hvac_return "HVAC Return Temp" [ stateTransformation="XSLT:hvac_return.xsl" ]
}

Thing http:url:pokeys49 "HVAC Temps" [
  baseURL="http://10.88.64.49/devStat.xml", refresh=30] {
    Channels:
      Type string : hvac_supply "HVAC Supply Temp" [ stateTransformation="XSLT:hvac_supply.xsl" ]
      Type string : hvac_return "HVAC Return Temp" [ stateTransformation="XSLT:hvac_return.xsl" ]
      Type string : hvac1_supply "HVAC1 Supply Temp" [ stateTransformation="XSLT:hvac1_supply.xsl" ]
      Type string : hvac1_return "HVAC1 Return Temp" [ stateTransformation="XSLT:hvac1_return.xsl" ]
      Type string : hvac2_supply "HVAC2 Supply Temp" [ stateTransformation="XSLT:hvac2_supply.xsl" ]
      Type string : hvac2_return "HVAC2 Return Temp" [ stateTransformation="XSLT:hvac2_return.xsl" ]

}

J-N-K commented 3 weeks ago

It stops and then recovers without any intervention? Can you provide a TRACE log?

sipvoip commented 3 weeks ago

Sure, best way I found to see gaps is to turn off line wrapping or cat it to "less -S +F" openhab.zip

sipvoip commented 3 weeks ago

It stops and then recovers without any intervention? Can you provide a TRACE log?

Anything useful in the logs?