[SOLVED] Key 'felix.fileinstall.filename' does not follow the expected pattern '<id>.<url|updateInterval>'

2019-02-17 14:48:53.850 [WARN ] [ab.binding.http.internal.HttpBinding] - given config key 'felix.fileinstall.filename' does not follow the expected pattern '<id>.<url|updateInterval>'
2019-02-17 14:48:53.854 [INFO ] [b.core.service.AbstractActiveService] - HTTP Refresh Service has been started
2019-02-17 14:48:54.951 [INFO ] [b.core.service.AbstractActiveService] - HTTP Refresh Service has been shut down

What does it mean?

How can I fix it?

thanks
Andrea

What do you have in your http.cfg file?

http.cfg


MeteoalarmToday.url=http://www.meteoalarm.eu/en_UK/0/0/IT003-Lombardia.html
MeteoalarmToday.updateInterval=600000

MeteoalarmTomorrow.url=http://www.meteoalarm.eu/en_UK/1/0/IT003-Lombardia.html
MeteoalarmTomorrow.updateInterval=600000

AqicnSenato.url= https://api.waqi.info/feed/@9118/?token=xxxxx
AqicnSenato.updateInterval=600000

AqicnPascal.url= https://api.waqi.info/feed/@9132/?token=xxxxx
AqicnPascal.updateInterval=600000

darkSKY.url= https://api.darksky.net/forecast/xxxxx/45.465049,9.094616?units=si
darkSKY.updateInterval=600000

weatherbit.url=https://api.weatherbit.io/v2.0/current?lat=45.465049&lon=9.094616&key=xxxxx
weatherbit.updateInterval=600000

weatherbitFore.url=https://api.weatherbit.io/v2.0/forecast/daily?lat=45.465049&lon=9.094616&key=xxxxx
weatherbitFore.updateInterval=3600000

#PollenCache.url=https://weather.com/forecast/allergy/l/ITXX0042:1:IT
#PollenCache.updateInterval=600000

#UviIndexCache.url=http://api.openweathermap.org/data/2.5/uvi?appid=xxxxx&lat=45.465051&lon=9.094615
#UviIndexCache.updateInterval=900000

if I see the config via console:

openhab> config:list "(service.pid=org.openhab.http)"
----------------------------------------------------------------
Pid:            org.openhab.http
BundleLocation: ?
Properties:
   AqicnPascal.updateInterval = 600000
   AqicnPascal.url = https://api.waqi.info/feed/@9132/?token=xxxxx
   AqicnSenato.updateInterval = 600000
   AqicnSenato.url = https://api.waqi.info/feed/@9118/?token=xxxxx
   MeteoalarmToday.updateInterval = 600000
   MeteoalarmToday.url = http://www.meteoalarm.eu/en_UK/0/0/IT003-Lombardia.html
   MeteoalarmTomorrow.updateInterval = 600000
   MeteoalarmTomorrow.url = http://www.meteoalarm.eu/en_UK/1/0/IT003-Lombardia.html
   PollenCache.updateInterval = 600000
   PollenCache.url = https://weather.com/forecast/allergy/l/ITXX0042:1:IT
   darkSKY.updateInterval = 600000
   darkSKY.url = https://api.darksky.net/forecast/xxxxx/45.465049,9.094616?units=si
   felix.fileinstall.filename = file:/var/lib/openhab2/etc/org.openhab.http.cfg
   format = true
   granularity = 1000
   service.pid = org.openhab.http
   timeout = 5000
   weatherbit.updateInterval = 600000
   weatherbit.url = https://api.weatherbit.io/v2.0/current?lat=45.465049&lon=9.094616&key=xxxxx
   weatherbitFore.updateInterval = 3600000
   weatherbitFore.url = https://api.weatherbit.io/v2.0/forecast/daily?lat=45.465049&lon=9.094616&key=xxxxx

my /var/lib/openhab2/etc/org.openhab.http.cfg

AqicnPascal.updateInterval = "600000"
AqicnPascal.url = "https://api.waqi.info/feed/@9132/?token=xxxxx"
AqicnSenato.updateInterval = "600000"
AqicnSenato.url = "https://api.waqi.info/feed/@9118/?token=xxxxx"
darkSKY.updateInterval = "600000"
darkSKY.url = "https://api.darksky.net/forecast/xxxxx/45.465049,9.094616?units=si"
format = B"true"
granularity = "1000"
MeteoalarmToday.updateInterval = "600000"
MeteoalarmToday.url = "http://www.meteoalarm.eu/en_UK/0/0/IT003-Lombardia.html"
MeteoalarmTomorrow.updateInterval = "600000"
MeteoalarmTomorrow.url = "http://www.meteoalarm.eu/en_UK/1/0/IT003-Lombardia.html"
PollenCache.updateInterval = "600000"
PollenCache.url = "https://weather.com/forecast/allergy/l/ITXX0042:1:IT"
timeout = "5000"
weatherbit.updateInterval = "600000"
weatherbit.url = "https://api.weatherbit.io/v2.0/current?lat=45.465049&lon=9.094616&key=xxxxx"
weatherbitFore.updateInterval = "3600000"
weatherbitFore.url = "https://api.weatherbit.io/v2.0/forecast/daily?lat=45.465049&lon=9.094616&key=xxxxx"

Looking at the warning above and this entry.

felix.fileinstall.filename = file:/var/lib/openhab2/etc/org.openhab.http.cfg

OH is giving a warning about the pattern. How often does this warning show up and does it create any issues with your setup?

No issues at the moment … but why put a WARN if this is required? and if not, why put this piece in the standard config?

I suspect you have a wonky http.config cache file. Stop openHAB, delete it, and it will be recreated from http.cfg

1 Like

do I need to perform a

config:property-delete -p org.openhab.http felix.fileinstall.filename

before doint a clear-cache?

Andrea

I wouldn’t, just clear the cache and see if that alone will work. If it doesn’t then add the extra step and clean the cache again.

I didn’t understand the process.

I have:

  • /var/lib/openhab2/etc/org.openhab.http.cfg
  • /var/lib/openhab2/config/org/openhab/http.config
  • /etc/openhab2/services/http.cfg

Who is doing what?

Btw I’ve cleared the cache, and restarted. Nothing. and

config:property-delete -p org.openhab.http felix.fileinstall.filename

is not doing anything from config:list perspective

The only file that should be edited is /etc/openhab2/services/http.cfg. OH should automatically handle the changes to all other files. Of course that’s when everything is working as it should.:wink:

Have you tried uninstalling then reinstalling the associated binding?

A few other questions that may help:

What OH version are you using?
How did you install OH?
What platform is OH running on?
Did this happen after an update or after a binding install?

1 Like

The “issue” appears after upgrading from #1502 to #1524

openhabian #1524 here

If your picky, like me,:laughing: and don’t want to see warnings in your logs then you might have to roll back to 1502.

Also check github to see if there’s an open issue, If not create one as this seems to be related to the 1524 snapshot build. If you like to troubleshoot, once again like me, run OH with the latest snapshot on a second RPI or VM. Once you have all the bugs/warnings cleared then update your production server.

1 Like

I’ve found a solution:

  • remove the binding completely
  • remove the file /var/lib/openhab2/etc/org.openhab.http.cfg
  • reboot the machine (restart OH won’t solve completely -> not able to see the config via console)

now my config:list

----------------------------------------------------------------
Pid:            org.openhab.http
BundleLocation: mvn:org.openhab.binding/org.openhab.binding.http/1.14.0-SNAPSHOT
Properties:
   AqicnPascal.updateInterval = 600000
   AqicnPascal.url = https://api.waqi.info/feed/@9132/?token=xxxxx
   AqicnSenato.updateInterval = 600000
   AqicnSenato.url = https://api.waqi.info/feed/@9118/?token=xxxxx
   MeteoalarmToday.updateInterval = 600000
   MeteoalarmToday.url = http://www.meteoalarm.eu/en_UK/0/0/IT003-Lombardia.html
   MeteoalarmTomorrow.updateInterval = 600000
   MeteoalarmTomorrow.url = http://www.meteoalarm.eu/en_UK/1/0/IT003-Lombardia.html
   darkSKY.updateInterval = 600000
   darkSKY.url = https://api.darksky.net/forecast/xxxxx/45.465049,9.094616?units=si
   service.pid = org.openhab.http
   weatherbit.updateInterval = 600000
   weatherbit.url = https://api.weatherbit.io/v2.0/current?lat=45.465049&lon=9.094616&key=xxxxx
   weatherbitFore.updateInterval = 3600000
   weatherbitFore.url = https://api.weatherbit.io/v2.0/forecast/daily?lat=45.465049&lon=9.094616&key=xxxxx
----------------------------------------------------------------

1 Like

Still having this log (don’t know what it is):

2019-02-17 17:40:12.319 [WARN ] [.internal.element.HttpContextElement] - Registered http context [null] did not contain a valid http context id

When deleting a binding completely you can do so by removing it from PaperUI (or addons if using files) then edit /var/lib/openhab2/config/org/openhab/addons.config and delete the binding.

Above you mentioned removing /var/lib/openhab2/etc/org.openhab.http.cfg. I’ve never messed with this file but could it being removed have something to do with the new warning?

Sometimes when updating I’ve needed to restart (several times on the restart) and reboot OH for everything to start working as expected.

Not really … that log is here starting from the system has been upgraded to #1524.

Try removing the binding again then:

  • Stop OH
  • Delete it from /var/lib/openhab2/config/org/openhab/addons.config
  • Clean the cache
  • Reboot

Then reinstall the binding.

Not using the addons file here … all Bindings have been installed via PaperUI

Use cat /var/lib/openhab2/config/org/openhab/addons.config and you should see all the binding that have been install regardless of how. When completely removing a binding, for troubleshooting, you will want to edit this file and remove the binding. Just make sure you stop OH first before making any changes.

1 Like