Skip to content
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

Error: Connection refused #23

Closed
arunrajput220 opened this issue Mar 19, 2021 · 1 comment
Closed

Error: Connection refused #23

arunrajput220 opened this issue Mar 19, 2021 · 1 comment

Comments

@arunrajput220
Copy link

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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants