wborn
(Wouter Born)
December 30, 2018, 6:25pm
22
Great that it also seems to solve your issue @opus !
I found that if you comment lines from addons.cfg
the changes are not applied. What does work is setting the addons lists to an empty list or the other settings to the default value before commenting them.
opus
(Jürgen Baginski)
December 30, 2018, 6:40pm
23
Thanks for helping!
It took some time, “Der Junge musste an die Luft!” (sorry, does make sense only in german!)
Woogi
(Martin)
January 5, 2019, 8:00pm
24
Hi @wborn ,
I am facing the same issue:
I do not have a addons.cfg file. My addons.config looks like this:
binding="yahooweather,astro,fritzboxtr0641,exec,mqtt1,http1,systeminfo,homematic,miio,samsungtv"
misc="market,restdocs,openhabcloud"
package="standard"
persistence="rrd4j"
service.pid="org.openhab.addons"
transformation="map,regex"
ui="basic,paper,habpanel,homebuilder,habmin"
Could there be an issue in my file? Do I need to change sth.?
scottk
(Scott Karns)
January 5, 2019, 8:07pm
25
@Woogi , you don’t have legacy bindings enabled for mqtt1 and http1 . You enable them in addons.cfg by adding the line:
legacy="true"
Lolodomo
(Lolodomo)
January 5, 2019, 8:11pm
26
@Woogi : fritzboxtr0641 as binding looks strange, to not say unexpected. This is probably not the right binding name.
wborn
(Wouter Born)
January 5, 2019, 8:15pm
27
With that configuration and the error logging that got added in 2.5.0-SNAPSHOT it indeed shows it can’t install the mqtt1 binding:
21:08:06.420 [ERROR] [.core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-mqtt1'
21:09:05.885 [ERROR] [.core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-mqtt1'
You can enable the legacy bindings in Paper UI as well.
See: MQTT Binding 2.4 - what changed? not working anymore - #8 by job .
That will add some additional lines to the addons.config file:
legacy=B"true"
remote=B"true"
Lolodomo:
fritzboxtr0641 as binding looks strange
It’s OK:
openhab> feature:list|grep fritz
openhab-binding-avmfritz │ 2.5.0.SNAPSHOT │ │ Uninstalled │ openhab-addons-2.5.0-SNAPSHOT │ AVM FRITZ!Box Binding
openhab-binding-fritzbox1 │ 1.14.0.SNAPSHOT │ │ Uninstalled │ openhab-addons-2.5.0-SNAPSHOT │ Fritzbox Binding
openhab-binding-fritzboxtr0641 │ 1.14.0.SNAPSHOT │ x │ Started │ openhab-addons-2.5.0-SNAPSHOT │ Fritzbox TR064 Binding
Woogi
(Martin)
January 5, 2019, 8:34pm
28
HI @wborn ,
thank you for the detailed description, that helped me a lot to understand the issue as a non Linux guy .
I enabled legacy bindings in Paper UI. Followed by the log
2019-01-05 21:26:48.600 [INFO ] [penhab.io.transport.mqtt.MqttService] - MQTT Service initialization completed.
2019-01-05 21:26:48.605 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection 'mymosquitto'
I guess the MQTT was the problem. By now, no warning message appeared.
Thanks as well to @scottk and @Lolodomo
Cheers,
Woogi
1 Like
Sc00by
(John)
January 7, 2019, 6:40pm
29
I am also suffering from IllegalExceptions (posted here where you can see my log file )
Following this thread has led me to thinking there is an issue with MQTT. I installed mqtt 2.4.0 via PaperUI and have been using that fine.
However following the above checking cpu usage etc I have enabled debugging and my logs are now full of:
2019-01-07 18:35:03.121 [DEBUG] [core.karaf.internal.FeatureInstaller] - Installed 'openhab-binding-mqtt1'
2019-01-07 18:35:51.559 [DEBUG] [core.karaf.internal.FeatureInstaller] - Running scheduled sync job
2019-01-07 18:36:00.364 [DEBUG] [core.karaf.internal.FeatureInstaller] - Installed 'openhab-binding-mqtt1'
2019-01-07 18:36:51.566 [DEBUG] [core.karaf.internal.FeatureInstaller] - Running scheduled sync job
2019-01-07 18:37:00.392 [DEBUG] [core.karaf.internal.FeatureInstaller] - Installed 'openhab-binding-mqtt1'
The above is popping up every minute. I’ve never attempted to install mqtt1, how do I stop it?
I have tried enabling legacy but still the same loop. I don’t want to remove mqtt 2.4 as I have a weather station integrated to a site map and it’s working fine.
Any help would be appreciated
Thanks
sihui
(SiHui)
January 7, 2019, 6:52pm
30
Sc00by:
how do I stop it?
Check your addons.cfg
if any bindings are loaded through that file. Comment all lines if you are using PaperUI for installing and configuring your openHAB system.
sihui
(SiHui)
January 7, 2019, 6:54pm
31
If your addons.cfg
is fine, clean the cache and tmp folders:
Often when one encounters a problem with OH, particularly after an update, OH will refuse to run or certain parts of OH stop working. Some reported errors include:
500 or 404 errors when accessing the UIs
lots of exceptions from Jetty or other core components in openhab.log
OH refuses to start at all
The first step in debugging the problem is to clear the tmp and cache.
Installed OH
If you are running an installed OH (openHABian, installed using apt or yum):
openhab-cli stop
openhab-cl…
Sc00by
(John)
January 7, 2019, 7:04pm
32
I think I may have fixed it
I enabled expert mode and legacy bindings. When I did this mqtt1 must have fully installed as I then had multiple mqtt connections trying to connect.
When I went to Addons > bindings in paperui it now listed mqtt v1 and v2 as installed. I uninstalled v1, restarted OH and so far the log file is looking a lot healthier.
I will post back if the problem returns.
opus
(Jürgen Baginski)
January 7, 2019, 7:51pm
33
What you saw is exactly the same.
I bet before you deleted mqtt1 it would have shown in the file
var/lib/openhab2/config/org/openhab/addons.config
My guess, you had mqtt1 installed, you updated to oh2.4, by that mqtt1 got automatically installed, mqtt1 removed but the “desire” to install mqtt1 remained, hence the problems.
Sc00by
(John)
January 7, 2019, 8:34pm
34
opus:
My guess, you had mqtt1 installed, you updated to oh2.4, by that mqtt1 got automatically installed, mqtt1 removed but the “desire” to install mqtt1 remained, hence the problems.
Not by me. This was a clean install of OH2.4 about 2 weeks ago and mqttv2 installed via paperui. I have never done anything with v1 so not sure where it came from
Another look at the logs and so far so good…
mishakim
(Misha Hill)
January 8, 2019, 8:32pm
36
just to note, I had the same problem, never touched MQTT, but mqtt1 was in my addons.config, and causing errors after updating from Milestone 4 to 2.4 Release. Removing it from the file fixed the problem.
sihui
(SiHui)
January 9, 2019, 11:17am
37
This is the source code file for addons.cfg
which gets installed with openHAB, there are no bindings configured for automatic installation!!!
# The installation package of this openHAB instance
# Note: This is only regarded at the VERY FIRST START of openHAB
# Note: If you want to specify your add-ons yourself through entries below, set the package to "minimal"
# as otherwise your definition might be in conflict with what the installation package defines.
#
# Optional. If not set, the dashboard (https://<yourserver>:8080/) will ask you to choose a package.
#
# Valid options:
# - minimal : Installation only with dashboard, but no UIs or other add-ons. Use this for custom setups.
# - simple : Setup for using openHAB purely through UIs - you need to expect MANY constraints in functionality!
# - standard : Default setup for normal users, best for textual setup
# - expert : Setup for expert users, especially for people migrating from openHAB 1.x
# - demo : A demo setup which includes UIs, a few bindings, config files etc.
#
# See https://www.openhab.org/docs/configuration/packages.html for a detailed explanation of these packages.
#
#package = minimal
# Access Remote Add-on Repository
# Defines whether the remote openHAB add-on repository should be used for browsing and installing add-ons.
This file has been truncated. show original
opus
(Jürgen Baginski)
January 9, 2019, 11:26am
38
@sihui :
Note that the mqtt1 did show in the addons.config and not in the add-ons.cfg!
In my case I would say the mqtt1 got removed for mqtt2 (legacy bindings not selected), but remained in add-ons.config.
mishakim
(Misha Hill)
January 9, 2019, 1:30pm
39
Here’s what I saw after upgrading:
pi@raspberrypi2:~ $ cat /var/lib/openhab2/config/org/openhab/addons.config
binding="denonmarantz,serial1,mqtt1,zwave,lutron"
felix.fileinstall.filename="file:/var/lib/openhab2/etc/org.openhab.addons.cfg"
package="standard"
service.pid="org.openhab.addons"
transformation="jsonpath,map"
ui="basic,paper"
The other bindings listed are the ones I have installed through PaperUI. I don’t believe I ever installed MQTT, 1 or 2.
sihui
(SiHui)
January 9, 2019, 2:50pm
40
Answer was meant to be posted to
A clean install cannot have any addons listed in addons.cfg (or even addons.config)
H102
(CM6.5 H102)
January 9, 2019, 3:36pm
41
@mishakim If you believe the mqtt binding is causing the issue, and you don’t need or want it, maybe try editing /var/lib/openhab2/config/org/openhab/addons.config and remove mqtt. Note, you should probably stop the OH service before editing.