Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2023.5.1 restarts (crashes) ~hourly #92587

Closed
syphernl opened this issue May 5, 2023 · 7 comments
Closed

2023.5.1 restarts (crashes) ~hourly #92587

syphernl opened this issue May 5, 2023 · 7 comments

Comments

@syphernl
Copy link
Contributor

syphernl commented May 5, 2023

The problem

After upgrading to 2023.5.1 HASS seems be restarting about every hour.

What version of Home Assistant Core has the issue?

core-2023.5.1

What was the last working version of Home Assistant Core?

core-2023.5.0

What type of installation are you running?

Home Assistant Core

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

home-assistant.log.fault

Thread 0x00007eff1b581b30 (most recent call first):
  File "/usr/lib/python3.10/ssl.py", line 1342 in do_handshake
  File "/usr/lib/python3.10/ssl.py", line 1071 in _create
  File "/usr/lib/python3.10/ssl.py", line 513 in wrap_socket
  File "/srv/hass/lib/python3.10/site-packages/pychromecast/socket_client.py", line 346 in initialize_connection
  File "/srv/hass/lib/python3.10/site-packages/pychromecast/socket_client.py", line 527 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff1b684b30 (most recent call first):
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 81 in _worker
  File "/usr/lib/python3.10/threading.py", line 953 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff1b787b30 (most recent call first):
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 81 in _worker
  File "/usr/lib/python3.10/threading.py", line 953 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff1b88ab30 (most recent call first):
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 81 in _worker
  File "/usr/lib/python3.10/threading.py", line 953 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff1ba8db30 (most recent call first):
  File "/srv/hass/lib/python3.10/site-packages/pychromecast/socket_client.py", line 579 in run_once
  File "/srv/hass/lib/python3.10/site-packages/pychromecast/socket_client.py", line 540 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff1bb90b30 (most recent call first):
  File "/srv/hass/lib/python3.10/site-packages/pychromecast/socket_client.py", line 579 in run_once
  File "/srv/hass/lib/python3.10/site-packages/pychromecast/socket_client.py", line 540 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff1bcd3b30 (most recent call first):
  File "/usr/lib/python3.10/ssl.py", line 1342 in do_handshake
  File "/usr/lib/python3.10/ssl.py", line 1071 in _create
  File "/usr/lib/python3.10/ssl.py", line 513 in wrap_socket
  File "/srv/hass/lib/python3.10/site-packages/pychromecast/socket_client.py", line 346 in initialize_connection
  File "/srv/hass/lib/python3.10/site-packages/pychromecast/socket_client.py", line 527 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff1bdd6b30 (most recent call first):
  File "/srv/hass/lib/python3.10/site-packages/pychromecast/socket_client.py", line 579 in run_once
  File "/srv/hass/lib/python3.10/site-packages/pychromecast/socket_client.py", line 540 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff1bed9b30 (most recent call first):
  File "/srv/hass/lib/python3.10/site-packages/pychromecast/socket_client.py", line 579 in run_once
  File "/srv/hass/lib/python3.10/site-packages/pychromecast/socket_client.py", line 540 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff1bfdcb30 (most recent call first):
  File "/srv/hass/lib/python3.10/site-packages/pychromecast/socket_client.py", line 579 in run_once
  File "/srv/hass/lib/python3.10/site-packages/pychromecast/socket_client.py", line 540 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff1c0dfb30 (most recent call first):
  File "/srv/hass/lib/python3.10/site-packages/pychromecast/socket_client.py", line 579 in run_once
  File "/srv/hass/lib/python3.10/site-packages/pychromecast/socket_client.py", line 540 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff1d6f2b30 (most recent call first):
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 81 in _worker
  File "/usr/lib/python3.10/threading.py", line 953 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff1d815b30 (most recent call first):
  File "/srv/hass/lib/python3.10/site-packages/pychromecast/socket_client.py", line 579 in run_once
  File "/srv/hass/lib/python3.10/site-packages/pychromecast/socket_client.py", line 540 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff1dadab30 (most recent call first):
  File "/srv/hass/lib/python3.10/site-packages/pychromecast/socket_client.py", line 579 in run_once
  File "/srv/hass/lib/python3.10/site-packages/pychromecast/socket_client.py", line 540 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff1de00b30 (most recent call first):
  File "/srv/hass/lib/python3.10/site-packages/pychromecast/socket_client.py", line 579 in run_once
  File "/srv/hass/lib/python3.10/site-packages/pychromecast/socket_client.py", line 540 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff1df5db30 (most recent call first):
  File "/srv/hass/lib/python3.10/site-packages/pychromecast/socket_client.py", line 579 in run_once
  File "/srv/hass/lib/python3.10/site-packages/pychromecast/socket_client.py", line 540 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff1e22cb30 (most recent call first):
  File "/srv/hass/lib/python3.10/site-packages/pychromecast/socket_client.py", line 579 in run_once
  File "/srv/hass/lib/python3.10/site-packages/pychromecast/socket_client.py", line 540 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff1e32fb30 (most recent call first):
  File "/srv/hass/lib/python3.10/site-packages/pychromecast/socket_client.py", line 579 in run_once
  File "/srv/hass/lib/python3.10/site-packages/pychromecast/socket_client.py", line 540 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff1e542b30 (most recent call first):
  File "/usr/lib/python3.10/threading.py", line 324 in wait
  File "/usr/lib/python3.10/threading.py", line 607 in wait
  File "/srv/hass/lib/python3.10/site-packages/pychromecast/discovery.py", line 304 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff1e645b30 (most recent call first):
  File "/usr/lib/python3.10/ssl.py", line 1342 in do_handshake
  File "/usr/lib/python3.10/ssl.py", line 1071 in _create
  File "/usr/lib/python3.10/ssl.py", line 513 in wrap_socket
  File "/usr/lib/python3.10/http/client.py", line 1455 in connect
  File "/usr/lib/python3.10/http/client.py", line 976 in send
  File "/usr/lib/python3.10/http/client.py", line 1038 in _send_output
  File "/usr/lib/python3.10/http/client.py", line 1278 in endheaders
  File "/usr/lib/python3.10/http/client.py", line 1329 in _send_request
  File "/usr/lib/python3.10/http/client.py", line 1283 in request
  File "/usr/lib/python3.10/urllib/request.py", line 1348 in do_open
  File "/usr/lib/python3.10/urllib/request.py", line 1391 in https_open
  File "/usr/lib/python3.10/urllib/request.py", line 496 in _call_chain
  File "/usr/lib/python3.10/urllib/request.py", line 536 in _open
  File "/usr/lib/python3.10/urllib/request.py", line 519 in open
  File "/usr/lib/python3.10/urllib/request.py", line 216 in urlopen
  File "/srv/hass/lib/python3.10/site-packages/pychromecast/dial.py", line 95 in _get_status
  File "/srv/hass/lib/python3.10/site-packages/pychromecast/dial.py", line 260 in get_multizone_status
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/components/cast/helpers.py", line 113 in fill_out_missing_chromecast_info
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/components/cast/discovery.py", line 37 in discover_chromecast
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/components/cast/discovery.py", line 64 in add_cast
  File "/srv/hass/lib/python3.10/site-packages/pychromecast/discovery.py", line 244 in _add_update_service
  File "/srv/hass/lib/python3.10/site-packages/pychromecast/discovery.py", line 142 in add_service
  File "/srv/hass/lib/python3.10/site-packages/zeroconf/_services/browser.py", line 187 in on_change
  File "/srv/hass/lib/python3.10/site-packages/zeroconf/_services/__init__.py", line 54 in fire
  File "/srv/hass/lib/python3.10/site-packages/zeroconf/_services/browser.py", line 425 in _fire_service_state_changed_event
  File "/srv/hass/lib/python3.10/site-packages/zeroconf/_services/browser.py", line 542 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff1e7bfb30 (most recent call first):
  File "/usr/lib/python3.10/ssl.py", line 1342 in do_handshake
  File "/usr/lib/python3.10/ssl.py", line 1071 in _create
  File "/usr/lib/python3.10/ssl.py", line 513 in wrap_socket
  File "/usr/lib/python3.10/ssl.py", line 1442 in wrap_socket
  File "/srv/hass/lib/python3.10/site-packages/hpilo.py", line 401 in _get_socket
  File "/srv/hass/lib/python3.10/site-packages/hpilo.py", line 406 in _communicate
  File "/srv/hass/lib/python3.10/site-packages/hpilo.py", line 278 in _detect_protocol
  File "/srv/hass/lib/python3.10/site-packages/hpilo.py", line 238 in _request
  File "/srv/hass/lib/python3.10/site-packages/hpilo.py", line 730 in _info_tag
  File "/srv/hass/lib/python3.10/site-packages/hpilo.py", line 1035 in get_embedded_health
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/components/hp_ilo/sensor.py", line 166 in update
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58 in run
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 83 in _worker
  File "/usr/lib/python3.10/threading.py", line 953 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff1e9d6b30 (most recent call first):
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 81 in _worker
  File "/usr/lib/python3.10/threading.py", line 953 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff1ead9b30 (most recent call first):
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 81 in _worker
  File "/usr/lib/python3.10/threading.py", line 953 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff1ebe4b30 (most recent call first):
  File "/usr/lib/python3.10/ssl.py", line 1130 in read
  File "/usr/lib/python3.10/ssl.py", line 1274 in recv_into
  File "/usr/lib/python3.10/socket.py", line 705 in readinto
  File "/usr/lib/python3.10/http/client.py", line 466 in read
  File "/srv/hass/lib/python3.10/site-packages/urllib3/response.py", line 522 in read
  File "/srv/hass/lib/python3.10/site-packages/urllib3/response.py", line 579 in stream
  File "/srv/hass/lib/python3.10/site-packages/requests/models.py", line 816 in generate
  File "/srv/hass/lib/python3.10/site-packages/sseclient/__init__.py", line 48 in _read
  File "/srv/hass/lib/python3.10/site-packages/sseclient/__init__.py", line 58 in events
  File "/srv/hass/lib/python3.10/site-packages/nest/nest.py", line 1792 in _start_event_loop
  File "/usr/lib/python3.10/threading.py", line 953 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff2e0fbb38 (most recent call first):
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 81 in _worker
  File "/usr/lib/python3.10/threading.py", line 953 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff2e1feb38 (most recent call first):
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 81 in _worker
  File "/usr/lib/python3.10/threading.py", line 953 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff2e301b38 (most recent call first):
  File "/srv/hass/lib/python3.10/site-packages/paho/mqtt/client.py", line 1150 in _loop
  File "/srv/hass/lib/python3.10/site-packages/paho/mqtt/client.py", line 1756 in loop_forever
  File "/srv/hass/lib/python3.10/site-packages/paho/mqtt/client.py", line 3591 in _thread_main
  File "/usr/lib/python3.10/threading.py", line 953 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff2f269b38 (most recent call first):
  File "/home/hass/.homeassistant/custom_components/webrtc/utils.py", line 241 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff31339b38 (most recent call first):
  File "/usr/lib/python3.10/threading.py", line 320 in wait
  File "/usr/lib/python3.10/concurrent/futures/_base.py", line 453 in result
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/components/recorder/core.py", line 674 in _wait_startup_or_shutdown
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/components/recorder/core.py", line 724 in _run
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/components/recorder/core.py", line 685 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff34167b38 (most recent call first):
  File "/usr/lib/python3.10/ssl.py", line 1132 in read
  File "/srv/hass/lib/python3.10/site-packages/hpilo.py", line 453 in _communicate
  File "/srv/hass/lib/python3.10/site-packages/hpilo.py", line 278 in _detect_protocol
  File "/srv/hass/lib/python3.10/site-packages/hpilo.py", line 238 in _request
  File "/srv/hass/lib/python3.10/site-packages/hpilo.py", line 730 in _info_tag
  File "/srv/hass/lib/python3.10/site-packages/hpilo.py", line 1035 in get_embedded_health
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/components/hp_ilo/sensor.py", line 166 in update
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58 in run
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 83 in _worker
  File "/usr/lib/python3.10/threading.py", line 953 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff3426ab38 (most recent call first):
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 81 in _worker
  File "/usr/lib/python3.10/threading.py", line 953 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Current thread 0x00007eff3436db38 (most recent call first):
  File "/usr/lib/python3.10/ssl.py", line 1332 in _real_close
  File "/usr/lib/python3.10/socket.py", line 502 in close
  File "/usr/lib/python3.10/socket.py", line 492 in _decref_socketios
  File "/usr/lib/python3.10/socket.py", line 775 in close
  File "/usr/lib/python3.10/http/client.py", line 415 in _close_conn
  File "/usr/lib/python3.10/http/client.py", line 422 in close
  File "/usr/lib/python3.10/http/client.py", line 1391 in getresponse
  File "/srv/hass/lib/python3.10/site-packages/httplib2/__init__.py", line 1373 in _conn_request
  File "/srv/hass/lib/python3.10/site-packages/httplib2/__init__.py", line 1421 in _request
  File "/srv/hass/lib/python3.10/site-packages/httplib2/__init__.py", line 1701 in request
  File "/srv/hass/lib/python3.10/site-packages/oauth2client/transport.py", line 280 in request
  File "/srv/hass/lib/python3.10/site-packages/oauth2client/transport.py", line 173 in new_request
  File "/srv/hass/lib/python3.10/site-packages/googleapiclient/http.py", line 191 in _retry_request
  File "/srv/hass/lib/python3.10/site-packages/googleapiclient/http.py", line 923 in execute
  File "/srv/hass/lib/python3.10/site-packages/googleapiclient/_helpers.py", line 130 in positional_wrapper
  File "/home/hass/.homeassistant/custom_components/google_fit/sensor.py", line 440 in update
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/util/__init__.py", line 190 in wrapper
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/util/__init__.py", line 190 in wrapper
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58 in run
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 83 in _worker
  File "/usr/lib/python3.10/threading.py", line 953 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff34470b38 (most recent call first):
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 81 in _worker
  File "/usr/lib/python3.10/threading.py", line 953 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap
Thread 0x00007eff34573b38 (most recent call first):
  File "/usr/lib/python3.10/asyncio/selector_events.py", line 135 in _write_to_self
  File "/usr/lib/python3.10/asyncio/base_events.py", line 804 in call_soon_threadsafe
  File "/usr/lib/python3.10/asyncio/futures.py", line 401 in _call_set_state
  File "/usr/lib/python3.10/concurrent/futures/_base.py", line 342 in _invoke_callbacks
  File "/usr/lib/python3.10/concurrent/futures/_base.py", line 567 in set_exception
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 60 in run
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 83 in _worker
  File "/usr/lib/python3.10/threading.py", line 953 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff35549b38 (most recent call first):
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 81 in _worker
  File "/usr/lib/python3.10/threading.py", line 953 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff35650b38 (most recent call first):
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 81 in _worker
  File "/usr/lib/python3.10/threading.py", line 953 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff3731fb38 (most recent call first):
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 81 in _worker
  File "/usr/lib/python3.10/threading.py", line 953 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff37422b38 (most recent call first):
  File "/usr/lib/python3.10/ssl.py", line 1132 in read
  File "/srv/hass/lib/python3.10/site-packages/hpilo.py", line 453 in _communicate
  File "/srv/hass/lib/python3.10/site-packages/hpilo.py", line 278 in _detect_protocol
  File "/srv/hass/lib/python3.10/site-packages/hpilo.py", line 238 in _request
  File "/srv/hass/lib/python3.10/site-packages/hpilo.py", line 730 in _info_tag
  File "/srv/hass/lib/python3.10/site-packages/hpilo.py", line 1035 in get_embedded_health
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/components/hp_ilo/sensor.py", line 166 in update
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58 in run
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 83 in _worker
  File "/usr/lib/python3.10/threading.py", line 953 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff3805ab38 (most recent call first):
  File "/usr/lib/python3.10/ssl.py", line 1342 in do_handshake
  File "/usr/lib/python3.10/ssl.py", line 1071 in _create
  File "/usr/lib/python3.10/ssl.py", line 513 in wrap_socket
  File "/usr/lib/python3.10/ssl.py", line 1442 in wrap_socket
  File "/srv/hass/lib/python3.10/site-packages/hpilo.py", line 401 in _get_socket
  File "/srv/hass/lib/python3.10/site-packages/hpilo.py", line 406 in _communicate
  File "/srv/hass/lib/python3.10/site-packages/hpilo.py", line 278 in _detect_protocol
  File "/srv/hass/lib/python3.10/site-packages/hpilo.py", line 238 in _request
  File "/srv/hass/lib/python3.10/site-packages/hpilo.py", line 730 in _info_tag
  File "/srv/hass/lib/python3.10/site-packages/hpilo.py", line 1035 in get_embedded_health
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/components/hp_ilo/sensor.py", line 166 in update
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58 in run
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 83 in _worker
  File "/usr/lib/python3.10/threading.py", line 953 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff3815db38 (most recent call first):
  File "/usr/lib/python3.10/logging/handlers.py", line 1505 in dequeue
  File "/usr/lib/python3.10/logging/handlers.py", line 1556 in _monitor
  File "/usr/lib/python3.10/threading.py", line 953 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007eff3c561b48 (most recent call first):
  File "/usr/lib/python3.10/asyncio/selector_events.py", line 924 in write
  File "/usr/lib/python3.10/asyncio/sslproto.py", line 690 in _process_write_backlog
  File "/usr/lib/python3.10/asyncio/sslproto.py", line 604 in _write_appdata
  File "/usr/lib/python3.10/asyncio/sslproto.py", line 392 in write
  File "/srv/hass/lib/python3.10/site-packages/aiohttp/http_writer.py", line 76 in _write
  File "/srv/hass/lib/python3.10/site-packages/aiohttp/http_writer.py", line 130 in write_headers
  File "/srv/hass/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 670 in send
  File "/srv/hass/lib/python3.10/site-packages/aiohttp/client.py", line 558 in _request
  File "/srv/hass/lib/python3.10/site-packages/aiohttp/client.py", line 1141 in __aenter__
  File "/srv/hass/lib/python3.10/site-packages/py17track/client.py", line 46 in _request
  File "/srv/hass/lib/python3.10/site-packages/py17track/profile.py", line 96 in summary
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/components/seventeentrack/sensor.py", line 322 in _async_update
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/components/seventeentrack/sensor.py", line 108 in async_setup_platform
  File "/usr/lib/python3.10/asyncio/events.py", line 80 in _run
  File "/usr/lib/python3.10/asyncio/base_events.py", line 1909 in _run_once
  File "/usr/lib/python3.10/asyncio/base_events.py", line 603 in run_forever
  File "/usr/lib/python3.10/asyncio/base_events.py", line 636 in run_until_complete
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/runner.py", line 179 in run
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/__main__.py", line 214 in main
  File "/srv/hass/bin/hass", line 8 in <module>

Extension modules: _cffi_backend, multidict._multidict, yarl._quoting_c, ciso8601, aiohttp._helpers, aiohttp._http_writer, aiohttp._http_parser, aiohttp._websocket, frozenlist._frozenlist, ulid_transform._ulid_impl, markupsafe._speedups, numpy.core._mult
iarray_umath, numpy.core._multiarray_tests, numpy.linalg._umath_linalg, numpy.fft._pocketfft_internal, numpy.random._common, numpy.random.bit_generator, numpy.random._bounded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, num
py.random._pcg64, numpy.random._sfc64, numpy.random._generator, _webrtcvad, sqlalchemy.cyextension.collections, sqlalchemy.cyextension.immutabledict, sqlalchemy.cyextension.processors, sqlalchemy.cyextension.resultproxy, sqlalchemy.cyextension.util, gree
nlet._greenlet, fnv_hash_fast._fnv_impl, PIL._imaging, MySQLdb._mysql, home_assistant_bluetooth.models, psutil._psutil_linux, psutil._psutil_posix, websockets.speedups, av.logging, av._core, av.bytesource, av.buffer, av.audio.format, av.enum, av.error, a
v.utils, av.option, av.descriptor, av.container.pyio, av.dictionary, av.format, av.stream, av.container.streams, av.sidedata.motionvectors, av.sidedata.sidedata, av.packet, av.container.input, av.bitstream.filter, av.bitstream.context, av.container.outpu
t, av.container.core, av.codec.context, av.video.format, av.video.reformatter, av.plane, av.video.plane, av.video.frame, av.video.stream, av.codec.codec, av.frame, av.audio.layout, av.audio.plane, av.audio.frame, av.audio.stream, av.audio.fifo, av.filter
.pad, av.filter.link, av.filter.context, av.filter.graph, av.filter.filter, av.audio.resampler, pydantic.typing, pydantic.errors, pydantic.version, pydantic.utils, pydantic.class_validators, pydantic.config, pydantic.color, pydantic.datetime_parse, pydan
tic.validators, pydantic.networks, pydantic.types, pydantic.json, pydantic.error_wrappers, pydantic.fields, pydantic.parse, pydantic.schema, pydantic.main, pydantic.dataclasses, pydantic.annotated_types, pydantic.decorator, pydantic.env_settings, pydanti
c.tools, pydantic, netifaces, tornado.speedups, grpc._cython.cygrpc, lxml._elementpath, lxml.etree, lxml.builder, bluetooth_data_tools.gap, bluetooth_data_tools._utils_impl (total: 112)
Fatal Python error: Segmentation fault

home-assistant.log

  File "/srv/hass/lib/python3.10/site-packages/homeassistant/components/sensor/__init__.py", line 579, in state
    numerical_value = int(value)
ValueError: invalid literal for int() with base 10: '∞'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/helpers/entity.py", line 572, in async_update_ha_state
    self._async_write_ha_state()
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/helpers/entity.py", line 649, in _async_write_ha_state
    state = self._stringify_state(available)
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/helpers/entity.py", line 591, in _stringify_state
    if (state := self.state) is None:
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/components/sensor/__init__.py", line 583, in state
    raise ValueError(
ValueError: Sensor sensor.bathroom_vent_optimization_time has device class None, state class None unit min and suggested precision None thus indicating it has a numeric value; however, it has the non-numeric value: ∞ (<class 'str'>)
2023-05-05 11:13:00.539 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback None()
Traceback (most recent call last):
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/components/sensor/__init__.py", line 579, in state
    numerical_value = int(value)
ValueError: invalid literal for int() with base 10: ''

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3.10/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/helpers/event.py", line 1133, in _refresh
    self.hass.async_run_hass_job(self._job, event, updates)
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/core.py", line 607, in async_run_hass_job
    hassjob.target(*args)
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/helpers/template_entity.py", line 348, in _handle_results
    self.async_write_ha_state()
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/helpers/entity.py", line 585, in async_write_ha_state
    self._async_write_ha_state()
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/helpers/entity.py", line 649, in _async_write_ha_state
    state = self._stringify_state(available)
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/helpers/entity.py", line 591, in _stringify_state
    if (state := self.state) is None:
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/components/sensor/__init__.py", line 583, in state
    raise ValueError(
ValueError: Sensor sensor.unavailable_entities has device class None, state class None unit entities and suggested precision None thus indicating it has a numeric value; however, it has the non-numeric value:  (<class 'str'>)
2023-05-05 11:14:00.548 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback None()
Traceback (most recent call last):
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/components/sensor/__init__.py", line 579, in state
    numerical_value = int(value)
ValueError: invalid literal for int() with base 10: ''

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3.10/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/helpers/event.py", line 1133, in _refresh
    self.hass.async_run_hass_job(self._job, event, updates)
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/core.py", line 607, in async_run_hass_job
    hassjob.target(*args)
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/helpers/template_entity.py", line 348, in _handle_results
    self.async_write_ha_state()
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/helpers/entity.py", line 585, in async_write_ha_state
    self._async_write_ha_state()
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/helpers/entity.py", line 649, in _async_write_ha_state
    state = self._stringify_state(available)
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/helpers/entity.py", line 591, in _stringify_state
    if (state := self.state) is None:
  File "/srv/hass/lib/python3.10/site-packages/homeassistant/components/sensor/__init__.py", line 583, in state
    raise ValueError(
ValueError: Sensor sensor.unavailable_entities has device class None, state class None unit entities and suggested precision None thus indicating it has a numeric value; however, it has the non-numeric value:  (<class 'str'>)

Additional information

System Information

version core-2023.5.0
installation_type Home Assistant Core
dev false
hassio false
docker false
user hass
virtualenv true
python_version 3.10.11
os_name Linux
os_version 5.15.85-1-pve
arch x86_64
timezone Europe/Amsterdam
config_dir /home/hass/.homeassistant
Recorder
oldest_recorder_run May 3, 2023 at 11:47
current_recorder_run May 6, 2023 at 00:39
estimated_db_size 774.55 MiB
database_engine mysql
database_version 10.6.12
@joostlek
Copy link
Member

joostlek commented May 5, 2023

Where does sensor.bathroom_vent_optimization_time and sensor.unavailable_entities come from?

@syphernl syphernl changed the title 2023.5.1 restarts (crashes) ~hourly 2023.5.x restarts (crashes) ~hourly May 5, 2023
@syphernl
Copy link
Contributor Author

syphernl commented May 5, 2023

Where does sensor.bathroom_vent_optimization_time and sensor.unavailable_entities come from?

Vent optimization is a custom integration and the other one is just a template sensor.

The normal logs show this when starting, usually because entities from Zigbee/Zwave are not available yet. Not sure whether these are related to the crashes.

I downgraded back to .0 but this one also restarts.

@joostlek
Copy link
Member

joostlek commented May 5, 2023

Could it be that the sensor.bathroom_vent_optimization_time returns the '∞'?

@joostlek
Copy link
Member

joostlek commented May 5, 2023

Ah, I think it might be related to #92588

@syphernl
Copy link
Contributor Author

syphernl commented May 5, 2023

I upgraded to .0 as soon as it came out last Wednesday.
No issues. No custom extensions have received updates so far.

The only "major" change I did was to add the Android TV Remote integration as it detected one of my Chromecasts.

No issues on Thursday.

This morning I upgraded to .1 and added another Android TV integration. After that the trouble started.

I now:

  • Downgraded to .0
  • Removed all Android TV Integration instances
  • Rebooted my HASS LCX

Let's see if it changed anything..

Ah, I think it might be related to #92588

I created #92588 because I noticed this in the logs while debugging this one, but it appears to be unrelated.

@syphernl syphernl changed the title 2023.5.x restarts (crashes) ~hourly 2023.5.1 restarts (crashes) ~hourly May 5, 2023
@syphernl
Copy link
Contributor Author

syphernl commented May 5, 2023

It has been crash-free for hours on 2023.5.0.

I then upgraded again to 2023.5.1 (and 2023.5.2 15 minutes later) and the crashes started happening again after about an hour after upgrading.

Spoke too soon, 45 minutes later it crashes again..

@syphernl
Copy link
Contributor Author

Seems the issue was being caused by cyberjunky/home-assistant-google_fit#38
After disabling this integration the segfaults stopped.

@syphernl syphernl closed this as not planned Won't fix, can't repro, duplicate, stale May 11, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jun 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants