-
Notifications
You must be signed in to change notification settings - Fork 6
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
No MQTT messages #2
Comments
Having same issue |
I have added more logs and a debug bar, @xorguy can you try with the latest release? Edit: I tried with below broker and it worked fine.
|
Same thing here. I pulled the latest docker image but no messages. Not sure of the others but I require a username and password for connection to my broker. |
Can you clarify what you mean by added a debug bar? I also have a username/password. I dont see any messages or any new debug logs. All I see in the logs is for http requests which I assume is from me loading the website. |
I tried with version 1.0.2 with same results and no additional logs at the docker logs others than my connections to the page and I don't see any change at the repo since 1.0.2. |
I have tested this and it should fail if your broker require username and password and you should see that in the debug bar, can you provide more details about your setup? |
I realizedI was on the wrong version which would explain why I didnt see the debug button. You should update the readme to either use the latest or use 1.0.2 as the tag. Anyways even with the debug button I do not see any errors. My mqtt setup is basically the simplest possible. I am running mosquitto broker with a static IP on the default port, with username/password required for authentication. I have multiple other devices connected without any issue. For sanity sake I also went into the container installed ping and confirmed the container was able to hit the mqtt server as well. |
How are you running the app? Are you using Docker Compose? Have you confirmed that the environment variables are set correctly inside the container? |
I am using docker and just pulling your existing container on docker hub. And yes just double checked env variables are being set |
I have the same issue. Deployed via compose but I see no logging to show it attempting a connection. My MQTT server needs authentication buut even with this commented out in the compose file I see no errors. Compose:
Container logs:
The interface opens OK, but I do not see anything to suggest an MQTT connection is being attempted. Happy to provide any further info that may help get to the bottom of this. |
Also seeing this behavior on 1.0.2. Cannot connect to broker with username and password env variables set and no debug messages if I make the password incorrect, for example. I'm running mqttui on unraid with my mosquitto server on a separate Home Assistant OS box.
|
Hello ! Same issue for me. I tried on unraid to log my mqttt server on home assistant too. I tried different things like changing networking type (host, bridge, etc), but same issue. |
Hi, Using MQTT with authentication can be tricky, as you can use the same username/password on multiple connection, if you have different clientIDs. It can also be version of MQTT protocol, V3 vs V5, it should also be and option to test. |
Hi, After testing, problem seems to be that we don't do in the main code as name = "app" and not "main" because application is started by flask. So in file app.py, line 147, if I replace: My installation works. Also I replace line 25 with :
to be sure to be compatible with my broker. |
Hi. I tested the changes commented by @errorscript and I can see that the app connects to my MQTT broker and see the messages but in a given moment I got an error and stopped working. Error I got: May this be related that some MQTT messages are encoded images and the app cannot decode it? Despite being able to see logs, until crashed, at the docker logs I still don't see any Debug button at the bottom right. |
Hi everyone, I've released version 1.3.0, which addresses the reported issues with MQTT connections and improves overall configuration flexibility. Key improvements include:
Please try this latest release and let us know if you still experience any issues. You can pull the new version using: If problems persist, please provide:
|
Just pulled it and it works like a champ! |
Works for me too ! Thanks ! |
Confirmed working now |
Hi, Version 1.3.0 work fine for me. Thanks ! Please update the instructions for docker in README.md to point to version 1.3.0 |
Hi.
I created an ARM64 image and set with docker compose with environmental variables for mqtt host, port and credentials but I got no MQTT messages at all.
My compose:
mqttui: image: xorguy/mqttui_arm64:1.0.0 container_name: mqttui environment: - MQTT_BROKER=10.0.0.222 - MQTT_PORT=1883 - MQTT_USERNAME=user - MQTT_PASSWORD=password ports: - 5876:5000 logging: driver: "json-file" options: max-file: "5" # number of files or file count max-size: "100m" # file size
Do you have any idea why it seems to not connect to my MQTT broker?
The text was updated successfully, but these errors were encountered: