Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Authentication failure

Yes, the service is running, when I change the allow anonymous to yes it works. 

I ran
chown mosquitto:mosquitto /etc/mosquitto/passwd

After creating the passwd file, that should take care of file access. It also can write to the file because it's generating the auto password through your utility. 

I have tried a simplified password and that did not work either. 



From: mosquitto-dev <mosquitto-dev-bounces@xxxxxxxxxxx> on behalf of Peter Rockett via mosquitto-dev <mosquitto-dev@xxxxxxxxxxx>
Sent: Saturday, August 24, 2024 3:30:33 AM
To: mosquitto-dev@xxxxxxxxxxx <mosquitto-dev@xxxxxxxxxxx>
Cc: Peter Rockett <p.rockett@xxxxxxxxxxxxxxx>
Subject: Re: [mosquitto-dev] Authentication failure
 

Is the mosquitto service actually running?

As of mosquitto version 2.0.18 (at least), the passwd file requires read access for the ‘mosquitto’ user that is created when installing the software.  Otherwise starting the mosquitto service fails. This is documented, but is easy to overlook.

P.


On 24/08/2024 03:31, Anthony Falzon III via mosquitto-dev wrote:
I am using tteks script to install mqtt as a docker LXC. 

Install went fine, created the passwd file, which generated:
<username>:<auto generated password>

I am getting an authorization error when using the username or password in that file. 

conf.d does point to that file. allow_anonymous is set to false. If I change it to true and comment out my password/username I everything works as expected. 


I'm failing in Z2MQTT and Home Assistant.  



_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/mosquitto-dev

Back to the top