# Mopidy unable to connect to icecast2

**URL:** https://discourse.mopidy.com/t/mopidy-unable-to-connect-to-icecast2/4822
**Category:** Misc
**Created:** [March 17, 2021, 8:34pm UTC](https://discourse.mopidy.com/t/mopidy-unable-to-connect-to-icecast2/4822 "2021-03-17T20:34:54Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![lilongueti](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/lilongueti/32/1985_2.png) [@lilongueti](https://discourse.mopidy.com/u/lilongueti)
#### Post date: [March 17, 2021, 8:34pm UTC](https://discourse.mopidy.com/t/mopidy-unable-to-connect-to-icecast2/4822/1 "2021-03-17T20:34:54Z")

</div>

this used to work just fine on my device, however i tried to change encoding from lamemp3enc to ogg and it stopped working, i have scince tried back with lamemp3enc, reinstalling both mopidy and icecast but nothing seems to work  
mopidy.conf  
`output = audioresample ! audioconvert ! vorbisenc ! oggmux ! shout2send async=false mount=mopidy ip=127.0.0.1 port=11000 password=stuff`  
icecast.xml is pretty much default

```auto
<hostname>127.0.0.1</hostname>
<listen-socket>
        <port>11000</port>
        <!-- <bind-address>127.0.0.1</bind-address> -->
        <!-- <shoutcast-mount>/stream</shoutcast-mount> -->
    </listen-socket>

<mount>
  <mount-name>/mopidy</mount-name>
  <fallback-mount>/silence.ogg</fallback-mount>
  <fallback-override>1</fallback-override>
</mount>

```

mopidy will show this error message

```auto
ERROR 2021-03-17 20:05:34,118 [12558:MainThread] mopidy.audio.gst
  GStreamer error: Could not connect to server

```

while ice cast gives …  
/var/log/icecast2/error.log

```auto
[2021-03-17 20:31:48] INFO main/main Icecast 2.4.4 server started
[2021-03-17 20:31:48] DBUG yp/yp_recheck_config Updating YP configuration
[2021-03-17 20:31:48] INFO yp/yp_update_thread YP update thread started
[2021-03-17 20:31:48] INFO connection/get_ssl_certificate No SSL capability on any configured ports
[2021-03-17 20:31:49] DBUG slave/_slave_thread checking master stream list
[2021-03-17 20:32:35] EROR connection/_handle_connection HTTP request parsing failed
[2021-03-17 20:32:36] DBUG stats/modify_node_event update global clients (1)
[2021-03-17 20:32:36] DBUG stats/modify_node_event update global connections (1)
[2021-03-17 20:32:36] DBUG stats/modify_node_event update global clients (0)

```

any help much is appreciated

---

<div class="post-metadata">

### Author: ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)
#### Post date: [March 17, 2021, 10:34pm UTC](https://discourse.mopidy.com/t/mopidy-unable-to-connect-to-icecast2/4822/2 "2021-03-17T22:34:51Z")

</div>

Any chance you did an upgrade as part of this? The later versions of libshout3 are bugged as per the warning in the docs. What version do you have?

---

<div class="post-metadata">

### Author: ![lilongueti](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/lilongueti/32/1985_2.png) [@lilongueti](https://discourse.mopidy.com/u/lilongueti)
#### Post date: [March 17, 2021, 10:55pm UTC](https://discourse.mopidy.com/t/mopidy-unable-to-connect-to-icecast2/4822/3 "2021-03-17T22:55:27Z")

</div>

i saw the warning on docs but as it just states the issue is with ubuntu 20.04 i thought it was fine with debian bullseye  
i installed ffmpeg to convert my silence.mpeg to silence.ogg, perhaps apt went ahead and upgraded this package as a dependency, i did upgrade latter as it wasn’t working anymore in hope it would fix it  
`libshout3/testing,now 2.4.5-1+b1 armhf [installed]`  
any work arround?

---

<div class="post-metadata">

### Author: ![lilongueti](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/lilongueti/32/1985_2.png) [@lilongueti](https://discourse.mopidy.com/u/lilongueti)
#### Post date: [March 17, 2021, 11:35pm UTC](https://discourse.mopidy.com/t/mopidy-unable-to-connect-to-icecast2/4822/4 "2021-03-17T23:35:26Z")

</div>

already managed to get it back up and working using the deb from the debian buster repo  
[https://packages.debian.org/buster/libshout3](https://packages.debian.org/buster/libshout3)  
tysm

---

<div class="post-metadata">

### Author: ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)
#### Post date: [March 17, 2021, 11:54pm UTC](https://discourse.mopidy.com/t/mopidy-unable-to-connect-to-icecast2/4822/5 "2021-03-17T23:54:25Z")

</div>

I guess I must change the warning to specify the last known working libshout version (v2.4.1). I saw the issue in libshout3 2.4.3-1 and I think the problem was [this one](https://gitlab.xiph.org/xiph/icecast-libshout/-/issues/2316). I vaguely remember rebuilding from source and applying a hacky workaround from the Gitlab issue and it worked again. Sorry but I don’t recall exactly what I tried but that is one workaround.

It’s a shame it’s still not fixed and pretty bad news considering new Debian stable is just around the corner. I think we will have to remove the Icecast page entirely and stop suggesting it.

---

<div class="post-metadata">

### Author: ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)
#### Post date: [March 17, 2021, 11:55pm UTC](https://discourse.mopidy.com/t/mopidy-unable-to-connect-to-icecast2/4822/6 "2021-03-17T23:55:22Z")

</div>

OK, that’s another workaround. Thanks for the update.

---

<div class="post-metadata">

### Author: ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)
#### Post date: [March 18, 2021, 12:22am UTC](https://discourse.mopidy.com/t/mopidy-unable-to-connect-to-icecast2/4822/7 "2021-03-18T00:22:19Z")

</div>

> [@kingosticks](#):
>
> I guess I must change the warning to specify the last known working libshout version (v2.4.1)

I’ve added [docs: more specifics regarding libshout problem · mopidy/mopidy@f17acac · GitHub](https://github.com/mopidy/mopidy/commit/f17acacff9b8e8f65b0bd95569f6848ab62a8bef)

---

<div class="post-metadata">

### Author: ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/system/32/1_2.png) [@system](https://discourse.mopidy.com/u/system)
#### Post date: [March 21, 2021, 12:23am UTC](https://discourse.mopidy.com/t/mopidy-unable-to-connect-to-icecast2/4822/8 "2021-03-21T00:23:10Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
