-
Notifications
You must be signed in to change notification settings - Fork 74
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
Login to mosquitto-broker fails after last update to 6.1.1 #105
Comments
I'm a bit confused by your description. You say you updated to Mosquitto 6.1.1, which - according to To me this sounds like a misconfiguration of the |
it is mosquitto-broker v6.1.1
Namoshek ***@***.***> schrieb am Sa., 7. Mai 2022, 19:22:
… I'm a bit confused by your description. You say you updated to Mosquitto
6.1.1, which - according to eclipse/mosquitto
<https://github.com/eclipse/mosquitto/tags> - does not exist. Also does
your Mosquitto log say 1651903025: mosquitto version 2.0.11 starting,
which is a version of June 2021. To what exactly is version 6.1.1 referring
to?
To me this sounds like a misconfiguration of the go-auth plugin or a
feature incompatibility (e.g. using only a username for authentication).
But I don't know the plugin, so I really cannot be of more help to be
honest.
—
Reply to this email directly, view it on GitHub
<#105 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFIMPZ6G6I3EI434CHAWSF3VI2REVANCNFSM5VKTCUVA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
As I've seen, you also posted the question in the Home Assistant forums where you should be able to receive more qualified feedback than here. From my perspective, you are clearly describing the update as the source of your problem. You should therefore start to look for changes in the |
I'm having the same problem. All my other MQTT libraries seem to work fine, the only outlier I've seen is php-mqtt. Ones that I've tested working are mosquitto_pub/sub in the Eclipse library, MQTT Explorer, BlueIris NVR4, Espurna 1.14.1 and Tasmota 11.1.0. I'm relying on standard authentication with username and password, but php-mqtt is throwing this error My usernames and passwords have pipes and hyphens in them, but that doesn't seem to matter after trying another username. PHP throws error: Mosquitto shows error |
I'll look into it, but it would be helpful to have the Mosquitto config you are using (without the credentials of course). |
Broker or client?
Namoshek ***@***.***> schrieb am Sa., 4. Juni 2022, 08:56:
… I'll look into it, but it would be helpful to have the Mosquitto config
you are using (without the credentials of course).
—
Reply to this email directly, view it on GitHub
<#105 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFIMPZ3NYYPTDIQ52POEIF3VNL42JANCNFSM5VKTCUVA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Ideally both, but the broker settings are of more interest to me. |
No, silmply letters
Namoshek ***@***.***> schrieb am Sa., 4. Juni 2022, 09:50:
… Is your password ending with a pipe (or another symbol character) by any
chance?
—
Reply to this email directly, view it on GitHub
<#105 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFIMPZZAF72C7L73ND32VP3VNMDFPANCNFSM5VKTCUVA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Here the broker settings
Bernd Rehlinger ***@***.***> schrieb am Sa., 4. Juni 2022,
10:36:
… No, silmply letters
Namoshek ***@***.***> schrieb am Sa., 4. Juni 2022, 09:50:
> Is your password ending with a pipe (or another symbol character) by any
> chance?
>
> —
> Reply to this email directly, view it on GitHub
> <#105 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AFIMPZZAF72C7L73ND32VP3VNMDFPANCNFSM5VKTCUVA>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Ok, so I added tests in #113 which ensure authentication with Mosquitto 1.6 and 2.0 works as expected. The test user is Therefore this really looks like a configuration issue on the broker side and not a bug in this library. If you can provide me with the broker settings, maybe I'll be able to help anyway though. |
Trying my best to get what you need, I can't figure out how to pull a config file, as the addon seems to generate one when the mosquitto broker service starts. I tried manually adding the user by adding this into the "Logins" section of the addon.
My hope was to bypass go-auth. I'm assuming that go-auth is what is used to do SSO between the HA user accounts and Mosquitto Broker? Well that didn't work, and I'm getting only this error now:
PHP debug still says same message:
Sorry if this wasn't any help, I'm not very familiar with the back end of mosquitto home assistant addon |
Ok here are my broker settings:
then in /share/mosquitto/, I have these files acl.conf
accesscontrollist
Also tried these
Also recently MQTT Broker was changed to not allow anonymous connections. From what I understand anonymous connections can't even be allowed anymore due to go-auth Also Are you using User Properties to authenticate? Another developer said his .NET implementation of a MQTT Client was having issues until he changed authentication via UserProperties() to WithCredentials() |
Thank you for the details. Unfortunately, I'm still not able to reproduce the issue. I've been running my tests against a Mosquitto with go-auth using the following configuration:
All four listeners are used in the test suite of this library and all four work just as expected. The
and
The
I think they refer to some methods provided by the .NET library, not an MQTT detail. In MQTT, there is only one way to authenticate: through the By the way, user properties have been introduced in MQTT 5, which this library does not implement so far. So this really is out of question for this issue. |
Hi folks,
after my last update of the mosquitto broker to the latest version (6.1.1) I don’t receive any value.
A look into the log sais to me that my login fails.
Is somebody able to help me?
regards,
Bernd
The text was updated successfully, but these errors were encountered: