Mopidy fails to connect to Icecast server with Ubuntu 20.04

Mopidy 3.0.2 was installed on Ubuntu 20.04 (Focal Fossa) using the apt.mopidy.com method.
All attempts to connect to a known working Icecast2 server would not work and the Icecast server would not log any errors. However the Mopidy log would record the following error:
[MainThread] mopidy.audio.gst GStreamer error: Could not connect to server
The root cause is a bug in the version of the libshout3 library that is included in Ubuntu 20.04 (source: https://bugs.launchpad.net/mixxx/+bug/1833225). A workaround is to downgrade libshout3 library to a working version. In this example we will use the library in Ubuntu 19.10 (Eoan): 2.4.3 (2.4.3-1) –> 2.4.1 (2.4.1-2build1)
https://packages.ubuntu.com/eoan/libshout3

Steps:

  1. cd /tmp
  2. wget http://mirrors.kernel.org/ubuntu/pool/main/libs/libshout/libshout3_2.4.1-2build1_amd64.deb
  3. sudo dpkg -i libshout3_2.4.1-2build1_amd64.deb
  4. Restart Mopidy

To prevent the library from being replaced with every apt-get upgradeĀ  you can hold it:

apt-mark hold libshout3

Once the libshout3 package is fixed in 20.04 we will be able to undo it:

apt-mark unhold libshout3
This entry was posted in Uncategorized. Bookmark the permalink.