Skip to main content



      Home
Home » Eclipse Projects » Mosquitto » mosquito.conf not work
mosquito.conf not work [message #1818091] Thu, 05 December 2019 08:30 Go to next message
Eclipse UserFriend
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 10:11 Go to previous message
Eclipse UserFriend
`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: Wed Jul 09 09:03:24 EDT 2025

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

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

Back to the top