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] Mosquitto 2.0 and Configuration #1071
Comments
Nice to know. I will try. For more, my MQTT network suddendly dies... not relation with Gladys, I use separated broker for now. |
Me too, may be related to listener option |
Ok, We may add a param to service to check if new option is already set. What do you think? |
What about finding another MQTT Docker image that just supports environment variables instead of a config file? Right now, the process seems "flaky", mostly because there are several source of truth (the mosquitto container + the file + Gladys DB) that can be easily out of sync between themselves. On top of that, as the DB is no longer the only source of truth, backing up the DB do not backup everything. |
Env variable can change too , I think that doesn't solve the problem Mosquitto problem come from major release 1.X to 2.X. ( Yes breaking change 😟 ) Right now we need to check at gladys startup conf file for missing options ( like @atrovato said ) What about that => https://www.npmjs.com/package/aedes ? |
It doesn't solve this problem, but improve the overall stability of all this :) Agree, for this problem, if we keep the same docker image, we need to update the file at startup with listener 1883. It could just be done in a migration ! |
For Aedes, I don't think it's a short term solution to fix this issue ! |
Yes I agree , just a question. Another topic for another day 😅 |
do you mean we force mosquitto version? |
@atrovato yes right, so mosquitto is updated ( bug fix ) and next major release ( v3 or something ) will not break gladys integration |
Ok, so I will have to force remove / re-creation of the mosquitto container (only for already configured containers) to force image version to 2 and not latest. |
…1074) Co-authored-by: Pierre-Gilles Leymarie <[email protected]>
@VonOx @Pierre-Gilles can we close this? |
Hello, can someone explain how to remove that error? |
Mosquitto 2.0 need a new option to work ( eclipse/mosquitto#2040 )
listener 1883
Related thread in forum => https://community.gladysassistant.com/t/tutoriel-flasher-et-configurer-un-sonoff/4526/57?u=vonox
For newly created configuration no problem ( if we update the shell script ), but for existing configuration there is not check.
All current Gladys running instance with configured MQTT integration can be impacted.
@atrovato FYI
The text was updated successfully, but these errors were encountered: