Network issues on release 2022.7.0 (and HA 2022.8 dev)
See original GitHub issueWhat version of Music Assistant has the issue?
2022.7.0
The problem
experiencing awful Nabu Casa cloud connection ever since 2022.7 is installed. Also seeing more pychromecast errors than before
Also, it wont tts my status message, stating it isnt found in cache. That’s correct, I dont use cache on TTS and never did, have that disabled.
How to reproduce
just open the cloud url and experience practically no view fully loading. When opening a camera images view, it wont load at all, nor release the browser…
Relevant log output
network issues:
Logger: async_upnp_client.ssdp
Source: components/ssdp/__init__.py:341
First occurred: 23:02:46 (16 occurrences)
Last logged: 23:32:47
Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=16 read=polling write=<idle, bufsize=0>>
tts issues:
2022-07-23 23:37:33.653 ERROR (MainThread) [homeassistant.components.tts] Error on load tts: 55819e57f99be072c2997990d0b0dc7c5e838932_nl-nl_826d21f2a0_cloud not in cache!
2022-07-23 23:37:33.677 WARNING (MainThread) [music_assistant.players.stream] Stream error on http://192.168.1.61:42938/api/tts_proxy/55819e57f99be072c2997990d0b0dc7c5e838932_nl-nl_826d21f2a0_cloud.mp3
2022-07-23 23:37:33.682 ERROR (MainThread) [homeassistant.components.tts] Error on load tts: 07d3515add3514bf29c79533727dc799c1fde2e8_nl-nl_826d21f2a0_cloud not in cache!
2022-07-23 23:37:33.700 WARNING (MainThread) [music_assistant.players.stream] Stream error on http://192.168.1.61:42938/api/tts_proxy/07d3515add3514bf29c79533727dc799c1fde2e8_nl-nl_826d21f2a0_cloud.mp3
2022-07-23 23:37:42.911 WARNING (SyncWorker_1) [pychromecast.controllers] Quick Play failed for http://192.168.1.61:42938/api/tts_proxy/6a9ea9b12ab5902c628320c6f39c8c6b8be08739_nl-nl_826d21f2a0_cloud.mp3:audio/mpeg({})
2022-07-23 23:37:42.923 ERROR (MainThread) [homeassistant.core] Error executing service: <ServiceCall media_player.play_media (c:01G8PFWTE3BT4P2P7BTAR4AHMY): entity_id=['media_player.googlehome_hub'], announce=True, extra=, media_type=music, media_id=media-source://tts/cloud?message=GoedeAvond,+Home-assistant+Rpi4+is+weer+actief+sinds+Zaterdag+23+Juli+en+buiten+is+het+18.0+graden.&language=nl-NL&gender=male>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1731, in catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1750, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 676, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 930, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 713, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 737, in async_play_media
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.10/site-packages/pychromecast/quick_play.py", line 77, in quick_play
controller.quick_play(**data)
File "/usr/local/lib/python3.10/site-packages/pychromecast/controllers/media.py", line 547, in quick_play
raise PyChromecastError()
pychromecast.error.PyChromecastError
2022-07-23 23:37:51.956 WARNING (SyncWorker_10) [pychromecast.controllers] Quick Play failed for http://192.168.1.61:8095/ebb4b47cb9324328906a061393cddffd.flac:audio/flac({'enqueue': False, 'stream_type': 'BUFFERED', 'title': ' Streaming from Music Assistant'})
2022-07-23 23:37:52.061 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/music_assistant/models/player_queue.py", line 537, in play_index
await self.player.play_url(stream.url)
File "/config/custom_components/mass/player_controls.py", line 535, in play_url
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.10/site-packages/pychromecast/quick_play.py", line 77, in quick_play
controller.quick_play(**data)
File "/usr/local/lib/python3.10/site-packages/pychromecast/controllers/media.py", line 547, in quick_play
raise PyChromecastError()
pychromecast.error.PyChromecastError
2022-07-23 23:37:54.201 WARNING (SyncWorker_15) [pychromecast.controllers] Quick Play failed for http://192.168.1.61:8095/e64605a573fe424db9e22e7fe9da6c61.flac:audio/flac({'enqueue': False, 'stream_type': 'BUFFERED', 'title': ' Streaming from Music Assistant'})
2022-07-23 23:37:54.255 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/music_assistant/models/player_queue.py", line 537, in play_index
await self.player.play_url(stream.url)
File "/config/custom_components/mass/player_controls.py", line 535, in play_url
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.10/site-packages/pychromecast/quick_play.py", line 77, in quick_play
controller.quick_play(**data)
File "/usr/local/lib/python3.10/site-packages/pychromecast/controllers/media.py", line 547, in quick_play
raise PyChromecastError()
pychromecast.error.PyChromecastError
2022-07-23 23:39:48.619 ERROR (Thread-8) [homeassistant.components.cast.media_player] Failed to cast media http://192.168.1.61:8095/ebb4b47cb9324328906a061393cddffd.flac. Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address
2022-07-23 23:39:48.822 ERROR (MainThread) [homeassistant.components.tts] Error on load tts: 55819e57f99be072c2997990d0b0dc7c5e838932_nl-nl_826d21f2a0_cloud not in cache!
2022-07-23 23:39:48.833 WARNING (MainThread) [music_assistant.players.stream] Stream error on http://192.168.1.61:42938/api/tts_proxy/55819e57f99be072c2997990d0b0dc7c5e838932_nl-nl_826d21f2a0_cloud.mp3
2022-07-23 23:40:06.098 WARNING (SyncWorker_15) [pychromecast.controllers] Quick Play failed for http://192.168.1.61:8095/c8b1072cc55c452a83ae9517e0f00759.flac:audio/flac({'enqueue': False, 'stream_type': 'BUFFERED', 'title': ' Streaming from Music Assistant'})
2022-07-23 23:40:06.108 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/music_assistant/models/player_queue.py", line 537, in play_index
await self.player.play_url(stream.url)
File "/config/custom_components/mass/player_controls.py", line 535, in play_url
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.10/site-packages/pychromecast/quick_play.py", line 77, in quick_play
controller.quick_play(**data)
File "/usr/local/lib/python3.10/site-packages/pychromecast/controllers/media.py", line 547, in quick_play
raise PyChromecastError()
pychromecast.error.PyChromecastError
Additional information
aware I am using 2022.8 dev which has some issues with the players and also wont show the library. Had that before, and no problem waiting for the next beta release cycle.
The network issues however are new, and practically fatal to a Cloud connected instance.
So I disabled MA for now, and all came back.
What version of Home Assistant Core are your running
2022.8.0.dev20220722
What type of installation are you running?
Home Assistant OS
On what type of hardware are you running?
Generic x86-64 (e.g. Intel NUC)
Issue Analytics
- State:
- Created a year ago
- Comments:17 (12 by maintainers)
Top GitHub Comments
Figured out the root cause for the connectivity issues and fixed it in 2022.7.2 (and 2022.8 beta 0).
@Mariusthvdb see #713 as meta issue for the google cast problems. I think I found a/the trigger and placed a small workaround in place. It’s not the root cause nor fix but at least the issue is no longer triggered by MA in the cast integration. I can work from here with Eric (cast maintainer) to solve the real underlying issue.
Can you give the 2022.7.1 patch version a try. I’m curious if it fixes your cast and TTS issues and if it also fixes that nabu casa connection issue I don’t understand.