[SOLVED] Two (or more) brokers in mqtt.cfg?

Hi Group,

Is it possible to have two or more brokers in the mqtt.cfg file (openhab 2.3.0) ?

mosquitto.url=tcp://localhost:1883
mosquitto.user=mqtt
mosquitto.pwd=xxxx
mosquitto.qos=1

ttn.url=tcp://eu.thethings.network:1883
ttn.user=thatsme
ttn.pwd=xxxxx
ttn.qos=1

User and password are correctly entered !!

After restart I see the following error in the log:

2018-09-25 11:00:15.613 [ERROR] [org.apache.felix.configadmin ] - Cannot use configuration org.openhab.mqtt for [org.openhab.core.scriptengine.action.ActionService, org.osgi.service.cm.ManagedService, id=356, bundle=226/mvn:org.openhab.action/org.openhab.action.mqtt/1.12.0]: No visibility to configuration bound to mvn:org.openhab.io/org.openhab.io.transport.mqtt/1.12.0

When using mosquitto DIRECTLY form the command line all works fine:
$ mosquitto_sub -h eu.thethings.network -p 1883 -u ‘thatsme’ -P ‘xxxx’ -v -t ‘+/devices/+/up’

Any idea of what could be wrong?

-ben

Do you have the mqtt action installed?
If yes, uninstall it
restart OH
re-install it but only if you need it

Yep, that solved the problem :slight_smile:

Many thanks !

Please mark the thread as solved. Thanks