Skip to content
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

mosquitto_passwd -b doesn't work, get Error: Invalid password hash for user #2667

Closed
chenyunhsin opened this issue Oct 25, 2022 · 1 comment

Comments

@chenyunhsin
Copy link

chenyunhsin commented Oct 25, 2022

I use eclipse-mosquitto:1.6.10
Before I add password file, my subscriber and publisher works fine.
As the title, I use command mosquitto_passwd -b to create new user and password,
but then I docker-compose up my Mqtt broker, I get Error: Invalid password hash for user.
These two pictures are my conf and acl files.
Does any one encounter this issue before? I tried to google, but I only found the issue of [MQTT入门2 -- “Error: Invalid password hash for user nick.](https://blog.csdn.net/dongaoren8380/article/details/101887912), and it obviously didn't solve my problem.
I really need some help, please:p

截圖 2022-10-25 上午11 03 29

截圖 2022-10-25 上午11 03 42

additional information, my password file looks normal, password is hashed properly, so I am very confused about the error.
截圖 2022-10-25 上午11 07 06

@chenyunhsin
Copy link
Author

I solved the problem by change the image version to eclipse-mosquitto:2.0.15
and edit the conf like below 0.0
截圖 2022-10-25 下午12 15 15

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant