FIWARE / tutorials.IoT-over-MQTT

:orange_book: FIWARE 203: Provisioning Ultralight with an alternative transport: IoT over MQTT
https://fiware-iotagent-ul.rtfd.io
MIT License
62 stars 44 forks source link

Error: Connection refused #23

Closed arunrajput220 closed 3 years ago

arunrajput220 commented 3 years ago

I am getting this error "Error: Connection refused" while running below command

docker run -it --rm --name mqtt-subscriber --network fiware_default efrecon/mqtt-client sub -h mosquitto -t "/#" Error: Connection refused

jason-fox commented 3 years ago

That is a nice little breaking change coming from Mosquitto 2.0. Commit fc52921 now fixes the docker-compose to a fixed 1.6.14 release as shown:

  mosquitto:
-    image: eclipse-mosquitto
+    image: eclipse-mosquitto:1.6.14

You can make the change yourself or just pull the latest changes.

The latest version of Mosquitto 2.0 runs more securely by default and isn't letting in access from an unconfigured I.P. Since security is not the focus of the tutorial it is easily fixed by pinning to the older Mosquitto version.