-
Notifications
You must be signed in to change notification settings - Fork 165
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
Plugin double binding ports on Mosquitto #238
Comments
I think I've figured it out, it will bind to 1883 even if I don't add a listener on it. strange |
Hey, @joaodforce! I think Mosquitto is at fault here, there's no mention of port 1883 in the plugin other than in example configuration for Docker. You can also notice the difference in log format coming from Mosquitto versus the plugin, where the former starts with what seems to be a unix epoch number, while the plugin follows On another note, I don't know how |
Hi there! sorry for the delayed response, the way I managed to understand what the problem was, altho it doesn't make sense, With the plugin On and I managed to get my broker running just by removing my Im not sure what's this about, I ended up giving up for now, and just leaving everything authenticated, which was an annoying process, I had to go setup credentials in many applications in the server. however it would be nice if we could figure out what is going on with mosquito here. Right now I understand it is mosquitto's fault it seems, but this behavior is related with the addition of the plugin. |
I'm gonna close this issue for now, but feel free to reopen it if you encounter the same problem again. |
I'm setting up the go-auth plugin in my Mosquitto broker
I already had a setup with 3 listeners, 1 for localhost only that allows anonymous logins.
a second one on port 1884 that needs to be authenticated with a password file.
and a 3rd one on port 8883 with TLS enabled that also uses Mosquitto's default password file system.
I then built the go-auth plugin and added a forth listener on port 8884 and set it up with sqlite.
however when I Went to start the service I was faced with a weird issue, it started to say that port 1883 was already in use, for some reason it is trying to bind to it twice.
Here are the startup logs:
This is my current config file:
Ive tried many things, and the only thing so far that gets it working is having only one listener.
I need at least one listener without TLS because not all my devices support TLS.
if I remove the
listener 1883 localhost
it works.The text was updated successfully, but these errors were encountered: