Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mosquitto » bridge configuration - unacceptable protocol version(Bridge config on mosquitto broker failed)
bridge configuration - unacceptable protocol version [message #1817582] Tue, 26 November 2019 09:08 Go to next message
Stefan Oberhofer is currently offline Stefan OberhoferFriend
Messages: 1
Registered: November 2019
Junior Member
I´m doing a small IoT project with a local client using Paho MQTT client, sending mqtt data to a local mosquitto broker (acting as bridge) and then to my remote broker (SAP IoT Cloud).

The data flow from client to remote broker (using TLS) is working successfully and now I´m struggling to place and configure the bridge between accordingly. As I have to use TLS for the mqtt messages (QoS 1), a second listener with port 8883 is created. Also the same CA file for authentication with the remote broker, as the client used for sending is provided. Once I start my broker (I haven´t started my local client yet) with the stated config below I´ll get error messages on an unacceptable protocol version (see log file below). So the bridge connection to my remote broker can´t be established, but why?

I´ve had the same problem before and then I´ve found out that I was using a old mosquitto version (1.4.10) and updated it accordingly. But also with v1.6.7 it´s not working.

Any hints are highly appreciated. Some information are depersonalized (like connection name which is used as clientId in remote broker, endpoint address).

Some necessary information:

Mosquitto Broker Version 1.6.7
OS: Debian Stretch
Config of my broker:

address xxxxxxxx.eu10.cp.iot.sap:8883
topic # both 1
log_type all
listener 8883
bridge_cafile /etc/mosquitto/certs/CAcert.pem


And my logfile:

1574754457: mosquitto version 1.6.7 starting
1574754457: Config loaded from /etc/mosquitto/mosquitto.conf.
1574754457: Opening ipv4 listen socket on port 1883.
1574754457: Opening ipv6 listen socket on port 1883.
1574754715: mosquitto version 1.6.7 terminating
1574754715: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1574754721: mosquitto version 1.6.7 starting
1574754721: Config loaded from /etc/mosquitto/mosquitto.conf.
1574754721: Opening ipv4 listen socket on port 8883.
1574754721: Opening ipv6 listen socket on port 8883.
1574754721: Bridge local.raspberrypi.raspberryPiZero doing local SUBSCRIBE on topic #
1574754721: Connecting bridge (step 1) raspberryPiZero (xxxxxxxx.eu10.cp.iot.sap:8883)
1574754726: Bridge local.raspberrypi.raspberryPiZero doing local SUBSCRIBE on topic #
1574754726: Connecting bridge (step 1) raspberryPiZero (xxxxxxxx.eu10.cp.iot.sap:8883)
1574754741: Bridge local.raspberrypi.raspberryPiZero doing local SUBSCRIBE on topic #
1574754741: Connecting bridge (step 1) raspberryPiZero (xxxxxxxx.eu10.cp.iot.sap:8883)
1574754741: Connecting bridge (step 2) raspberryPiZero (xxxxxxxx.eu10.cp.iot.sap:8883)
1574754741: Bridge raspberrypi.raspberryPiZero sending CONNECT
1574754742: Received CONNACK on connection local.raspberrypi.raspberryPiZero.
1574754742: Connection Refused: unacceptable protocol version
1574754742: Socket error on client local.raspberrypi.raspberryPiZero, disconnecting.
1574754747: Bridge local.raspberrypi.raspberryPiZero doing local SUBSCRIBE on topic #
1574754747: Connecting bridge (step 1) raspberryPiZero (xxxxxxxx.eu10.cp.iot.sap:8883)
1574754747: Connecting bridge (step 2) raspberryPiZero (xxxxxxxx.eu10.cp.iot.sap:8883)
1574754747: Bridge raspberrypi.raspberryPiZero sending CONNECT
1574754747: Received CONNACK on connection local.raspberrypi.raspberryPiZero.
1574754747: Connection Refused: broker unavailable
1574754747: Socket error on client local.raspberrypi.raspberryPiZero, disconnecting.
1574754775: Bridge local.raspberrypi.raspberryPiZero doing local SUBSCRIBE on topic #
1574754775: Connecting bridge (step 1) raspberryPiZero (xxxxxxxx.eu10.cp.iot.sap:8883)
1574754776: Connecting bridge (step 2) raspberryPiZero (xxxxxxxx.eu10.cp.iot.sap:8883)
1574754776: Bridge raspberrypi.raspberryPiZero sending CONNECT
1574754776: Received CONNACK on connection local.raspberrypi.raspberryPiZero.
1574754776: Connection Refused: broker unavailable
1574754776: Socket error on client local.raspberrypi.raspberryPiZero, disconnecting.
1574754781: Bridge local.raspberrypi.raspberryPiZero doing local SUBSCRIBE on topic #
1574754781: Connecting bridge (step 1) raspberryPiZero (xxxxxxxx.eu10.cp.iot.sap:8883)
1574754782: Connecting bridge (step 2) raspberryPiZero (xxxxxxxx.eu10.cp.iot.sap:8883)
1574754782: Bridge raspberrypi.raspberryPiZero sending CONNECT
1574754782: Received CONNACK on connection local.raspberrypi.raspberryPiZero.
1574754782: Connection Refused: broker unavailable
1574754782: Socket error on client local.raspberrypi.raspberryPiZero, disconnecting.
1574754787: Bridge local.raspberrypi.raspberryPiZero doing local SUBSCRIBE on topic #
1574754787: Connecting bridge (step 1) raspberryPiZero (xxxxxxxx.eu10.cp.iot.sap:8883)
1574754788: Connecting bridge (step 2) raspberryPiZero (xxxxxxxx.eu10.cp.iot.sap:8883)
1574754788: Bridge raspberrypi.raspberryPiZero sending CONNECT
1574754788: Received CONNACK on connection local.raspberrypi.raspberryPiZero.
1574754788: Connection Refused: broker unavailable
1574754788: Socket error on client local.raspberrypi.raspberryPiZero, disconnecting.
1574754793: Bridge local.raspberrypi.raspberryPiZero doing local SUBSCRIBE on topic #
1574754793: Connecting bridge (step 1) raspberryPiZero (xxxxxxxx.eu10.cp.iot.sap:8883)
1574754794: Connecting bridge (step 2) raspberryPiZero (xxxxxxxx.eu10.cp.iot.sap:8883)
1574754794: Bridge raspberrypi.raspberryPiZero sending CONNECT
1574754794: Received CONNACK on connection local.raspberrypi.raspberryPiZero.
1574754794: Connection Refused: broker unavailable
1574754794: Socket error on client local.raspberrypi.raspberryPiZero, disconnecting.
1574754799: Bridge local.raspberrypi.raspberryPiZero doing local SUBSCRIBE on topic #
1574754799: Connecting bridge (step 1) raspberryPiZero (xxxxxxxx.eu10.cp.iot.sap:8883)
1574754800: Connecting bridge (step 2) raspberryPiZero (xxxxxxxx.eu10.cp.iot.sap:8883)
1574754800: Bridge raspberrypi.raspberryPiZero sending CONNECT
1574754800: Received CONNACK on connection local.raspberrypi.raspberryPiZero.
1574754800: Connection Refused: broker unavailable
1574754800: Socket error on client local.raspberrypi.raspberryPiZero, disconnecting.
1574754805: Bridge local.raspberrypi.raspberryPiZero doing local SUBSCRIBE on topic #
1574754805: Connecting bridge (step 1) raspberryPiZero (xxxxxxxx.eu10.cp.iot.sap:8883)
1574754806: Connecting bridge (step 2) raspberryPiZero (xxxxxxxx.eu10.cp.iot.sap:8883)
1574754806: Bridge raspberrypi.raspberryPiZero sending CONNECT
1574754806: Received CONNACK on connection local.raspberrypi.raspberryPiZero.
1574754806: Connection Refused: broker unavailable
1574754806: Socket error on client local.raspberrypi.raspberryPiZero, disconnecting.
1574754811: Bridge local.raspberrypi.raspberryPiZero doing local SUBSCRIBE on topic #
1574754811: Connecting bridge (step 1) raspberryPiZero (xxxxxxxx.eu10.cp.iot.sap:8883)
1574754812: Connecting bridge (step 2) raspberryPiZero (xxxxxxxx.eu10.cp.iot.sap:8883)
1574754812: mosquitto version 1.6.7 terminating
1574754812: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
Re: bridge configuration - unacceptable protocol version [message #1817671 is a reply to message #1817582] Wed, 27 November 2019 16:50 Go to previous message
Christoph Krey is currently offline Christoph KreyFriend
Messages: 2
Registered: September 2018
Junior Member
you may want to try

```
try_private false
```

to tell mosquitto to use standard MQTT protocol for the bridge

mosquitto.conf:

```
# If try_private is set to true, the bridge will attempt to indicate to the
# remote broker that it is a bridge not an ordinary client. If successful, this
# means that loop detection will be more effective and that retained messages
# will be propagated correctly. Not all brokers support this feature so it may
# be necessary to set try_private to false if your bridge does not connect
# properly.
#try_private true
```
Previous Topic:Install mosquitto in old linux
Next Topic:MQTT.fx: Can not send message
Goto Forum:
  


Current Time: Fri Mar 29 10:33:19 GMT 2024

Powered by FUDForum. Page generated in 0.02611 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top