-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Playing music on DLNA device stopped and device got lost #2883
Comments
The connection gets lots to the receiver as you can see in your log. So this is more likely an issue with the receiver or the network. Are multiple services connecting to the receiver perhaps ? PS: Next time attach a log as file instead of pasting a large chunk of logs in the issue reports, it makes the issue report so much harder to read that way. Thanks! |
I am having issues with playback stopping on a DLNA player while playing a Spotify playlist. There is nothing in the logs to indicate an error. |
this should be resolved in 2.2.5 (or 2.3.0b24 if you're running the beta), please test it out and let us know. |
@panoramia please confirm this is fixed with beta 25 |
Do you mean my original issue or the issue mentioned by @drjjr2 with the Spotify playlist? I can test it later this week with the beta. I have 2.2.5 installed, as I understand, this should be fixed in this release. The beta is not required, right (in this case I would need to figure out how to install the beta in Home Assistant)? |
I was able to workaround my issue on b24 by enabling queue flow mode on the Denon. If I disable queue flow mode, it still stops after 2 songs, even on the latest beta. |
@drjjr2 Enabling flow mode is not a work around it is the solution. That is why the option is there @Panoramiac The original issue please. That is what we need to focus on here |
Can't disagree that it solved my issue. But it was not necessary for me to enable queue flow mode until recently. |
Things have changed to increase the support to more devices. |
I had time today to test the fix as I understand the Flow mode by default. When enabled, the Denon receiver will not start playing and is lost in MA. When I disable the flow mode, the Denon receiver plays the music for some time and stops again (like the original description). Tested with 2.2 .5. I could download the log and attach it. Edit: I just checked the Home Assistant integration page for my Denon receiver:
The media stream should not be "IP-control" right? Or is the volume control IP control? In this case, the HA integration could interrupt the stream. Edit3: I can confirm: that the flow mode does not work with the Denon AVR-X1300W using local files or YouTube music as a source. Edit 4: Listening to a complete local Album worked, the only weird thing was the last track, played in an endless loop (#2942). The log is not showing anything about it. The MA GUI showed all tracks in the playlist and 0 in the played list. I continue to observe it. Currently, this setting is active, but flow mode is disabled (not sure if this is used, even if it is greyed out when flow is disabled): Edit 5: I noted, that the playlist in MA is not updating anymore. The played track is not moved to the played tracklist. In this screenshot "Back in Town" is currently played, Choreomania should have been moved to the played tracklist (#2940): |
What version of Music Assistant has the issue?
2.2.3
What version of the Home Assistant Integration have you got installed?
2024.8.1
Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?
The problem
We were listening to mp3s from local network share (could be mixed with YouTube music) when the music stopped. The receiver showed then a loading symbol.
In MA the receiver and the Playlist was not available any more.
The player settings showed a hour glass symbol.
How to reproduce
The DLNA player was lost some times now. To get it working, disabling and enabling the player device got it ecognised in MA again. This time the receiver must be restarted to get ist working again.
Music Providers
Local network share from Synology Smb share.
Player Providers
UPnP DLNA Denon Receiver AVR-X1300W
Full log output
I still can not download the full log. Here is the important part from HA:
2024-09-06 23:12:42.285 INFO (MainThread) [music_assistant.metadata] Metadata scanner finished.
2024-09-06 23:46:04.533 WARNING (MainThread) [async_upnp_client.profiles.profile] Failed (re-)subscribing to: uuid:16eb8363-d9b3-1696-b976-b6ad6bbac01f, reason: UpnpConnectionError('ClientConnectorError(ConnectionKey(host='192.168.178.22', port=8080, is_ssl=False, ssl=True, proxy=None, proxy_auth=None, proxy_headers_hash=None), ConnectionRefusedError(111, "Connect call failed ('192.168.178.22', 8080)"))', None)
2024-09-06 23:46:04.553 WARNING (MainThread) [async_upnp_client.profiles.profile] Failed (re-)subscribing to: uuid:9c10d87b-80ae-152f-b58c-294088fe2ca9, reason: UpnpConnectionError('ClientConnectorError(ConnectionKey(host='192.168.178.22', port=8080, is_ssl=False, ssl=True, proxy=None, proxy_auth=None, proxy_headers_hash=None), ConnectionRefusedError(111, "Connect call failed ('192.168.178.22', 8080)"))', None)
2024-09-06 23:46:04.573 WARNING (MainThread) [async_upnp_client.profiles.profile] Failed (re-)subscribing to: uuid:ed376107-0417-195d-a40e-6c96c1247718, reason: UpnpConnectionError('ClientConnectorError(ConnectionKey(host='192.168.178.22', port=8080, is_ssl=False, ssl=True, proxy=None, proxy_auth=None, proxy_headers_hash=None), ConnectionRefusedError(111, "Connect call failed ('192.168.178.22', 8080)"))', None)
2024-09-07 02:00:11.221 INFO (MainThread) [music_assistant.music] Sync task for Music Assistant completed
2024-09-07 02:00:23.065 INFO (MainThread) [music_assistant.music] Sync task for Filesystem (remote share) completed
2024-09-07 02:00:28.883 INFO (MainThread) [music_assistant.music] Sync task for YouTube Music completed
2024-09-07 02:00:28.884 INFO (MainThread) [music_assistant.metadata] Starting metadata scanner
2024-09-07 02:12:07.734 INFO (MainThread) [music_assistant.metadata] Metadata scanner finished.
2024-09-07 05:00:11.116 INFO (MainThread) [music_assistant.music] Sync task for Music Assistant completed
2024-09-07 05:00:23.845 INFO (MainThread) [music_assistant.music] Sync task for Filesystem (remote share) completed
2024-09-07 05:00:32.008 INFO (MainThread) [music_assistant.music] Sync task for YouTube Music completed
2024-09-07 05:00:32.009 INFO (MainThread) [music_assistant.metadata] Starting metadata scanner
2024-09-07 05:12:45.100 INFO (MainThread) [music_assistant.metadata] Metadata scanner finished.
2024-09-07 08:00:11.256 INFO (MainThread) [music_assistant.music] Sync task for Music Assistant completed
2024-09-07 08:00:23.925 INFO (MainThread) [music_assistant.music] Sync task for Filesystem (remote share) completed
2024-09-07 08:00:30.236 INFO (MainThread) [music_assistant.music] Sync task for YouTube Music completed
2024-09-07 08:00:30.238 INFO (MainThread) [music_assistant.metadata] Starting metadata scanner
2024-09-07 08:12:38.984 INFO (MainThread) [music_assistant.metadata] Metadata scanner finished.
2024-09-07 08:13:29.575 ERROR (MainThread) [music_assistant.dlna] Error during call cmd_stop: 'Error during async_call(), action: Stop, status: 500, upnp error: 701 (Transition not available)'
2024-09-07 09:46:17.084 ERROR (MainThread) [music_assistant] Error doing task: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/async_upnp_client/aiohttp.py", line 216, in _async_http_request
async with self._session.request(
File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 1353, in aenter
self._resp = await self._coro
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 684, in _request
await resp.start(conn)
File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 994, in start
with self._timer:
File "/usr/local/lib/python3.12/site-packages/aiohttp/helpers.py", line 713, in exit
raise asyncio.TimeoutError from None
TimeoutError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/async_upnp_client/aiohttp.py", line 184, in async_http_request
return await self._async_http_request(http_request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/async_upnp_client/aiohttp.py", line 241, in _async_http_request
raise UpnpConnectionTimeoutError(repr(err)) from err
async_upnp_client.exceptions.UpnpConnectionTimeoutError: [Errno TimeoutError()] None
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/music_assistant/server/providers/dlna/init.py", line 416, in poll_player
await dlna_player.device.async_update(do_ping=do_ping)
File "/usr/local/lib/python3.12/site-packages/async_upnp_client/profiles/dlna.py", line 350, in async_update
await self._async_poll_state_variables(
File "/usr/local/lib/python3.12/site-packages/async_upnp_client/profiles/profile.py", line 443, in _async_poll_state_variables
result = await action.async_call(**in_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/async_upnp_client/client.py", line 719, in async_call
bare_response = await self.service.requester.async_http_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/async_upnp_client/aiohttp.py", line 186, in async_http_request
raise UpnpConnectionError(repr(err)) from err
async_upnp_client.exceptions.UpnpConnectionError: ("UpnpConnectionTimeoutError('TimeoutError()', None)", None)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/music_assistant/server/controllers/players.py", line 676, in play_media
await player_prov.play_media(
File "/usr/local/lib/python3.12/site-packages/music_assistant/server/providers/dlna/init.py", line 151, in wrapper
return await func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/music_assistant/server/providers/dlna/init.py", line 356, in play_media
await self.poll_player(dlna_player.udn)
File "/usr/local/lib/python3.12/site-packages/music_assistant/server/providers/dlna/init.py", line 421, in poll_player
raise PlayerUnavailableError from err
music_assistant.common.models.errors.PlayerUnavailableError
Additional information
I assume the issue to be on MA side, as I would not expect to loose the Playlist when the receiver had a problem.
What version of Home Assistant Core are your running
2024.9. 0
What type of installation are you running?
Home Assistant OS
On what type of hardware are you running?
Raspberry Pi
The text was updated successfully, but these errors were encountered: