Openhab 2.4 hanging

Hey @KevinI,

the log shows:

2019-01-06 11:11:46.204 [DEBUG] [core.karaf.internal.FeatureInstaller] - Running scheduled sync job
2019-01-06 11:11:49.046 [DEBUG] [core.karaf.internal.FeatureInstaller] - Installed 'openhab-binding-mqtt'
2019-01-06 11:12:46.210 [DEBUG] [core.karaf.internal.FeatureInstaller] - Running scheduled sync job
2019-01-06 11:12:48.570 [DEBUG] [core.karaf.internal.FeatureInstaller] - Installed 'openhab-binding-mqtt'
2019-01-06 11:13:46.219 [DEBUG] [core.karaf.internal.FeatureInstaller] - Running scheduled sync job
2019-01-06 11:13:48.436 [DEBUG] [core.karaf.internal.FeatureInstaller] - Installed 'openhab-binding-mqtt'
2019-01-06 11:14:46.235 [DEBUG] [core.karaf.internal.FeatureInstaller] - Running scheduled sync job
2019-01-06 11:14:48.372 [DEBUG] [core.karaf.internal.FeatureInstaller] - Installed 'openhab-binding-mqtt'
2019-01-06 11:15:46.240 [DEBUG] [core.karaf.internal.FeatureInstaller] - Running scheduled sync job
2019-01-06 11:15:48.143 [DEBUG] [core.karaf.internal.FeatureInstaller] - Installed 'openhab-binding-mqtt'
2019-01-06 11:16:46.244 [DEBUG] [core.karaf.internal.FeatureInstaller] - Running scheduled sync job
2019-01-06 11:16:48.261 [DEBUG] [core.karaf.internal.FeatureInstaller] - Installed 'openhab-binding-mqtt'
2019-01-06 11:17:46.251 [DEBUG] [core.karaf.internal.FeatureInstaller] - Running scheduled sync job
2019-01-06 11:17:48.788 [DEBUG] [core.karaf.internal.FeatureInstaller] - Installed 'openhab-binding-mqtt'
2019-01-06 11:18:46.257 [DEBUG] [core.karaf.internal.FeatureInstaller] - Running scheduled sync job
2019-01-06 11:18:47.958 [DEBUG] [core.karaf.internal.FeatureInstaller] - Installed 'openhab-binding-mqtt'
2019-01-06 11:19:46.264 [DEBUG] [core.karaf.internal.FeatureInstaller] - Running scheduled sync job
2019-01-06 11:19:48.033 [DEBUG] [core.karaf.internal.FeatureInstaller] - Installed 'openhab-binding-mqtt'
2019-01-06 11:20:46.277 [DEBUG] [core.karaf.internal.FeatureInstaller] - Running scheduled sync job
2019-01-06 11:20:48.042 [DEBUG] [core.karaf.internal.FeatureInstaller] - Installed 'openhab-binding-mqtt'
2019-01-06 11:21:46.280 [DEBUG] [core.karaf.internal.FeatureInstaller] - Running scheduled sync job
2019-01-06 11:21:47.991 [DEBUG] [core.karaf.internal.FeatureInstaller] - Installed 'openhab-binding-mqtt'

I already removed and installed openhab-binding-mqtt a couple of times. Maybe note worthy is that I have MQTT 1.13 and 2.4 installed because I have to migrate from old to new.

kr

Han

Hi Han,

So the issue is it’s continually re-loading the mqtt binding which will be adding load to your system, if your capturing cpu usage via the sysinfo binding the load will be higher while the problem exists and the knock on effect is 500/503 errors in the iOS app for instance.
Do you use the ui or addons.cfg for loading the bindings, I bet if you uninstall the mqtt binding the issue goes away?

It took me a few cycles, via addons.cfg, to get the issue resolved but since then the system has been stable.

K

Kevin,

the thing is I see the same error logging on 2.3 which does not get stuck and I have already removed the addons.cfg file. I will try to build a clean (docker) system because everytime I try I bring down my primary system

kr Han

Doesn’t matter when.

Hi Han,

Ok understood, another solution is mentioned at the end of the below post by @wborn about removing the addons.config file.

Seems a few people have been suffering from the same issue however mine only started after going to 2.4.

K

Kevin,

a thing I noted when deinstalling and installing the MQTT binding:

2019-01-06 12:03:52.662 [DEBUG] [core.karaf.internal.FeatureInstaller] - Installed 'openhab-binding-mqtt, openhab-binding-mqtt1'

Is the system installing 2 bindings, mqtt & mqtt1?

kr

Han

Hi Han,

Yep looks like it’s doing both.

K

Ok, but how do I prevent that?

openhab> bundle:list | grep -i mqtt
245 │ Active   │  80 │ 1.12.0                 │ openHAB Mqtt Action
247 │ Active   │  80 │ 1.12.0                 │ openHAB MQTT Transport Bundle
248 │ Active   │  80 │ 1.12.0                 │ openHAB MQTT Binding

Han

Hi Han,

Do you use ui or addons.cfg?

What’s in the file?

/var/lib/openhab2/config/org/openhab/addons.config

K

we are getting somewhere :+1:

action="mqtt"
binding="astro,weatherunderground,hue,rfxcom,network,http1,mqtt,mqtt1"
legacy=B"true"
misc="restdocs,openhabcloud"
package="expert"
persistence="mysql"
remote=B"true"
service.pid="org.openhab.addons"
transformation="map,regex,xslt,exec,javascript,scale,xpath,jsonpath"
ui="classic,basic,paper,habpanel,habmin"

maybe toss the file? I already removed addons.cfg, which was maybe the wrong action?

Han

Hi Han,

Not sure you’ve confirmed if you use the ui or cfg file to manage addons?

I wouldn’t have removed the addons.cfg but removing the addons.config and restarting oh is the next logical step but does depend on how you install your addons.

K

@KevinI
I use the Paper UI, but remember I have used the cfg at some moment.
I have removed the mqtt reference and it stopped the installs…
Will try another update later on
Thank you very much so far!

Hi Han,

Ok my understanding is that you should only use ui or addons.cfg to add bindings not both as that causes issues, I only use textual updates via VSCode and not the ui.

I suggest you need to go for one or the other then drop that addons.config and restart oh which will re-generate the file.

Check the openhab log for those Install messages and also look at the new addons.cfg file.

K

1 Like

Hello, I seem to have performance problems related to the mqtt bundles, too:

openhab> bundle:list | grep -i mqtt
211 x Active x 80 x 1.2.0 x Paho MQTT Client
230 x Waiting x 80 x 0.10.0.oh240 x Eclipse SmartHome Embedded MQTT Broker
231 x Active x 80 x 0.10.0.oh240 x Eclipse SmartHome MQTT Transport Bundle
271 x Active x 80 x 0.10.0.oh240 x Eclipse SmartHome MQTT Binding
272 x Active x 80 x 0.10.0.oh240 x Eclipse SmartHome MQTT Thing Binding

openhab.log shows multiple lines of the following:


2019-01-06 13:41:29.642 [DEBUG] [core.karaf.internal.FeatureInstaller] - Installed ‘openhab-action-mqtt, openhab-binding-mqtt1’

and sometimes:

2019-01-06 13:39:57.120 [thome.event.ExtensionEvent] - Extension ‘binding-mqtt’ has been installed.

Since Im still a beginner pls forgive if Im missing something obvious. I was planning to start a MQTT integration but at the moment Im still free to delete these bindings.

BTW: My addons.cfg consists only of comments.

Thx, Stephen

Hi Stephen,

In your case I would uninstall both mqtt bindings, stop openhab then remove the below file, restart openhab then re-add bindings one at a time while monitoring oh log for the Install message.

/var/lib/openhab2/config/org/openhab/addons.config

K

Took me an hour or more of deleting add-ons. Config and messing with the cfg to finally get all the messages clear. What a pain. Clear for about 2 days now. I will continue to monitor this topic and post any relevant information. Would love for the stability of 2.3 back. A week or two ago I removed the http binding because I thought it was causing the freezing. I’ll leave everything alone for a week and see if I can add it back in then. Thanks Kevin

Hi,

Sounds promising and glad to be of help.

K

Up and running, thank you very much!

Hi Han,

Glad to hear it and happy to help.

All the best for 2019

K

Try to change this to

binding="astro,weatherunderground,hue,rfxcom,network,http1,mqtt"