• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Problem starting mosquitto after altering conf file

Q&A Forum › Category: Home Automation › Problem starting mosquitto after altering conf file
0 Vote Up Vote Down
Gary Leslie asked 2 years ago

After altering the mosquitto.conf file and using 
sudo systemctl restart mosquitto
I get the following error
job for mosquitto.service failed because the control process exited with error code.
See “systemctl status mosquitto.service” and “journalctl -xeu mosquitto.service” for details.
My  mosquitto.conf file is 
#Place your local configuration in /etc/mosquitto/conf.d/
#
# A full description of the configuration file is at
# /usr/share/doc/mosquitto/examples/mosquitto.conf.example
per_listener_settings true
pid_file /run/mosquitto/mosquitto.pid
persistence true
persistence_location /var/lib/mosquitto/
log_dest file /var/log/mosquitto/mosquitto.log
include_dir /etc/mosquitto/conf.d
allow_anonymous false
password_file /etc/mosquitto/passwd
listener 1883
What is happening.
Running the command
mosquitto
This works locally  but only allows local connections and does not allow my ESP board to connect.
 

Question Tags: mosquitto
3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
Please double-check that you’ve edited the configuration file correctly.
I think that’s what the error code is mentioning. There’s some error on the configuration file.
 
You can also try running the commands mentioning in the error code to understand if the issue is being caused by something else.
 
Regards,,
Sara

0 Vote Up Vote Down
Heribert Houben answered 1 year ago

I got the same problem. checked the config file twice but can’t find any error in the file.
I tried to repeat the whole installation process but same error occurs. Why is mosquitto unable to restart???

0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

Hi.
Can you show me a screenshot of your mosquito configuration file?
To share a picture, upload it to google drive, dropbox, or imgur and then share a link to the file.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.