@DougAmes wrote:
I’ve had an issue for a long time where HA will not restart successfully, requiring me to log in with SSH, manually stop the HA service, wait 2 minutes for it to report stopped, and then start it again.
The service status report looks like this:
Jun 02 14:00:57 aml hass[14549]: AttributeError: 'NoneType' object has no attribute 'transport_id' Jun 02 14:00:58 aml hass[14549]: 2020-06-02 14:00:58 ERROR (Thread-21) [pychromecast.socket_client] [192.168.0.72:8009] Failed to connect. No retries. Jun 02 14:00:58 aml hass[14549]: 2020-06-02 14:00:58 ERROR (Thread-14) [pychromecast.socket_client] [192.168.0.71:8009] Failed to connect. No retries. Jun 02 14:00:59 aml hass[14549]: 2020-06-02 14:00:59 ERROR (Thread-17) [pychromecast.controllers] Exception thrown when calling cast status listener Jun 02 14:00:59 aml hass[14549]: Traceback (most recent call last): Jun 02 14:00:59 aml hass[14549]: File "/srv/homeassistant/lib/python3.6/site-packages/pychromecast/socket_client.py", line 1048, in _report_status Jun 02 14:00:59 aml hass[14549]: listener.new_cast_status(self.status) Jun 02 14:00:59 aml hass[14549]: File "/srv/homeassistant/lib/python3.6/site-packages/pychromecast/socket_client.py", line 381, in new_cast_status Jun 02 14:00:59 aml hass[14549]: new_channel = self.destination_id != cast_status.transport_id Jun 02 14:00:59 aml hass[14549]: AttributeError: 'NoneType' object has no attribute 'transport_id'
The IP addresses specified in the error messages (192.168.0.71 and .72) are my Sonos One speakers, which I know appear to have Chromecast capabilties to many apps, but they do not - it’s an illusion.
After this error, HA startup freezes forever, and needs the manual stop/restart.
But this error does not happen all of the time. Sometimes at random HA will restart successfully, and in fact it tends to restart successfully if several restarts in a row are needed because other devices don’t initialize correctly.
Posts: 1
Participants: 1