mopidy / mopidy-mpd

Mopidy extension for controlling playback from MPD clients
https://mopidy.com/ext/mpd/
Apache License 2.0
98 stars 20 forks source link

mopidy not playing nicely with upmpdcli revisited (`addtagid` not implemented) #41

Open wu-lee opened 3 years ago

wu-lee commented 3 years ago

Describe the bug

I'm seeing something very like the bug mopidy/mopidy#1286 now, using recent releases of Mopidy, Upmpdcli and Jellyfin (details below). Tracks which play initially won't play later.

How to reproduce

Initially, things work: playing a track on Jellyfin when casting to upmpdcli, which is managing Mopidy, results in music playing.

However, something happens over time, typically when I go away and come back again to play music again. Then, nothing happens when a track is played.

Upmpd emits the following in its log whenever an attempt is made [edit: whether successful or not]:

upmpdcli_1               | 2021-03-17T11:28:32.831477362Z :3:src/upmpd.cxx:275::checkContentFormat: format check disabled
upmpdcli_1               | 2021-03-17T11:28:32.899081567Z :2:src/mpdcli.cxx:680::MPDCli::send_tag: mpd_response_finish failed for tag 0 data [Godspeed You! Black Emperor]
upmpdcli_1               | 2021-03-17T11:28:32.899203260Z :2:src/mpdcli.cxx:140::MPDCli::send_tag failed: Not implemented
upmpdcli_1               | 2021-03-17T11:28:32.899328188Z :2:src/mpdcli.cxx:143::MPDCli::send_tag server error: 0

Upmpdcli is not restarting after each attempt.

Enabling debug logging on Mopidy shows that indeed the command addtagid is being sent, and Mopidy is responding with {addtagid} Not implemented. Nothing is played. There are no errors shown in Jellyfin.

Mopidy log of an unsuccessful play mopidy.log

Restarting the Mopidy docker container can make this problem go away, but it returns again. Successful plays seem also to have the addtagid not implemented message, suggesting there may be something more to this.

Mopidy log of a successful play mopidy-2.log

(Note that Mopidy lists addtagid as an MPD command in the logs when a client session starts, included in second log file.)

Expected behaviour

I expect to be able to play tracks from Jellyfin onto Mopidy via upmpdcli, repeatably.

Environment Please complete the following information: