-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bridge does not automatically reconnect when initial connection attempt fails #2795
Comments
Are there any updates on this? |
Today, I noticed the same issue, also with HiveMQ. Did you manage to fix this @EpicLPer? |
Sadly so far no permanent fix, tho if I ever have an extended period of time I'll switch to a better MQTT server due to this... not sure what I'll choose yet but the lack of updates makes this annoying tbh. |
I've made an automation that monitors the value of "$SYS/broker/connection/core-mosquitto.hivemq/state" and restarts the core-mosquitto addon until it returns 1. An ugly workaround but it works. |
Hi, Not sure if it's the same regression but I was trying to set my broker to act as a bridge in a way that if external broker isn't available still be able to handle local messages and try to reconnect every once in a while. And it fails like this:
But I've got ver 1.6.9. Is it even possible to set it like I want to? Maybe you can suggest another version to try? Edit: Never mind, updating to 2.0.18 fixed the issue. |
I can confirm that version 2.0.18 solved these kind of problems for me. This was under Gentoo Linux where Mosquitto version 2.0.18 currently (Nov. 2023) is considered |
2.0.18 appears to solve it for me as well. |
I get that under 2.0.18:
config:
|
I'm noticing that my 2.0.18 doesn't seem to reconnect as well. Are people using specific config settings to get this to work? |
Heya!
I'm currently noticing a weird behavior from Mosquitto when it comes to bridging external MQTT brokers.
My current config bridges HiveMQ to Home Assistant's Mosquitto Add On, I've set everything up in
mosquitto.conf
and once it connects it works great, however at random times it either disconnects or doesn't connect at all when restarting Mosquitto. It also doesn't seem to try to connect after it initially failed, despite setting bothkeepalive_interval 20
andrestart_timeout 20
.The log simply says
Expiring client local.core-mosquitto.HiveMQ due to timeout
, but never tries to reconnect to the broker again after that.Is this expected behavior or am I onto something here? :) Thanks for the help!
Mosquitto Version: 2.0.15
The text was updated successfully, but these errors were encountered: