Playback not working on Kodi/OSMC
See original GitHub issueI have a whole-house audio system using OSMC - It is showing up as player in Home Assistant, and I can control it from there (i.e. pause playback once it is playing). However, music assistant does not actually start playback on OSMC. The OSMC is online and fully functional.
Whenever I try to play something from music assistant to OSMC, I see this in the logs:
2022-06-16 10:08:59 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.9/site-packages/music_assistant/controllers/streams.py", line 160, in serve_queue_stream
await queue_stream.subscribe(client_id, resp.write)
File "/usr/local/lib/python3.9/site-packages/music_assistant/controllers/streams.py", line 311, in subscribe
assert not self.done.is_set(), "Stream task is already finished"
AssertionError: Stream task is already finished
2022-06-16 10:09:00 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.9/site-packages/music_assistant/controllers/streams.py", line 160, in serve_queue_stream
await queue_stream.subscribe(client_id, resp.write)
File "/usr/local/lib/python3.9/site-packages/music_assistant/controllers/streams.py", line 311, in subscribe
assert not self.done.is_set(), "Stream task is already finished"
AssertionError: Stream task is already finished
2022-06-16 10:09:00 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.9/site-packages/music_assistant/controllers/streams.py", line 160, in serve_queue_stream
await queue_stream.subscribe(client_id, resp.write)
File "/usr/local/lib/python3.9/site-packages/music_assistant/controllers/streams.py", line 311, in subscribe
assert not self.done.is_set(), "Stream task is already finished"
AssertionError: Stream task is already finished
2022-06-16 10:09:00 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.9/site-packages/music_assistant/controllers/streams.py", line 160, in serve_queue_stream
await queue_stream.subscribe(client_id, resp.write)
File "/usr/local/lib/python3.9/site-packages/music_assistant/controllers/streams.py", line 311, in subscribe
assert not self.done.is_set(), "Stream task is already finished"
AssertionError: Stream task is already finished
and
2022-06-16 10:03:03 ERROR (MainThread) [homeassistant.components.kodi.media_player] Error calling async_update on entity media_player.osmc: TransportError("Error calling method 'Player.GetActivePlayers': Transport Error", TimeoutError())
2022-06-16 10:03:17 ERROR (MainThread) [homeassistant.components.kodi.media_player] Error calling async_update on entity media_player.osmc: TransportError("Error calling method 'Player.GetActivePlayers': Transport Error", ClientConnectorError(ConnectionKey(host='192.168.1.49', port=80, is_ssl=False, ssl=None, proxy=None, proxy_auth=None, proxy_headers_hash=1996882747), ConnectionRefusedError(111, "Connect call failed ('192.168.1.49', 80)")))
is this supposed to work? anything I can do to help?
Issue Analytics
- State:
- Created a year ago
- Comments:46 (27 by maintainers)
Top Results From Across the Web
Video playback issues since 08-01 update - Raspberry Pi
I've had playback issues with ts files (recorded by mythtv) ever since installing the 08-01 update. The audio runs too fast, and pauses...
Read more >playback issue with OSMC - KODI Forum
Hi, I use the SiO2 skin on OSMC. Having updated to the current osmc release a couple of issues have been noticed.
Read more >How to Fix Kodi Won't Play Videos Issues? [4 Methods]
Does your Kodi media player not working ? Todays' video is going to be helpful for Kodi users encountering this problem.
Read more >Kodi not working? How to fix Kodi problems (Updated for 2022)
Today, we'll be showing you how to fix Kodi problems including freezing, crashing, buffering, and video playback issues. Kodi not working.
Read more >Odd issue with Raspberry Pi 4 (2gb) and OSMC Video ...
Odd issue with Raspberry Pi 4 (2gb) and OSMC Video playback with long ... all my settings at the end), but the problem...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
What is the Kodi version/Os that you are using? Also, check the Kodi log to find out what Kodi player is actually used. It can depend on a number of factor (or could at the time I was involved, years ago).
Added Kodi to the title because it is practically the same as OSMC and has this same issue.