MQTT Error starting HA

Hi

My mqtt is with problem:

2017-12-16 01:43:28 ERROR (MainThread) [homeassistant.setup] Error during setup of component mqtt
Traceback (most recent call last):
File “/usr/local/lib/python3.5/dist-packages/homeassistant/setup.py”, line 190, in _async_setup_component
result = yield from component.async_setup(hass, processed_config)
File “/usr/local/lib/python3.5/dist-packages/homeassistant/components/mqtt/init.py”, line 387, in async_setup
success = yield from hass.data[DATA_MQTT].async_connect()
File “/usr/local/lib/python3.5/dist-packages/homeassistant/components/mqtt/init.py”, line 498, in async_connect
self._mqttc.connect, self.broker, self.port, self.keepalive)
File “/usr/lib/python3.5/asyncio/futures.py”, line 380, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.5/asyncio/tasks.py”, line 304, in _wakeup
future.result()
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/concurrent/futures/thread.py”, line 55, in run
result = self.fn(*self.args, **self.kwargs)
File “/var/opt/homeassistant/deps/lib/python3.5/site-packages/paho/mqtt/client.py”, line 768, in connect
return self.reconnect()
File “/var/opt/homeassistant/deps/lib/python3.5/site-packages/paho/mqtt/client.py”, line 895, in reconnect
sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
File “/usr/lib/python3.5/socket.py”, line 712, in create_connection
raise err
File “/usr/lib/python3.5/socket.py”, line 703, in create_connection
sock.connect(sa)

anyone could help

The most likely problems are that you have the wrong address for the broker in the mqtt: section, or the broker isn’t running.