Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mosquitto restarting after AiO #2211

Closed
mrwonkerz opened this issue Jun 2, 2016 · 4 comments
Closed

Mosquitto restarting after AiO #2211

mrwonkerz opened this issue Jun 2, 2016 · 4 comments

Comments

@mrwonkerz
Copy link

Make sure you are running the latest version of Home Assistant before reporting an issue.

You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:

Home Assistant release (hass --version):
0.20.3

Python release (python3 --version):

Python 3.4.2

Component/platform:
Mosquitto Broker

Description of problem:
After installing HA with the AiO the Mosquitto Broker restarts every 100seconds

Expected:
Mosquitto Keeps Running

Problem-relevant configuration.yaml entries and steps to reproduce:

  1. Install HA with AiO
  2. Define Mosquitto as MQTT Broker in configuration.yaml
  3. run service systemctl status mosquitto.service

Additional info:
Add the following lines to mosquitto.conf wil fix the issue:
pid_file /var/run/mosquitto.pid
user mosquitto

@JshWright
Copy link
Contributor

This should be an issue (or even better, a pull request) on the AiO project.

https://github.com/home-assistant/fabric-home-assistant

@rbrus
Copy link

rbrus commented Jun 14, 2016

Hi,

Which mosquitto.conf should be updated?

cat /etc/mosquitto/mosquitto.conf
cat /etc/init/mosquitto.conf
cat /home/pi/fabric-home-assistant/mosquitto.conf
cat /srv/hass/src/mosquitto-1.4.4/service/upstart/mosquitto.conf
cat /srv/hass/src/mosquitto-1.4.4/mosquitto.conf

Thanks,

@bengan
Copy link

bengan commented Jun 14, 2016

Probably /etc/mosquitto/mosquitto.conf

Check in the manual. "man mosquitto" and under FILES

Or it's specified by the -c switch on command line

check with:
ps up pidof mosquitto

PS. It should be back ticks around pidof mosquitto but I don't seem to be able to do that on markdown without markdown eating my ticks DS.

@rbrus
Copy link

rbrus commented Jun 14, 2016

Hi,

Updating mosquitto to latest version plus all changes from posts here solved the problem.

Thanks all for help

@home-assistant home-assistant locked and limited conversation to collaborators Mar 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants