Home-assistant crashing

Hello

my home-assistant keeps crashing, i tried python-env and now docker it´s the same …

logs:

2018-04-09 03:34:37 INFO (MainThread) [homeassistant.components.media_player] Setting up media_player.songpal


2018-04-09 03:34:52 WARNING (Thread-4) [pychromecast.socket_client] Heartbeat timeout, resetting connection


2018-04-09 03:35:22 ERROR (Thread-4) [pychromecast.socket_client] Failed to connect, retrying in 5.0s


2018-04-09 03:36:11 WARNING (Thread-4) [pychromecast.socket_client] Heartbeat timeout, resetting connection


2018-04-09 03:36:41 ERROR (Thread-4) [pychromecast.socket_client] Failed to connect, retrying in 5.0s


2018-04-09 03:53:40 WARNING (Thread-4) [pychromecast.socket_client] Heartbeat timeout, resetting connection


2018-04-09 03:54:10 ERROR (Thread-4) [pychromecast.socket_client] Failed to connect, retrying in 5.0s

picture of my monitoring

it makes no sense to me.

Chromecast ndoes not like source of crash.

What’s the host it’s running on?

It appears to be dropping off the network every so often. Is it flooding the network? Are you using nmap?

Hello

The server is a VMware virtual Ubuntu 16.04 Running docker
No im not uising nmap and the server is not droping the network.

What exactly do you mean by ‘crashing’? Is HA restarting, or are you just getting those error messages?

Ha is getting unresponsive with everything, and i need to Restart the docker container

Hello

Just crashed,

2018-04-10 16:53:36 INFO (MainThread) [homeassistant.core] Bus:Handling <Event system_log_event[L]: timestamp=1523372016.1394386, level=ERROR, message=Unable to get methods from songpal: Unable to get APIs: HTTPConnectionPool(host='10.8.10.101', port=80): Max retries exceeded with url: /sony/guide (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7a904ba128>: Failed to establish a new connection: [Errno 113] No route to host',)), exception=, source=components/media_player/songpal.py>


2018-04-10 16:53:36 INFO (MainThread) [homeassistant.core] Bus:Handling <Event system_log_event[L]: timestamp=1523372016.1525443, level=ERROR, message=Timer got out of sync. Resetting, exception=, source=core.py>


2018-04-10 16:53:36 WARNING (MainThread) [homeassistant.components.media_player] Platform songpal not ready yet. Retrying in 180 seconds.


2018-04-10 16:53:36 INFO (MainThread) [homeassistant.core] Bus:Handling <Event system_log_event[L]: timestamp=1523372016.1760411, level=WARNING, message=Platform songpal not ready yet. Retrying in 180 seconds., exception=, source=helpers/entity_platform.py>


2018-04-10 16:54:30 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sun.sun, old_state=<state sun.sun=above_horizon; next_dawn=2018-04-11T03:43:18+00:00, next_dusk=2018-04-10T18:55:51+00:00, next_midnight=2018-04-10T23:20:37+00:00, next_noon=2018-04-11T11:20:43+00:00, next_rising=2018-04-11T04:23:35+00:00, next_setting=2018-04-10T18:15:45+00:00, elevation=26.52, azimuth=242.29, friendly_name=Sun @ 2018-04-10T06:26:14.580160+02:00>, new_state=<state sun.sun=above_horizon; next_dawn=2018-04-11T03:43:18+00:00, next_dusk=2018-04-10T18:55:51+00:00, next_midnight=2018-04-10T23:20:37+00:00, next_noon=2018-04-11T11:20:43+00:00, next_rising=2018-04-11T04:23:35+00:00, next_setting=2018-04-10T18:15:45+00:00, elevation=26.4, azimuth=242.54, friendly_name=Sun @ 2018-04-10T06:26:14.580160+02:00>>


2018-04-10 16:54:32 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=zwave.danfoss_z_thermostat_014g0013, old_state=<state zwave.danfoss_z_thermostat_014g0013=sleeping; node_id=3, node_name=Danfoss Z Thermostat 014G0013, manufacturer_name=Danfoss, product_name=Z Thermostat 014G0013, query_stage=Complete, is_awake=False, is_ready=True, is_failed=False, is_info_received=True, max_baud_rate=40000, is_zwave_plus=False, capabilities={'routing', 'beaming'}, neighbors={1}, sentCnt=207, sentFailed=1, retries=0, receivedCnt=799, receivedDups=0, receivedUnsolicited=792, sentTS=2018-04-10 16:49:41:437 , receivedTS=2018-04-10 16:49:41:436 , lastRequestRTT=41, averageRequestRTT=41, lastResponseRTT=36, averageResponseRTT=36, battery_level=86, wake_up_interval=300, friendly_name=Danfoss Z Thermostat 014G0013 @ 2018-04-10T00:54:01.462803+02:00>, new_state=<state zwave.danfoss_z_thermostat_014g0013=sleeping; node_id=3, node_name=Danfoss Z Thermostat 014G0013, manufacturer_name=Danfoss, product_name=Z Thermostat 014G0013, query_stage=Complete, is_awake=False, is_ready=True, is_failed=False, is_info_received=True, max_baud_rate=40000, is_zwave_plus=False, capabilities={'routing', 'beaming'}, neighbors={1}, sentCnt=207, sentFailed=1, retries=0, receivedCnt=801, receivedDups=0, receivedUnsolicited=794, sentTS=2018-04-10 16:49:41:437 , receivedTS=2018-04-10 16:54:32:394 , lastRequestRTT=41, averageRequestRTT=41, lastResponseRTT=36, averageResponseRTT=36, battery_level=86, wake_up_interval=300, friendly_name=Danfoss Z Thermostat 014G0013 @ 2018-04-10T00:54:01.462803+02:00>>


2018-04-10 16:54:32 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=zwave.danfoss_z_thermostat_014g0013, old_state=<state zwave.danfoss_z_thermostat_014g0013=sleeping; node_id=3, node_name=Danfoss Z Thermostat 014G0013, manufacturer_name=Danfoss, product_name=Z Thermostat 014G0013, query_stage=Complete, is_awake=False, is_ready=True, is_failed=False, is_info_received=True, max_baud_rate=40000, is_zwave_plus=False, capabilities={'routing', 'beaming'}, neighbors={1}, sentCnt=207, sentFailed=1, retries=0, receivedCnt=801, receivedDups=0, receivedUnsolicited=794, sentTS=2018-04-10 16:49:41:437 , receivedTS=2018-04-10 16:54:32:394 , lastRequestRTT=41, averageRequestRTT=41, lastResponseRTT=36, averageResponseRTT=36, battery_level=86, wake_up_interval=300, friendly_name=Danfoss Z Thermostat 014G0013 @ 2018-04-10T00:54:01.462803+02:00>, new_state=<state zwave.danfoss_z_thermostat_014g0013=sleeping; node_id=3, node_name=Danfoss Z Thermostat 014G0013, manufacturer_name=Danfoss, product_name=Z Thermostat 014G0013, query_stage=Complete, is_awake=False, is_ready=True, is_failed=False, is_info_received=True, max_baud_rate=40000, is_zwave_plus=False, capabilities={'routing', 'beaming'}, neighbors={1}, sentCnt=208, sentFailed=1, retries=0, receivedCnt=803, receivedDups=0, receivedUnsolicited=796, sentTS=2018-04-10 16:54:32:509 , receivedTS=2018-04-10 16:54:32:508 , lastRequestRTT=40, averageRequestRTT=40, lastResponseRTT=36, averageResponseRTT=36, battery_level=86, wake_up_interval=300, friendly_name=Danfoss Z Thermostat 014G0013 @ 2018-04-10T00:54:01.462803+02:00>>


2018-04-10 16:54:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=media_player.stue, old_state=<state media_player.stue=unavailable; friendly_name=Stue, supported_features=21437 @ 2018-04-10T16:45:52.138639+02:00>, new_state=<state media_player.stue=off; friendly_name=Stue, supported_features=21437 @ 2018-04-10T16:54:54.749688+02:00>>


2018-04-10 16:54:56 INFO (MainThread) [homeassistant.components.media_player] Setting up media_player.songpal


2018-04-10 16:55:14 WARNING (Thread-4) [pychromecast.socket_client] Heartbeat timeout, resetting connection


2018-04-10 16:55:44 ERROR (Thread-4) [pychromecast.socket_client] Failed to connect, retrying in 5.0s


2018-04-10 17:00:26 WARNING (Thread-4) [pychromecast.socket_client] Heartbeat timeout, resetting connection


2018-04-10 17:00:36 ERROR (Thread-4) [pychromecast.socket_client] Failed to connect, retrying in 5.0s

Any ideas ?

HA becoming unresponsive after a while is normally due to some resource leak.

The only course of action I can suggest is to disable components until the problem stops happening. Start with the less common components first, as these are most likely to cause problems that have not been found yet.