RabbitMQ runs with the MQTT plugin, but with constant error messages

240 views
Skip to first unread message

Developer

unread,
Mar 21, 2023, 5:07:46 PM3/21/23
to rabbitmq-users
RabbitMQ runs fine with mqtt in statefulset, but I keep getting error messages. crasher: 2023-03-21 20:35:25.318524+00:00 [error] <0.9964.8> initial call: rabbit_mqtt_reader:init/1 2023-03-21 20:35:25.318524+00:00 [error] <0.9964.8> pid: <0.9964.8> 2023-03-21 20:35:25.318524+00:00 [error] <0.9964.8> registered_name: [] 2023-03-21 20:35:25.318524+00:00 [error] <0.9964.8> exception error: no function clause matching 2023-03-21 20:35:25.318524+00:00 [error] <0.9964.8> rabbit_mqtt_reader:do_terminate(shutdown,undefined) (rabbit_mqtt_reader.erl, line 226) What can be the cause?

David Ansari

unread,
Mar 23, 2023, 3:04:36 AM3/23/23
to rabbitmq-users
This is fixed in the upcoming RabbitMQ 3.12 release.
Please try out your MQTT workload using docker image rabbitmq:3.12-rc-management
See also https://blog.rabbitmq.com/posts/2023/03/native-mqtt/ about more 3.12 MQTT improvements.

Developer

unread,
Mar 23, 2023, 6:38:32 PM3/23/23
to rabbitmq-users
That worked, thank you very much!

Developer

unread,
Mar 24, 2023, 5:50:23 AM3/24/23
to rabbitmq-users
Unfortunately since rabbitmq:3.12-rc-management I no longer see any message rates in the management tool. they are all =0

David Ansari

unread,
Mar 24, 2023, 11:14:15 AM3/24/23
to rabbitmq-users
Thanks for your feedback.
Yes, as mentioned in https://github.com/rabbitmq/rabbitmq-server/pull/5895 some rabbitmq_management metrics no longer work with Native MQTT in 3.12.
You can still see metrics from Connections (e.g. network traffic from / to client) and from Classic Queues and Quorum Queues (e.g. how many messages they contain).
The Message Rates are indeed no longer shown for MQTT traffic in the Management UI. This behaviour is similar to RabbitMQ Stream connections. MQTT connections in 3.12 and RabbitMQ Stream connections do not use the Channel process anymore.
We recommend using Prometheus for monitoring. Global counters (https://github.com/rabbitmq/rabbitmq-server/blob/main/deps/rabbitmq_prometheus/metrics.md#global-counters) are working with Native MQTT in 3.12.
Reply all
Reply to author
Forward
0 new messages