question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Network issues on release 2022.7.0 (and HA 2022.8 dev)

See original GitHub issue

What 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:closed
  • Created a year ago
  • Comments:17 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
marcelveldtcommented, Jul 27, 2022

Figured out the root cause for the connectivity issues and fixed it in 2022.7.2 (and 2022.8 beta 0).

0reactions
marcelveldtcommented, Jul 25, 2022

@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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

2022.8: You can fix it! - Home Assistant
First-class support for Bluetooth, get notified about detected issues and how to repair them, find integrations by brand name, and maps with ...
Read more >
5 Features in 2022.8 (Home Assistant) - YouTube
In todays video we are having a quick look at 5 New Features that I really like in the 2022.8 release of Home...
Read more >
homeassistant Changelog - PyUp.io
Fix Netatmo scope issue with HA cloud (cgtobi - 79437) ... 2022.8.2. - Update gree to use the network component to set discovery...
Read more >
Home Assistant Devs (@hass_devs) / Twitter
The Internet developers.home-assistant.io Joined May 2018 ... Home Assistant 2022.9 birthday release stats: - 1 month development cycle - 67 contributors ...
Read more >
Software-update: Home Assistant Core 2022.3.0 - Tweakers
Seventy-three years later, we automate our entire homes. Home Assistant Core 2022.3! And this release has a different and fresh “tune” to it!...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found