-
Notifications
You must be signed in to change notification settings - Fork 56
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
Unable to Run MQTT Example Successfully #724
Comments
I narrowed this down to rootless docker networking. The example is working on Ubuntu 22.04. |
@halkony Thank you for reporting and triaging this issue.
Do you mean you were running the docker example in rootless mode which was causing the host network not to work as the example expects? "--net=host doesn't listen ports on the host network namespace" from the docker docs looks to mean the examples as written won't work in rootless mode. |
Correct. I did get it running in rootless docker, however. It turns out Ubuntu has permissions problems when installing docker with snap. Installing from the official docker docs via .deb fixed a lot of my issues. Additionally, I set
so the rootless address space doesn't conflict with my localhost (this fixes the rootless 2181 zookeeper collisions I had out of the box). I also removed the
section I had added manually because I mistook bridge mode for the default host mode. None of these seemed to explicitly solve my problem, but as is typical of linux voodoo, solving several small problems usually fixes one big one. Cheers. |
That makes sense, thank you for sharing your troubleshooting experience. Running examples in docker can be a blessing and a curse sometimes. |
Describe the bug
After following these instructions and starting the given stack, I am unable to connect to the Kafka broker using MQTT.
I seem to be able to talk to the zilla instance, but attempting to connect to mqtt://host.docker.internal:7183 results in repeated
Client null sending CONNECT
errorsTo Reproduce
Follow these instructions on Windows 10.
Expected behavior

I expected to be able to complete the tutorial as described.
Screenshots
After successfully running the stack in the tutorial:
Desktop (please complete the following information):
Windows 10
Docker v4.26.1
Additional context
I've tried connecting with multiple MQTT clients with no luck.
Only other thing I can think to try is running Docker in Linux.
The text was updated successfully, but these errors were encountered: