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: Connction refused | A clean way to uninstall mosquito ? #2994

Open
LempereurTom opened this issue Feb 6, 2024 · 2 comments
Open

Error: Connction refused | A clean way to uninstall mosquito ? #2994

LempereurTom opened this issue Feb 6, 2024 · 2 comments

Comments

@LempereurTom
Copy link

Hello guys,
So for a school project I've installed Mosquitto on a 11Debian.
I've messed up with some files I think.. Is there a way to fully uninstall mosquitto from the Debian, a clean way I mean with nothing left from mosquitto on the Debian?

Or maybe can you guys help me with this error :
Error: Connection refused

@LempereurTom
Copy link
Author

The "Connection refused" error happens when I try too create a mosquitto_sub on localhost.
I've tried to create one with this command
mosquitto_sub -t newtopic/test -h test.mosquitto.org
And this is perfectly working. I can publish messages.

But whenever I use
mosquitto_sub -h localhost - t newtopic/test
I got the Connection refused Error.

@ptjm
Copy link

ptjm commented Feb 13, 2024

Maybe an obvious question, before running that command, did you run

mosquitto

? That should run the broker in the foreground with quite a lot of debug output. Once that's running, the sub and pub command-line tools should work.

To get it working on a real network interface, you'll need at least a minimal config file:

listener 1883
allow_anonymous true

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