[RESOLVED] Knx binding gets uninstalled every time openhab2 is restarted

Hello everyone!

Perhaps someone experienced this issue already. My knx binding is getting uninstalled every time I am restarting openhab with ‘service openhab2 restart’.
When I install it back it works just fine for the next restart.

Here is the part of my logfile from the system start:

2017-02-16 21:56:56.917 [DEBUG] [org.openhab.binding.knx             ] - BundleEvent STARTING - 

org.openhab.binding.knx
2017-02-16 21:56:56.966 [DEBUG] [ab.binding.knx.internal.KNXActivator] - KNX binding has been 

started.
2017-02-16 21:56:57.005 [DEBUG] [org.openhab.binding.knx             ] - ServiceEvent REGISTERED - 

{org.openhab.binding.knx.config.KNXTypeMapper}={component.name=org.openhab.binding.knx.typemapper, 

component.id=196, service.id=322, service.bundleid=218, service.scope=bundle} - 

org.openhab.binding.knx
2017-02-16 21:56:57.301 [DEBUG] [org.openhab.binding.knx             ] - ServiceEvent REGISTERED - 

{org.openhab.model.item.binding.BindingConfigReader, 

org.openhab.binding.knx.config.KNXBindingProvider, 

org.openhab.core.autoupdate.AutoUpdateBindingProvider}=

{component.name=org.openhab.binding.knx.genericbindingprovider, component.id=197, service.id=323, 

service.bundleid=218, service.scope=bundle} - org.openhab.binding.knx
2017-02-16 21:57:11.753 [DEBUG] [org.openhab.binding.knx             ] - ServiceEvent REGISTERED - 

{org.osgi.service.event.EventHandler, tuwien.auto.calimero.process.ProcessListener}=

{event.topics=openhab/*, component.name=org.openhab.binding.knx, component.id=195, service.id=326, 

service.bundleid=218, service.scope=bundle} - org.openhab.binding.knx
2017-02-16 21:57:11.857 [DEBUG] [.binding.knx.internal.bus.KNXBinding] - Calimero library version 

2.3-beta
2017-02-16 21:57:11.877 [DEBUG] [x.internal.bus.KNXBusReaderScheduler] - Starting reader task.
2017-02-16 21:57:11.885 [DEBUG] [x.internal.bus.KNXBusReaderScheduler] - Starting schedule executor.
2017-02-16 21:57:11.885 [DEBUG] [al.bus.KNXBindingDatapointReaderTask] - Autorefresh: Waiting for 

new item in reader queue
2017-02-16 21:57:11.889 [DEBUG] [org.openhab.binding.knx             ] - ServiceEvent REGISTERED - 

{org.osgi.service.cm.ManagedService}={service.pid=org.openhab.knx, 

component.name=org.openhab.binding.knx.config, component.id=194, service.id=327, 

service.bundleid=218, service.scope=bundle} - org.openhab.binding.knx
2017-02-16 21:57:11.893 [DEBUG] [nx.internal.connection.KNXConnection] - KNXBinding configuration 

present. Setting up KNX bus connection.
2017-02-16 21:57:11.897 [DEBUG] [nx.internal.connection.KNXConnection] - Not connected yet. Trying 

to connect.
2017-02-16 21:57:11.902 [DEBUG] [org.openhab.binding.knx             ] - ServiceEvent UNREGISTERING 

- {org.osgi.service.cm.ManagedService}={service.pid=org.openhab.knx, 

component.name=org.openhab.binding.knx.config, component.id=194, service.id=327, 

service.bundleid=218, service.scope=bundle} - org.openhab.binding.knx
2017-02-16 21:57:11.903 [DEBUG] [org.openhab.binding.knx             ] - BundleEvent STARTED - 

org.openhab.binding.knx
2017-02-16 21:57:11.915 [DEBUG] [org.openhab.binding.knx             ] - ServiceEvent UNREGISTERING 

- {org.osgi.service.event.EventHandler, tuwien.auto.calimero.process.ProcessListener}=

{event.topics=openhab/*, component.name=org.openhab.binding.knx, component.id=195, service.id=326, 

service.bundleid=218, service.scope=bundle} - org.openhab.binding.knx
2017-02-16 21:57:11.921 [DEBUG] [x.internal.bus.KNXBusReaderScheduler] - Terminating schedule 

executor.
2017-02-16 21:57:11.922 [DEBUG] [x.internal.bus.KNXBusReaderScheduler] - Auto refresh scheduler 

successfully terminated
2017-02-16 21:57:11.923 [DEBUG] [al.bus.KNXBindingDatapointReaderTask] - Autorefresh: 

DatapointReaderTask wait on blockingqueue interrupted: null
2017-02-16 21:57:11.924 [DEBUG] [al.bus.KNXBindingDatapointReaderTask] - Autorefresh: 

DatapointReaderTask interrupted.
2017-02-16 21:57:12.086 [INFO ] [nx.internal.connection.KNXConnection] - Established connection to 

KNX bus on Knx-Router:3671 in mode TUNNEL.
2017-02-16 21:57:12.087 [DEBUG] [nx.internal.connection.KNXConnection] - Success: connected.
2017-02-16 21:57:12.092 [INFO ] [nx.internal.connection.KNXConnection] - Closing KNX connection
2017-02-16 21:57:12.125 [DEBUG] [org.openhab.binding.knx             ] - ServiceEvent UNREGISTERING 

- {org.openhab.binding.knx.config.KNXTypeMapper}={component.name=org.openhab.binding.knx.typemapper, 

component.id=196, service.id=322, service.bundleid=218, service.scope=bundle} - 

org.openhab.binding.knx
2017-02-16 21:57:12.130 [DEBUG] [org.openhab.binding.knx             ] - ServiceEvent UNREGISTERING 

- {org.openhab.model.item.binding.BindingConfigReader, 

org.openhab.binding.knx.config.KNXBindingProvider, 

org.openhab.core.autoupdate.AutoUpdateBindingProvider}=

{component.name=org.openhab.binding.knx.genericbindingprovider, component.id=197, service.id=323, 

service.bundleid=218, service.scope=bundle} - org.openhab.binding.knx
2017-02-16 21:57:12.153 [DEBUG] [org.openhab.binding.knx             ] - BundleEvent STOPPING - 

org.openhab.binding.knx
2017-02-16 21:57:12.161 [DEBUG] [ab.binding.knx.internal.KNXActivator] - KNX binding has been 

stopped.
2017-02-16 21:57:12.164 [DEBUG] [org.openhab.binding.knx             ] - BundleEvent STOPPED - 

org.openhab.binding.knx
2017-02-16 21:57:12.200 [DEBUG] [org.openhab.binding.knx             ] - BundleEvent UNRESOLVED - 

org.openhab.binding.knx
2017-02-16 21:57:12.218 [DEBUG] [org.openhab.binding.knx             ] - BundleEvent UNINSTALLED - 

org.openhab.binding.knx

I’ve read similar post where they pointed to wrong entry in the addons.cfg file. But, I don’t see anything wrong there. knx is defined as 'binding = knx,…

I appreciate your help on that as it gets annoying after some time.

Thanks,
Krzysztof.

use: knx1 since KNX is still a 1.x binding

For more info see:

&

Thanks a lot. knx1 in addons.cfg helped. The example in the file is misleading a bit as it points to ‘knx’

1 Like