AIO Upgrade to 0.39 MQTT memory failure

17-02-26 14:18:02 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/lib/python3.4/asyncio/tasks.py”, line 235, in _step
result = coro.send(value)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py”, line 341, in _async_process_entity
new_entity, self, update_before_add=update_before_add
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py”, line 207, in async_add_entity
yield from entity.async_added_to_hass()
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/switch/mqtt.py”, line 100, in async_added_to_hass
self.hass, self._state_topic, message_received, self._qos)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/mqtt/init.py”, line 209, in async_subscribe
yield from hass.data[DATA_MQTT].async_subscribe(topic, qos)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/mqtt/init.py”, line 491, in async_subscribe
_raise_on_error(result)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/mqtt/init.py”, line 610, in _raise_on_error
‘Error talking to MQTT: {}’.format(mqtt.error_string(result)))
homeassistant.exceptions.HomeAssistantError: Error talking to MQTT: Out of memory.

Trying a restart to see if it solves the problem…

Restart got it working :slight_smile:

1 Like

Same error here …

Restarted and the error didn’t show up , restarted the second time and it came back…

Yep mine to :frowning:

Feb 27 17:07:03 raspberrypi hass[5155]: ERROR:homeassistant.core:Error doing job: Task exception was never retrieved
Feb 27 17:07:03 raspberrypi hass[5155]: Traceback (most recent call last):
Feb 27 17:07:03 raspberrypi hass[5155]: File “/usr/lib/python3.4/asyncio/tasks.py”, line 237, in _step
Feb 27 17:07:03 raspberrypi hass[5155]: result = next(coro)
Feb 27 17:07:03 raspberrypi hass[5155]: File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/automation/init.py”, line 314, in async_enable
Feb 27 17:07:03 raspberrypi hass[5155]: self.async_trigger)
Feb 27 17:07:03 raspberrypi hass[5155]: File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/automation/init.py”, line 415, in _async_process_trigger
Feb 27 17:07:03 raspberrypi hass[5155]: remove = yield from platform.async_trigger(hass, conf, action)
Feb 27 17:07:03 raspberrypi hass[5155]: File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/automation/mqtt.py”, line 55, in async_trigger
Feb 27 17:07:03 raspberrypi hass[5155]: hass, topic, mqtt_automation_listener)
Feb 27 17:07:03 raspberrypi hass[5155]: File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/mqtt/init.py”, line 209, in async_subscribe
Feb 27 17:07:03 raspberrypi hass[5155]: yield from hass.data[DATA_MQTT].async_subscribe(topic, qos)
Feb 27 17:07:03 raspberrypi hass[5155]: File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/mqtt/init.py”, line 492, in async_subscribe
Feb 27 17:07:03 raspberrypi hass[5155]: _raise_on_error(result)
Feb 27 17:07:03 raspberrypi hass[5155]: File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/mqtt/init.py”, line 611, in _raise_on_error
Feb 27 17:07:03 raspberrypi hass[5155]: ‘Error talking to MQTT: {}’.format(mqtt.error_string(result)))
Feb 27 17:07:03 raspberrypi hass[5155]: homeassistant.exceptions.HomeAssistantError: Error talking to MQTT: Out of memory.

I can confirm that I’m facing the same… and a restart fixes the issue, but also can error again after a couple of restarts later.

Facing a similar (?) problem. Running 0.39.1 on Unbuntu (virtualenv) with a local Mosquitto MQTT server. HA logging says “reconnected to the MQTT server” every 10 minutes.

Also dealing with same issue. My log is near identical to OP. Only appeared after recent update to 0.39. Deleted the mosquitto.db file and it seems to be working OK for now.

Can you tell me where the mosquitto.db resides, I can’t seem to find it :stuck_out_tongue:

I took a look in the mosquitto.conf file located in /etc/mosquitto. It pointed me to /var/lib/mosquitto/

TY, just have to wait and see if it cure the problem :slight_smile: