Music Assistant stops playing randomly

I’m using Music Assistant to play from my Plex library, using an automation. It starts properly, but every time it will stop randomly, whether it’s after 15 minutes, or 1.5 hours. The logs from Music Assistant show this:

2026-07-19 14:17:41.852 ERROR (MainThread) [music_assistant] Error doing task: Task exception was never retrieved
Traceback (most recent call last):
File “/app/venv/lib/python3.14/site-packages/music_assistant/controllers/player_queues.py”, line 2543, in _do_prepare
next_item.streamdetails = await self.mass.streams.audio.get_stream_details(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
queue_item=next_item
^^^^^^^^^^^^^^^^^^^^
)
^
File “/app/venv/lib/python3.14/site-packages/music_assistant/controllers/streams/audio.py”, line 338, in get_stream_details
streamdetails = await music_prov.get_stream_details(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
prov_media.item_id, media_item.media_type
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File “/app/venv/lib/python3.14/site-packages/music_assistant/providers/plex/init.py”, line 1291, in get_stream_details
plex_track = await self._get_data(item_id, PlexTrack)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/app/venv/lib/python3.14/site-packages/music_assistant/providers/plex/init.py”, line 540, in _get_data
results = await self._run_async(self._plex_library.fetchItem, key, cls)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/app/venv/lib/python3.14/site-packages/music_assistant/providers/plex/init.py”, line 537, in _run_async
return await asyncio.to_thread(call, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.14/asyncio/threads.py”, line 26, in to_thread
return await loop.run_in_executor(None, func_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.14/concurrent/futures/thread.py”, line 86, in run
result = ctx.run(self.task)
File “/usr/local/lib/python3.14/concurrent/futures/thread.py”, line 73, in run
return fn(*args, **kwargs)
File “/app/venv/lib/python3.14/site-packages/plexapi/base.py”, line 386, in fetchItem
return self.fetchItems(ekey, cls, **kwargs)[0]
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
File “/app/venv/lib/python3.14/site-packages/plexapi/base.py”, line 334, in fetchItems
data = self._server.query(ekey, headers=headers, params=params)
File “/app/venv/lib/python3.14/site-packages/plexapi/server.py”, line 756, in query
raise NotFound(message)
plexapi.exceptions.NotFound: (404) not_found; http://192.168.69.44:32400/library/metadata/54920 Not Found

404 Not Found


2026-07-19 14:18:52.137 WARNING (MainThread) [music_assistant.helpers.process] Process stdin feeder task ended with error: (404) not_found; http://192.168.69.44:32400/library/metadata/54920 Not Found

404 Not Found