Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mosquitto » Bridge connection to remote broker fails and doesn't try to reconnect
Bridge connection to remote broker fails and doesn't try to reconnect [message #1851729] Thu, 14 April 2022 02:51
Greg McNamara is currently offline Greg McNamaraFriend
Messages: 1
Registered: April 2022
Junior Member
Newbie Eclipse Forum user here. I have set up a mosquitto bridge connecting to a remote broker and it does connect successfully most of the time, but sometimes it sends a connection request and doesn't receive the CONNACK. I can see on the remote side it is sending the CONNACK (that's another issue I'm looking into) but the main problem I have is that the bridge never seems to try to reconnect. It subsequently sends ping requests and receives replies from the remote broker, but all the incoming messages that should be sent to the broker are never published when it's in this state (when connected they publish ok).

Configs below, any help appreciated.

Test local bridge conf:

listener 1883
allow_anonymous true
persistence true
persistence_location /mosquitto/data
log_type all
log_dest stderr
connection some-connection
address hostaddress:8883
keepalive_interval 30
topic sometopic/subtopic/1/# out 1
bridge_attempt_unsubscribe false
bridge_protocol_version mqttv311
bridge_insecure false
cleansession true
start_type automatic
notifications false
bridge_cafile /mosquitto/config/certs/rootCA.pem

Test remote broker conf:

listener 8883
allow_anonymous true
persistence true
persistence_location /mosquitto/data
log_type all
log_dest stderr
cafile /mosquitto/server-certs/rootCA.pem
certfile /mosquitto/server-certs/cert.crt
keyfile /mosquitto/server-certs/private.key
Previous Topic:Newbee queston: unable to connect to broker using ip address.
Next Topic:Problem with topic / delimiter
Goto Forum:
  


Current Time: Thu May 02 23:14:35 GMT 2024

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

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

Back to the top