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 keeps sending the same QoS 2 messages #2165
Comments
Thanks for the detailed instructions, I'll look at this when I get a chance. |
Update:I did further investigation: In Mosquitto 2.0.10 Docker container instead of forwarding the same message again and again the MQTT bridge seems to rather have problems to reconnect. After re-enabling the network no messages arrives at HiveMQ (the endpoint of the bridge), but after restarting the Mosquitto the same message arrive at HiveMQ again and again. With Mosquitto 2.0.10 and the same test-setup as previously: 1000 QoS 2 Messages from Mosquitto --bridge--> HiveMQ-CE.
Also interesting: I stopped the script at "Sent message number 899" but HiveMQ received (1078-16tests) = 1062 entries mosquitto.log (restart Mosquitto at line 5100) |
I did the same tests with TLS and auth now and can not reproduce this behavior. |
Error
I am publishing with HiveMQ-CLI 1000 MQTT QoS 2 messages to Mosquitto with Payload
"Hallo Welt <n>"
withn
∈ [1 ; 1000] - ca. one message per second. Mosquitto is configured to bridge all messages to HiveMQ-CE - both broker in a Docker container in its own VM. For testing I disabled the network of the bridge end-point HiveMQ-CE (via VM config) for about one minute (~60 messages). After enabling the network HiveMQ-CE receives the same messages over and over again (see logged messages at HiveMQ-CE as CSV and mosquitto.log in Pastebin)Tested with Mosquitto Docker 2.0.9 and 2.0.10
Reproduce
Stacks:
VM-Mosqutto
[192.168.113.131]: Ubuntu + Docker + Docker-Compose + Mosquitto from Docker hubVM-HiveMQ
[192.168.113.130]: Ubuntu + Docker + Docker-Compose + HiveMQ-CE from Docker hubVM-Mosqutto
- payload:"Hallo Welt <counter>"
VM-HiveMQ
"Hallo Welt 147"
-> 147th messageFor simplicity both container in the same compose - I run service
mosquitto
in one VM and servicehivemq
in the other one:docker-compose.yml
:mosquitto.conf
:Bash script to publish 1000 messages to local broker / VM-Mosqutto using MQTT CLI:
The text was updated successfully, but these errors were encountered: