@mackelito posted a new topic, subject "Mqtt failed to initialize". It read:

   I´m getting this error in the logs: homeassistant.components.mqtt:  
    “homeassistant.bootstrap: component mqtt failed to initialize”  
    “Can't connect to the broker. Please check your settings and the broker itself.”
    
    A fresh install 0.27.2 (updating to 0.28 did not help)
    [code] 
        mqtt:
          broker: (661)914-5548
          port: 1883
          client_id: home-assistant-1
          username: pi
          password: raspberry
        
    [/code]
    
    Any ideas?

Then @AlucardZero (Alucard Zero) said

    What is the output of the following `lsof` command as root:
    [code] 
        apt-get update > /dev/null
        apt-get install lsof
        lsof -i tcp:1883
        
    [/code]
    
    Reading/posting the entire stack trace (instead of just the two lines you posted) might give more clues

So @mackelito replied

    Here´s the stuff from the logs:
    [code] 
        16-09-11 11:30:26 homeassistant.components.mqtt: Can't connect to the broker. Please check your settings and the broker itself.
        Traceback (most recent call last):
        File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/mqtt/__init__.py", line 243, in setup
        client_cert, tls_insecure, protocol)
        File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/mqtt/__init__.py", line 329, in __init__
        self._mqttc.connect(broker, port, keepalive)
        File "/home/hass/.homeassistant/deps/paho/mqtt/client.py", line 686, in connect
        return self.reconnect()
        File "/home/hass/.homeassistant/deps/paho/mqtt/client.py", line 808, in reconnect
        sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
        File "/usr/lib/python3.4/socket.py", line 509, in create_connection
        raise err
        File "/usr/lib/python3.4/socket.py", line 500, in create_connection
        sock.connect(sa)
        ConnectionRefusedError: [Errno 111] Connection refused
        16-09-11 11:30:26 homeassistant.bootstrap: component mqtt failed to initialize
        16-09-11 15:31:01 plexapi: http://(661)914-5548:32400: HTTPConnectionPool(host='(661)914-5548', port=32400): Max retries exceeded with url: / (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7624f590>: Failed to establish a new connection: [Errno 113] No route to host',))
    [/code]

After which, @mackelito added

    did it give you any glues? Anything would help 
    
    Doing a port scan gives me the following:  
    Port Scan has started…
    
    Port Scanning host: (661)914-5548
    [code] 
         Open TCP Port: 	22     		ssh
         Open TCP Port: 	8123
        
    [/code]
    
    Port Scan has completed…
    
    So it looks as mqtt is not started at all

To which @Henrik1986 (Henrik1986) replied

    Try to remove all content in deps and let HA download the content again. This helped me when a similar problem with mqtt

To which @tmjpugh (Tmjpugh) replied

    i read in another thread that deleting the password worked.  
    Basically it seems that internal broker does not require or have password.
    
    I go this same error but gave up before figuring it out. Just happened to run across that solution.  
    I use docker images so I just created a seperate mosquitto mqtt container. I think this works better as I was having some issue after reboots. I use (2) separate HA instances and if I rebooted both or restarted both mqtt would not initialize

Then @mackelito said

    Didn´t work

To which @mackelito replied

    clearing deps didn´t help either


{'source': 'discourse', 'url': 'https://community.home-assistant.io/t/mqtt-failed-to-initialize/3802', 'title': 'Mqtt failed to initialize', 'views': 2227, 'has_accepted_answer': False, 'word_count': 490, 'like_count': 0, 'reply_count': 6, 'participant_count': 4, 'posts': 8, 'tags': '', 'author': '@mackelito', 'participants': '@mackelito, @AlucardZero (Alucard Zero), @Henrik1986 (Henrik1986), @tmjpugh (Tmjpugh)', 'image_url': [None], 'created_at': '2016-09-11T09:39:12.589Z', 'last_posted_at': '2016-09-18T20:34:17.577Z'}