Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mosquitto » mosquito.conf not work
mosquito.conf not work [message #1818091] Thu, 05 December 2019 13:30 Go to next message
column column is currently offline column columnFriend
Messages: 21
Registered: December 2017
Junior Member

I run Mosquitto in Ubuntu Linux. Service works fine with anonymous users. Trying to configure system by editing editing /etc/mosquitto/conf.d/mosquitto.conf file.

mosquitto.conf content:
log_type all

allow_anonymous false
password_file /etc/mosquitto/mosquitto_users.txt
pid_file /var/run/

persistence true
persistence_location /var/lib/mosquitto/

log_dest file /var/log/mosquitto/mosquitto.log

include_dir /etc/mosquitto/conf.d

Restart mosquitto by break and run mosquitto -v command again.

Looks like configuration file makes no influence in system. Still allows anonymous and log file has no new records.

How to make configuration file work?
Re: mosquito.conf not work [message #1818324 is a reply to message #1818091] Thu, 12 December 2019 15:11 Go to previous message
Roger Light is currently offline Roger LightFriend
Messages: 47
Registered: September 2013
`mosquitto -v` does not load a configuration file.

If you have installed mosquitto from the Ubuntu repository or the Mosquitto PPA, then you should have a file /etc/mosquitto/mosquitto.conf which configures the directory /etc/mosquitto/conf.d/ as a place to put configuration files.

If you have, then starting Mosquitto using systemd (systemctl start mosquitto) should load your configuration file.

Please note that you must remove the line `include_dir /etc/mosquitto/conf.d` from the file in the conf.d directory, it is not permitted there.

I hope that helps.

Previous Topic:Mosquitto Bridge TLS error handling
Next Topic:Dynamic installation/access of client certificates
Goto Forum:

Current Time: Sun Nov 29 04:30:06 GMT 2020

Powered by FUDForum. Page generated in 0.01958 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top