eclipse / mosquitto

Eclipse Mosquitto - An open source MQTT broker
https://mosquitto.org
Other
8.61k stars 2.33k forks source link

mosquitto broker can't start after configuring password authentication #3041

Open twkwow opened 2 months ago

twkwow commented 2 months ago

basically i've installed mqtt mosquitto on windows, when I tried to configure the password files, it wont run. I suspect it is because it can't find the password file. I've tried mutiple password file paths in the mosquitto.conf like:

password_file "C:\Program Files\mosquitto\p1.txt" password_file "C:\Program Files\mosquitto\p1" password_file C:\Program Files\mosquitto\p1.txt password_file C:\Program Files\mosquitto\p1 password_file C:\Progra ~ 1\mosquitto\p1.txt password_file C:\Progra ~ 1\mosquitto\p1

all of the above can't seemed to work. If I don't use password configuration and allow_anonymous true, then it started running again. I'm running the mosquitto broker on my windows 10, using cmd with the command: net start mosquitto

Recastofsun commented 2 weeks ago

If someone will have the same issue, try to download the previous version of the server. For me work 2.0.8.