OH2 : Another MQTT binding Issue

I spent days with forum topics for Openhab2 to work with MQTT.
I tried to install mymosquitto and tsetse broker and finaly removed the tsetse (even it is a nice name for mqtt broker…)
but the OH2 is still trying to start mymosquitto and tsets.

How can a remove the unwanted tsetse brocker ?

As you can see a still have a refused connection. Some ideas the fix that ?

Thanks

2017-03-17 10:59:38.609 [ERROR] [penhab.io.transport.mqtt.MqttService] - Error starting broker connection
Unable to connect to server (32103) - java.net.ConnectException: Connection refused (Connection refused)
	at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(TCPNetworkModule.java:75)[183:org.openhab.io.transport.mqtt:1.9.0]
	at org.eclipse.paho.client.mqttv3.internal.ClientComms$ConnectBG.run(ClientComms.java:538)[183:org.openhab.io.transport.mqtt:1.9.0]
	at java.lang.Thread.run(Thread.java:745)[:1.8.0_112]
Caused by: java.net.ConnectException: Connection refused (Connection refused)
	at java.net.PlainSocketImpl.socketConnect(Native Method)[:1.8.0_112]
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)[:1.8.0_112]
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)[:1.8.0_112]
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)[:1.8.0_112]
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)[:1.8.0_112]
	at java.net.Socket.connect(Socket.java:589)[:1.8.0_112]
	at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(TCPNetworkModule.java:66)[183:org.openhab.io.transport.mqtt:1.9.0]
	... 2 more
2017-03-17 10:59:38.639 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection 'tsetse'
2017-03-17 10:59:38.667 [ERROR] [penhab.io.transport.mqtt.MqttService] - Error starting broker connection
Unable to connect to server (32103) - java.net.ConnectException: Connection refused (Connection refused)
	at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(TCPNetworkModule.java:75)[183:org.openhab.io.transport.mqtt:1.9.0]
	at org.eclipse.paho.client.mqttv3.internal.ClientComms$ConnectBG.run(ClientComms.java:538)[183:org.openhab.io.transport.mqtt:1.9.0]
	at java.lang.Thread.run(Thread.java:745)[:1.8.0_112]
Caused by: java.net.ConnectException: Connection refused (Connection refused)
	at java.net.PlainSocketImpl.socketConnect(Native Method)[:1.8.0_112]
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)[:1.8.0_112]
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)[:1.8.0_112]
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)[:1.8.0_112]
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)[:1.8.0_112]
	at java.net.Socket.connect(Socket.java:589)[:1.8.0_112]
	at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(TCPNetworkModule.java:66)[183:org.openhab.io.transport.mqtt:1.9.0]
	... 2 more
2017-03-17 10:59:38.682 [DEBUG] [ng.mqtt.internal.MqttEventBusBinding] - Initializing MQTT Event Bus Binding
2017-03-17 10:59:38.685 [DEBUG] [ng.mqtt.internal.MqttEventBusBinding] - MQTT Event Bus Binding initialization completed.

I Here the bundle list


openhab> bundle:list | grep MQTT
183 | Active   |  80 | 1.9.0                 | openHAB MQTT Transport Bundle
194 | Active   |  80 | 1.9.0                 | openHAB MQTT Binding
openhab>


openhab> feature:list | grep MQ
openhab-action-mqtt                       | 1.9.0            | x        | Started     | addons-2.0.0            | MQTT Action
openhab-binding-mqtt1                     | 1.9.0            | x        | Started     | addons-2.0.0            | MQTT Binding
openhab-binding-mqttitude1                | 1.9.0            |          | Uninstalled | addons-2.0.0            | OwnTracks (formerly MQTTitude) Binding
openhab-persistence-mqtt                  | 1.9.0            |          | Uninstalled | addons-2.0.0            | MQTT Persistence
esh-tp-paho                               | 0.9.0.b4         |          | Uninstalled | distro-2.0.0            | MQTT v3 Client
openhab-transport-mqtt                    | 2.0.0            |          | Uninstalled | distro-2.0.0            | MQTT Transport
openhab>

Addon.cfg

package = expert

# Access Remote Add-on Repository
# Defines whether the remote openHAB add-on repository should be used for browsing and installing add-ons.
# This not only makes latest snapshots of add-ons available, it is also required for the installation of
# any legacy 1.x add-on. (default is true)
#
#remote = true

# Include legacy 1.x bindings. If set to true, it also allows the installation of 1.x bindings for which there is 
# already a 2.x version available (requires remote repo access, see above). (default is false)
#
#legacy = true

# A comma-separated list of bindings to install (e.g. "sonos,knx,zwave")
#binding = 

MQTT.cfg file :

#
# Define your MQTT broker connections here for use in the MQTT Binding or MQTT
# Persistence bundles. Replace <broker> with an ID you choose.
#

# URL to the MQTT broker, e.g. tcp://localhost:1883 or ssl://localhost:8883
#<broker>.url=tcp://<host>:1883
#mymosquitto.url=tcp://192.168.0.153:1883

# Optional. Client id (max 23 chars) to use when connecting to the broker.
# If not provided a default one is generated.
#<broker>.clientId=<clientId>
#mymosquitto.clientId=toto

# Optional. User id to authenticate with the broker.
#<broker>.user=<user>

# Optional. Password to authenticate with the broker.
#<broker>.pwd=<password>

# Optional. Set the quality of service level for sending messages to this broker.
# Possible values are 0 (Deliver at most once),1 (Deliver at least once) or 2
# (Deliver exactly once). Defaults to 0.
#<broker>.qos=<qos>

# Optional. True or false. Defines if the broker should retain the messages sent to
# it. Defaults to false.
#<broker>.retain=<retain>
#mymosquitto.retain=true

OK I kill the second broker (mqtt.config in the userdata/config/org/log folder)

Some ideas why a been Unable to connect to server (32103) - java.net.ConnectException: Connection refused (Connection refused) ?

Do I have to run a external MQTT server ?

Yes, Openhab2 is a MQTT client - you need to be running an MQTT broker e.g. mosquitto. see http://www.homeautomationforgeeks.com/mosquitto.shtml

OK

Issue solved

thanks
Vincent