1

I followed this link to install RabbitMQ server on my Raspberry Pi 4.

I can see that RabbitMQ 3.7.8 and Erlang 21.2.6 are installed.

enter image description here

But I cannot connect to the server from a client (Mqtt Dash, Android app) enter image description here

Can someone share some ideas?


Update 1

sudo systemctl enable rabbitmq-server
sudo systemctl start rabbitmq-server
sudo rabbitmq-plugins enable rabbitmq_management

I have run the above commands to enable and start the mqtt and tried both 1883 and 8883 on the Mqtt Dashboard app, still have no luck.

6
  • Port 15672 is a bit odd for MQTT. It normally runs on 1883 & 8883. So take a look with sudo netstat -tlnpu | grep rabbit.
    – Dougie
    Commented May 26, 2020 at 20:07
  • 1
    Full list of ports used are rabbitmq.com/install-debian.html#ports 15672 is for http clients. Dougie is correct (as normal with MQTT) in saying the ports for MQTT client are these but the plugin needs to be enabled as per rabbitmq.com/mqtt.html
    – user115418
    Commented May 26, 2020 at 22:11
  • hi @Dougie tried, no output. any ideas? I also tried ports 1883 and 8883, they all failed. Is there any information you need to debug?
    – Franva
    Commented May 27, 2020 at 4:56
  • hi @Andyroo I have run commands to enable and start my rabbit mq server. Please see my update 1. Let me know if you need more information for debugging. thanks
    – Franva
    Commented May 27, 2020 at 5:12
  • Can you access the Pi from your phone via any app (Fing is good for finding devices on the network). If so Try the port as 1883 and no user / password
    – user115418
    Commented May 27, 2020 at 8:57

1 Answer 1

2

Thanks @Andyroo for sharing the link

I found I missed one command to run:

rabbitmq-plugins enable rabbitmq_mqtt

So overall, I ran these following commands:

sudo systemctl enable rabbitmq-server
sudo systemctl start rabbitmq-server
sudo rabbitmq-plugins enable rabbitmq_management
sudo rabbitmq-plugins enable rabbitmq_mqtt

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.