I seem to have had a problem last night where my HA install on my PI ran out of disk space (I’ve changed the history now so it only keeps 1 day) and disk space is fine now. Problem is that running out of disk space seems to have broken the MQTT service somehow. It does’t seem to want to connect, this is in my HA startup:
The following errors have been logged this session:
The following errors have been logged this session:
2017-08-05 10:52:29 ERROR (MainThread) [homeassistant.setup] Error during setup of component mqtt
Traceback (most recent call last):
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/setup.py", line 187, in _async_setup_component
result = yield from component.async_setup(hass, processed_config)
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/mqtt/__init__.py", line 377, in async_setup
success = yield from hass.data[DATA_MQTT].async_connect()
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/mqtt/__init__.py", line 487, in async_connect
self._mqttc.connect, self.broker, self.port, self.keepalive)
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/hass/.homeassistant/deps/paho/mqtt/client.py", line 700, in connect
return self.reconnect()
File "/home/hass/.homeassistant/deps/paho/mqtt/client.py", line 822, 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
2017-08-05 10:52:30 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=10 from 2017-08-05 10:11:19.950944)
2017-08-05 10:52:32 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of light.mqtt. Setup failed for dependencies: mqtt
2017-08-05 10:52:32 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform light.mqtt: Could not setup all dependencies.
2017-08-05 10:52:32 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of light.mqtt. Setup failed for dependencies: mqtt
2017-08-05 10:52:32 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform light.mqtt: Could not setup all dependencies.
2017-08-05 10:52:32 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of light.mqtt. Setup failed for dependencies: mqtt
2017-08-05 10:52:32 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform light.mqtt: Could not setup all dependencies.
2017-08-05 10:52:32 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of light.mqtt. Setup failed for dependencies: mqtt
2017-08-05 10:52:32 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform light.mqtt: Could not setup all dependencies.
2017-08-05 10:52:33 WARNING (Thread-5) [homeassistant.components.zwave] ZWave entity_ids will soon be changing. To opt in to new entity_ids now, set `new_entity_ids: true` under zwave in your configuration.yaml. See the following blog post for details: https://home-assistant.io/blog/2017/06/15/zwave-entity-ids/
2017-08-05 11:14:49 WARNING (MainThread) [homeassistant.components.automation.time] 'after' is deprecated for the time trigger. Please rename 'after' to 'at' in your configuration file.
2017-08-05 11:14:49 WARNING (MainThread) [homeassistant.components.automation.time] 'after' is deprecated for the time trigger. Please rename 'after' to 'at' in your configuration file.
2017-08-05 11:15:19 WARNING (Thread-7) [homeassistant.components.zwave] zwave not ready after 30 seconds, continuing anyway
2017-08-05 11:19:32 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from nmap_tracker took longer than the scheduled scan interval 0:00:12
Any ideas ? Not sure where to look next ?
Thanks!