-
Notifications
You must be signed in to change notification settings - Fork 101
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
mqtt connection issue after upgrade from 5.5.1 to 5.6.2 #726
Comments
I would also like to add that rolling back to 5.5.1 allows ring-mqtt to connect to mosquitto just fine, without any changes to the config.json |
As there were no changes in ring-mqtt code around MQTT connectivity, and really there haven't been for years (quite literally the mqtt.js code hasn't even been touched in 8 months), it's hard to see what this could be, but, as a theory, there was a major new version of MQTTjs from v4.x to v5.x, which was released back in July. I did bump dependencies to this new major version in the 5.6.x releases, so maybe there's a bug there, but hard to see what it could be as 1000's of users have upgraded already and there are no other reports of this issue. One thing that is super confusing, the log you sent doesn't match the config, for example in the log it says:
While in the config you have:
This seems...strange. The URL in the log should match the URL in the config other than the password would be obscured in the log. |
Yes. I did notice that mqtt.js file wasn't touched in 8months. so that's why this seemed very weird. I thought maybe something else in my environment changed and hence I did a rollback of the container to the older image to check and the older image still works. Good catch about the URL. See attached logs after rollback. The URL after rollback is as defined in config.json I do see connection attempts in Mosquitto logs with the 5.6.2 version. So I am not sure whether this is an indication of an issue or a red herring.
|
This may be a problem with TrueCharts, which is what I am using for ring-mqtt installation. I just checked their commits and saw this Let me dig around a bit more |
Yes, TrueCharts changed how the configuration was being passed to the container. I fixed my setup to adapt to the new format and it worked. Thanks for your help! |
Hi, <Integration tsightler/ring-mqtt> Repository structure for v5.6.2 is not compliant I see you marked it as bug, but I don't understand why this issue was closed...problem isn't solved...?! |
@pilot1981 The issue was resolved, which is why it was closed, and it was not directly related to any bug in this project anyway (the problem was with a 3rd party which repackages this project). This project has nothing to do with HACS and the instructions for installing this project in Home Assistant do not mention HACS. https://hacs.xyz/docs/faq/addons/. |
Please, can you share workaround for it? regards |
Describe the Bug
Connection to mosquitto broker getting rejected with Not Authorized message
Steps to Reproduce
Install/Upgrade ring-mqtt to 5.6.2 and connect to mosquitto 2.0.17 with "allow_anonymous false"
Expected Behavior
Connection should be successful
Log Output
Screenshots
No response
Config File
Install Type
Docker
Version
5.6.2
Operating System
TrueNAS Scale 22.12.3.2
Architecture
x86_64
Machine Details
Physical x86_64
The text was updated successfully, but these errors were encountered: