Cannot start mosquitto with config file
Hi,
The mosquitto broker 0.15-2ubuntu1.2 works fine with default configuration. However when trying to start the server with config file with command mosquitto -c /etc/mosquitto/
(Config file says to log it to the location mentioned below)
Error: Invalid log_dest value (/var/log/
Error: Unable to open configuration file.
As it seems to be a permission issues we went ahead and uninstalled the package completely using below commands as a quick fix.
sudo apt-get remove --auto-remove mosquitto
sudo apt-get purge --auto-remove mosquitto
removing all the dependencies and files. Then again installed the package however, this time there was not entries made in var/log directory as there were with the first installation as /var/log/
We then manually created the directory and assigned it to the user mosquitto.
At this point there was no group under the name mosquitto, so we created a group mosquitto and assigned the mosquitto user to it, and assigned the /var/log/
sudo chown mosquitto:mosquitto /var/log/
however we still get the same error :
Error: Invalid log_dest value (/var/log/
Error: Unable to open configuration file.
One more thing that i would like to bring to your notice is that is another stand by server we have a fully functioning mosquitto broker running with a conf file.
The output to the command :
find / -group mosquitto
results in below output:
/proc/19211
/proc/19211/task
/proc/19211/
/proc/19211/
/proc/19211/net
/proc/19211/attr
find: `/proc/
find: `/proc/
find: `/proc/22393/fd/5': No such file or directory
find: `/proc/
/var/lib/
/var/log/
however on the main server with problem,it give result with nothing in proc directory, as below:
find: `/proc/
find: `/proc/
find: `/proc/13525/fd/5': No such file or directory
find: `/proc/
/var/log/
/var/lib/
Can anyone tell where we messed up even more in order to fix thing.
Regards,
Kamakhyajrun Mishra
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu mosquitto Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask kamakhyarjun Mishra for more information if necessary.