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: 25
Registered: December 2017
Junior Member
Hello,

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/mosquitto.pid

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: 90
Registered: September 2013
Member
`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.

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


Current Time: Fri Apr 26 08:01:31 GMT 2024

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

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

Back to the top