ariela
(Andrea Riela)
February 17, 2019, 1:57pm
1
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
H102
(CM6.5 H102)
February 17, 2019, 2:38pm
2
What do you have in your http.cfg file?
ariela
(Andrea Riela)
February 17, 2019, 3:06pm
3
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"
H102
(CM6.5 H102)
February 17, 2019, 3:16pm
4
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?
ariela
(Andrea Riela)
February 17, 2019, 3:17pm
5
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?
rossko57
(Rossko57)
February 17, 2019, 3:22pm
6
I suspect you have a wonky http.config cache file. Stop openHAB, delete it, and it will be recreated from http.cfg
1 Like
ariela
(Andrea Riela)
February 17, 2019, 3:24pm
7
do I need to perform a
config:property-delete -p org.openhab.http felix.fileinstall.filename
before doint a clear-cache?
Andrea
H102
(CM6.5 H102)
February 17, 2019, 3:27pm
8
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.
ariela
(Andrea Riela)
February 17, 2019, 4:13pm
9
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
H102
(CM6.5 H102)
February 17, 2019, 4:28pm
10
ariela:
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?
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.
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
ariela
(Andrea Riela)
February 17, 2019, 4:30pm
11
The “issue” appears after upgrading from #1502 to #1524
openhabian #1524 here
H102
(CM6.5 H102)
February 17, 2019, 4:42pm
12
If your picky, like me, 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
ariela
(Andrea Riela)
February 17, 2019, 4:44pm
13
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
ariela
(Andrea Riela)
February 17, 2019, 4:45pm
14
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
H102
(CM6.5 H102)
February 17, 2019, 4:53pm
15
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.
ariela
(Andrea Riela)
February 17, 2019, 4:54pm
16
Not really … that log is here starting from the system has been upgraded to #1524 .
H102
(CM6.5 H102)
February 17, 2019, 5:00pm
17
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.
ariela
(Andrea Riela)
February 17, 2019, 5:04pm
18
Not using the addons file here … all Bindings have been installed via PaperUI
H102
(CM6.5 H102)
February 17, 2019, 5:10pm
19
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