0.88.1 hangs every few minutes

I installed v 0.88.0 a few days ago, and since then my system has been grinding to a halt quite regularly.

I am having to physically turn off my RPI at the plug and reboot.

This is my log which is also now full of errors!

Could this bee my SD card on it’s way out? It’s been working well for quite some time now?!?

Also - I just updated to 0.88.1 and the same is happening.

Any help people?

2019-02-24 19:10:52 WARNING (MainThread) [homeassistant.components.http] legacy_api_password support has been enabled. If you don't require it, remove the 'api_password' from your http config.
2019-02-24 19:10:56 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=149 from 2019-02-24 17:04:50.750220)
2019-02-24 19:10:56 WARNING (MainThread) [homeassistant.loader] You are using a custom component for hue.binary_sensor which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-02-24 19:10:57 WARNING (MainThread) [homeassistant.loader] You are using a custom component for hue.sensor which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-02-24 19:10:58 WARNING (MainThread) [homeassistant.loader] You are using a custom component for google_maps.device_tracker which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-02-24 19:10:58 WARNING (MainThread) [homeassistant.loader] You are using a custom component for hue.device_tracker which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-02-24 19:11:08 ERROR (MainThread) [homeassistant.components.hue.light] Unable to reach bridge 192.168.1.18 ()
2019-02-24 19:11:09 ERROR (MainThread) [homeassistant.components.notify] Error setting up platform pushbullet
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/local/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 839, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x6f080170>: Failed to establish a new connection: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.pushbullet.com', port=443): Max retries exceeded with url: /v2/devices (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x6f080170>: Failed to establish a new connection: [Errno -3] Try again'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/notify/__init__.py", line 76, in async_setup_platform
    platform.get_service, hass, p_config, discovery_info)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/notify/pushbullet.py", line 38, in get_service
    pushbullet = PushBullet(config[CONF_API_KEY])
  File "/usr/local/lib/python3.7/site-packages/pushbullet/pushbullet.py", line 43, in __init__
    self.refresh()
  File "/usr/local/lib/python3.7/site-packages/pushbullet/pushbullet.py", line 381, in refresh
    self._load_devices()
  File "/usr/local/lib/python3.7/site-packages/pushbullet/pushbullet.py", line 78, in _load_devices
    resp_dict = self._get_data(self.DEVICES_URL)
  File "/usr/local/lib/python3.7/site-packages/pushbullet/pushbullet.py", line 64, in _get_data
    resp = self._session.get(url)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 546, in get
    return self.request('GET', url, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.pushbullet.com', port=443): Max retries exceeded with url: /v2/devices (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x6f080170>: Failed to establish a new connection: [Errno -3] Try again'))
2019-02-24 19:11:11 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform google_maps
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/local/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 839, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x6f0b2d70>: Failed to establish a new connection: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='accounts.google.com', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x6f0b2d70>: Failed to establish a new connection: [Errno -3] Try again'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/device_tracker/__init__.py", line 184, in async_setup_platform
    disc_info)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/google_maps/device_tracker.py", line 44, in setup_scanner
    scanner = GoogleMapsScanner(hass, config, see)
  File "/config/custom_components/google_maps/device_tracker.py", line 63, in __init__
    hass.config.path(CREDENTIALS_FILE))
  File "/config/deps/lib/python3.7/site-packages/locationsharinglib/locationsharinglib.py", line 370, in __init__
    cookies_file=cookies_file)
  File "/config/deps/lib/python3.7/site-packages/locationsharinglib/locationsharinglib.py", line 194, in __init__
    if cookies_file and self._validate_cookie(cookies_file):
  File "/config/deps/lib/python3.7/site-packages/locationsharinglib/locationsharinglib.py", line 216, in _validate_cookie
    response = self._session.get(self._login_url)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 546, in get
    return self.request('GET', url, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='accounts.google.com', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x6f0b2d70>: Failed to establish a new connection: [Errno -3] Try again'))
2019-02-24 19:11:13 ERROR (SyncWorker_3) [pychromecast.socket_client] [Kitchen display:8009] Failed to connect to service Google-Home-Hub-72bb44108dc0abec4f234ed65b539621._googlecast._tcp.local., retrying in 5.0s
2019-02-24 19:11:23 ERROR (SyncWorker_15) [pychromecast.socket_client] [Lounge TV:8009] Failed to connect to service Chromecast-f45acf426a27422fbcceeb15cb12cb00._googlecast._tcp.local., retrying in 5.0s
2019-02-24 19:11:24 WARNING (Thread-2) [pychromecast.socket_client] [Kitchen TV:8009] Heartbeat timeout, resetting connection
2019-02-24 19:11:26 ERROR (SyncWorker_2) [pychromecast.socket_client] [Bedroom speaker:8009] Failed to connect to service Google-Home-Mini-6c071b07e525a6cf3a9a3e0620d860ab._googlecast._tcp.local., retrying in 5.0s
2019-02-24 19:12:19 ERROR (Thread-4) [pychromecast.socket_client] [Kitchen display:8009] Error reading from socket.
2019-02-24 19:12:19 WARNING (Thread-4) [pychromecast.socket_client] [Kitchen display:8009] Error communicating with socket, resetting connection
2019-02-24 19:12:25 WARNING (Thread-5) [pychromecast.socket_client] [Lounge Speaker:8009] Heartbeat timeout, resetting connection
2019-02-24 19:12:25 WARNING (Thread-2) [pychromecast.socket_client] [Kitchen TV:8009] Heartbeat timeout, resetting connection
2019-02-24 19:12:25 WARNING (MainThread) [homeassistant.components.cloud.iot] Unable to connect: Cannot connect to host cloud.hass.io:8000 ssl:None [Try again]
2019-02-24 19:12:25 WARNING (Thread-6) [pychromecast.socket_client] [Kitchen group:42093] Heartbeat timeout, resetting connection
2019-02-24 19:12:25 WARNING (Thread-7) [pychromecast.socket_client] [Home group:42031] Heartbeat timeout, resetting connection
2019-02-24 19:12:25 WARNING (Thread-8) [pychromecast.socket_client] [Kitchen Bass:8009] Heartbeat timeout, resetting connection
2019-02-24 19:12:28 WARNING (Thread-9) [pychromecast.socket_client] [Lounge TV:8009] Heartbeat timeout, resetting connection
2019-02-24 19:12:31 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-24 19:12:33 WARNING (Thread-10) [pychromecast.socket_client] [Bedroom speaker:8009] Heartbeat timeout, resetting connection
2019-02-24 19:12:36 WARNING (MainThread) [homeassistant.components.cloud.iot] Unable to connect: Cannot connect to host cloud.hass.io:8000 ssl:None [Try again]
2019-02-24 19:12:39 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:15
2019-02-24 19:12:43 ERROR (MainThread) [homeassistant.helpers.entity] Update for light.22551008840d8e8c0c83 fails
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/local/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 839, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x6bf8c790>: Failed to establish a new connection: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='px1.tuyaeu.com', port=443): Max retries exceeded with url: /homeassistant/skill (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x6bf8c790>: Failed to establish a new connection: [Errno -3] Try again'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 221, in async_update_ha_state
    await self.async_device_update()
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 349, in async_device_update
    await self.hass.async_add_executor_job(self.update)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/tuya/__init__.py", line 151, in update
    self.tuya.update()
  File "/usr/local/lib/python3.7/site-packages/tuyapy/devices/base.py", line 43, in update
    self.obj_id, 'QueryDevice', namespace='query')
  File "/usr/local/lib/python3.7/site-packages/tuyapy/tuyaapi.py", line 134, in device_control
    response = self._request(action, namespace, devId, param)
  File "/usr/local/lib/python3.7/site-packages/tuyapy/tuyaapi.py", line 159, in _request
    json = data
  File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='px1.tuyaeu.com', port=443): Max retries exceeded with url: /homeassistant/skill (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x6bf8c790>: Failed to establish a new connection: [Errno -3] Try again'))
2019-02-24 19:12:44 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-24 19:12:54 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:15
2019-02-24 19:12:55 ERROR (Thread-5) [pychromecast.socket_client] [Lounge Speaker:8009] Failed to connect to service Google-Home-b691eb257942c8b5a6bf2dd0e875026f._googlecast._tcp.local., retrying in 5.0s
2019-02-24 19:12:55 ERROR (Thread-2) [pychromecast.socket_client] [Kitchen TV:8009] Failed to connect to service Chromecast-e028e21a8b3c0171775b6a35cb492def._googlecast._tcp.local., retrying in 5.0s
2019-02-24 19:12:55 ERROR (Thread-6) [pychromecast.socket_client] [Kitchen group:42093] Failed to connect to service Google-Cast-Group-e80c4f535e16405a9859f0ec9542cbc0-1._googlecast._tcp.local., retrying in 5.0s
2019-02-24 19:12:55 ERROR (Thread-7) [pychromecast.socket_client] [Home group:42031] Failed to connect to service Google-Cast-Group-961b0dc4a5fd446cb65333a327cc1882-1._googlecast._tcp.local., retrying in 5.0s
2019-02-24 19:12:55 ERROR (Thread-8) [pychromecast.socket_client] [Kitchen Bass:8009] Failed to connect to service Chromecast-Audio-2a6e3d7dfce73315bcb72ecaa2312db7._googlecast._tcp.local., retrying in 5.0s

not sure it related. can you post the dmesg output?

Sorry, but I have no idea what the dmesg is??
Any pointers?

can you provide any system log not just the HA log?
will be helpful also to explain your setup, what are you running on your rpi?

this is happening to me also it always hangs on tuya lights.

Looks like it’s having problems making connections to various network connected sites, based on all the HTTPSConnectionPool errors and the like. Maybe some sort of network connectivity issue? Certainly doesn’t smell like an SD card problem.

You may be on to something there.

I ordered a new SD card put a fresh install on it and it still crashed out.

Rebooted both of my routers, restored a recent version and all is working okay.

I have had to plug the rpi into my main router though. I also have a second router set up as a wireless bridge. I think that this may be causing some issues!

mine is also hanging, please fix this :frowning: i cannot normally use hassio atm