Music Assistant - Core stops playing - help with error

I have two automations using the new CORE version of Music Assistant. both work, for a while.

Complex Setup, but the trigger for both automations are helper’s that turn on the music (different set of speakers) and off.

The music plays when Help is turned on, plays for a few songs, no time or number of song commonality, before it stops playing.

Helper is still showing on, turning it off and back on, restarts the music.

Question: (Answered)

Where is the Log file for MASS? There is nothing interesting on the system log except the time being reset continuesly.

Next - what are the errors below?

Logs are found at

  • go to the MASS dashboard
  • Select the Engine icon top right (Settings)
  • Scroll to bottom
  • download logs is there

Now that I have the logs. This error occurred on one of the players when the misc stopped.

2024-12-27 09:24:00.128 INFO (MainThread) [music_assistant.streams] Start Queue Flow stream for Queue Juke input DLNA - crossfade: False
2024-12-27 09:26:07.264 ERROR (MainThread) [ffmpeg.33694] Stream error: TimeoutError

The other player created the following error on the failure

2024-12-26 21:01:33.771 ERROR (MainThread) [music_assistant] Error doing task: Unhandled exception in client_connected_cb
Traceback (most recent call last):
  File "/app/venv/lib/python3.12/site-packages/music_assistant/providers/airplay/provider.py", line 649, in _handle_dacp_request
    await writer.drain()
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 392, in drain
    await self._protocol._drain_helper()
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 166, in _drain_helper
    raise ConnectionResetError('Connection lost')
ConnectionResetError: Connection lost
2024-12-26 21:01:34.037 INFO (MainThread) [music_assistant.streams] Start Queue Flow stream for Queue MA RoPiee Bedroom Airplay - crossfade: False
2024-12-26 21:10:23.912 ERROR (MainThread) [music_assistant] Error doing task: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/asyncio/tasks.py", line 520, in wait_for
    return await fut
           ^^^^^^^^^
  File "/app/venv/lib/python3.12/site-packages/music_assistant/helpers/process.py", line 121, in iter_chunked
    chunk = await self.readexactly(n)
            ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/venv/lib/python3.12/site-packages/music_assistant/helpers/process.py", line 139, in readexactly
    return await self.proc.stdout.readexactly(n)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 752, in readexactly
    await self._wait_for_data('readexactly')
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 545, in _wait_for_data
    await self._waiter
asyncio.exceptions.CancelledError

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

Traceback (most recent call last):
  File "/app/venv/lib/python3.12/site-packages/music_assistant/providers/airplay/raop.py", line 73, in audio_streamer
    async for chunk in self._audio_source:
  File "/app/venv/lib/python3.12/site-packages/music_assistant/controllers/streams.py", line 775, in get_flow_stream
    async for chunk in self.get_media_stream(
  File "/app/venv/lib/python3.12/site-packages/music_assistant/controllers/streams.py", line 980, in get_media_stream
    async for chunk in get_media_stream(
  File "/app/venv/lib/python3.12/site-packages/music_assistant/helpers/audio.py", line 307, in get_media_stream
    async for chunk in TimedAsyncGenerator(
  File "/app/venv/lib/python3.12/site-packages/music_assistant/helpers/util.py", line 624, in __anext__
    result = await asyncio.wait_for(self._iterator.__anext__(), int(timeout))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/asyncio/tasks.py", line 519, in wait_for
    async with timeouts.timeout(timeout):
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/asyncio/timeouts.py", line 115, in __aexit__
    raise TimeoutError from exc_val
TimeoutError
2024-12-26 21:10:24.776 INFO (MainThread) [music_assistant.streams] Start Queue Flow stream for Queue MA RoPiee Bedroom Airplay - crossfade: False
2024-12-26 23:08:34.481 INFO (MainThread) [music_assistant.music] Sync task for Music Assistant completed

The logs suggest a connection problem with the device. Can you use a wired connection?

HA and MA

[NAS]—(GE)—[HA/MA on Pi4]——(GE)——(Network)

First player (Juke)

(Network)—(GE)—-[Juke]—(wired)—-{speakers}

Second Player (RoPie)

(Network)—(WiFi)—[RoPie]—-(wired)—{Speaker}


I cannot put the RoPie on a wired connection, it is in a location where there is no ethernet.

Old setup before the upgrade of HA to December release was running the MA Player on a Docker container, and on HA having the part of MA that exposed the players/speakers to the docker.

Excluding some issues with DLNA not being picked up, the music played rock (and roll) solid for months. This issue is since moving to MA as Core to HA.

Can I use MA on a Docker and have HA control it still?

Thank You for the read.

Hi @kcossabo ,
I am having the same playback issues. I did not use MA when it was still available as hacs integration. I am wondering if its still possible to start MA Server as docker image as well, since MA github repo was archived.

Cheers, mel

I gave up. Found that RoPieee will support PlexAMP and went that route. Before giving up, I did relaunch the Container, and the integration seemed to work -ish. I think if you load the Container, then load the ADD-IN you should be able to to use the external.

With my music being shared to PLEX anyways, the Plex integration, then RoPieee ojust works.