Skip to main content



      Home
Home » Eclipse Projects » Mosquitto » Unable to test Mosquitto broker(mosquitto_sub returns "Connection Refused: not authorised.")
Unable to test Mosquitto broker [message #1804222] Wed, 20 March 2019 12:47 Go to next message
Eclipse UserFriend
I'm totally new to all this but I have Mosquitto running in a Docker container on a Raspberry Pi. Portainer reports "Running for 10 hours". I opened a terminal on my main PC (Linux Mint), ssh'd into the RPi , and ran mosquitto_sub -d -t testTopic
It returns:
Client mosqsub/6490-MicroSrv-P sending CONNECT
Client mosqsub/6490-MicroSrv-P received CONNACK
Connection Refused: not authorised.

I suspect this is caused by the fact that, after installing the client, at no point did I specify the username and password I setup when installing the broker - but I have no idea how/where to do that.

I really just want to test/confirm that the broker is running/working. If there's a better way, please let me know.
Re: Unable to test Mosquitto broker [message #1804455 is a reply to message #1804222] Tue, 26 March 2019 07:13 Go to previous messageGo to next message
Eclipse UserFriend
Sorry for the delay replying, I don't monitor this forum much.

If you installed the eclipse-mosquitto docker image then by default it is configured without authentication, you have to then set that up yourself. If you haven't configured authentication then I don't know what the problem is right now. Did you use the eclipse-mosquitto image, or a different one?
Re: Unable to test Mosquitto broker [message #1804490 is a reply to message #1804455] Tue, 26 March 2019 19:14 Go to previous message
Eclipse UserFriend
Disregard. I figured it out.

[Updated on: Tue, 26 March 2019 19:22] by Moderator

Previous Topic:sql based authentication and authorization
Next Topic:Received MQTT data from a subscribed topic on text file.
Goto Forum:
  


Current Time: Sun Jul 06 11:51:45 EDT 2025

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

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

Back to the top