# Webradio playback stopping after some hours

**URL:** https://discourse.mopidy.com/t/webradio-playback-stopping-after-some-hours/3717
**Category:** Misc
**Created:** [January 16, 2020, 1:57pm UTC](https://discourse.mopidy.com/t/webradio-playback-stopping-after-some-hours/3717 "2020-01-16T13:57:56Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Kraligor](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/kraligor/32/1411_2.png) [@Kraligor](https://discourse.mopidy.com/u/Kraligor)
#### Post date: [January 16, 2020, 1:57pm UTC](https://discourse.mopidy.com/t/webradio-playback-stopping-after-some-hours/3717/1 "2020-01-16T13:57:56Z")

</div>

Soo… I’m using Mopidy in the following environment:

- KDE Neon on NUC, connected via WiFi
- RompR as frontend, then Mopidy and Pulseaudio

After a reboot I can play webradio for several hours without issue, then suddenly it stops.  
/var/log/mopidy/mopidy.log says:  
`2020-01-12 12:58:13,512 INFO [830:MpdSession-365] mopidy.mpd.session: New MPD connection from [::ffff:127.0.0.1]:6600`  
`2020-01-12 12:58:14,578 INFO [830:MpdSession-366] mopidy.mpd.session: New MPD connection from [::ffff:127.0.0.1]:6600`  
`2020-01-12 12:58:17,613 INFO [830:MpdSession-367] mopidy.mpd.session: New MPD connection from [::ffff:127.0.0.1]:6600`  
`2020-01-12 23:13:05,311 ERROR [830:MainThread] mopidy.audio.gst: GStreamer error: gst-resource-error-quark: A network error occurred, or the server closed the connection unexpectedly. (9)`

Any idea where I should start debugging?

Cheers  
Oli

---

<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: [January 16, 2020, 2:43pm UTC](https://discourse.mopidy.com/t/webradio-playback-stopping-after-some-hours/3717/2 "2020-01-16T14:43:46Z")

</div>

The error strongly suggests it’s a network problem. I’d suggest starting by elimiating Wifi from the equation. And also trying other radio streams.

You could also try using something like [https://github.com/pimusicbox/mpd-watchdog](https://github.com/pimusicbox/mpd-watchdog)

Please also take a minute to read [https://docs.mopidy.com/en/latest/troubleshooting/](https://docs.mopidy.com/en/latest/troubleshooting/).

---

<div class="post-metadata">

### Author: ![Kraligor](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/kraligor/32/1411_2.png) [@Kraligor](https://discourse.mopidy.com/u/Kraligor)
#### Post date: [January 17, 2020, 10:03am UTC](https://discourse.mopidy.com/t/webradio-playback-stopping-after-some-hours/3717/3 "2020-01-17T10:03:01Z")

</div>

Thanks for the quick reply! I’ll try it with a LAN cable. Different streams I’ve already tried, same result. I’ll have a look at mpd-watchdog too. And the troubleshooting guide.

---

<div class="post-metadata">

### Author: ![mczerski](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/mczerski/32/742_2.png) [@mczerski](https://discourse.mopidy.com/u/mczerski)
#### Post date: [January 17, 2020, 4:55pm UTC](https://discourse.mopidy.com/t/webradio-playback-stopping-after-some-hours/3717/4 "2020-01-17T16:55:54Z")

</div>

It May be a network problem, but mopidy should handle it and try to restart the stream playback. I am also having this error and i need to stóp and then start manually playback.

---

<div class="post-metadata">

### Author: ![fmarzocca](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/fmarzocca/32/1095_2.png) [@fmarzocca](https://discourse.mopidy.com/u/fmarzocca)
#### Post date: [January 21, 2020, 10:35am UTC](https://discourse.mopidy.com/t/webradio-playback-stopping-after-some-hours/3717/5 "2020-01-21T10:35:02Z")

</div>

How to use mpd-watchdog on a Raspberry with mopidy and Iris?

---

<div class="post-metadata">

### Author: ![Kraligor](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/kraligor/32/1411_2.png) [@Kraligor](https://discourse.mopidy.com/u/Kraligor)
#### Post date: [January 27, 2020, 11:36am UTC](https://discourse.mopidy.com/t/webradio-playback-stopping-after-some-hours/3717/6 "2020-01-27T11:36:15Z")

</div>

Update: For whatever reason the issue just disappeared. My current radio stream has been running for days without any problem. Weird.

---

<div class="post-metadata">

### Author: ![Jeff\_Hutchins](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/jeff_hutchins/32/1939_2.png) [@Jeff\_Hutchins](https://discourse.mopidy.com/u/Jeff_Hutchins)
#### Post date: [July 6, 2021, 7:15pm UTC](https://discourse.mopidy.com/t/webradio-playback-stopping-after-some-hours/3717/7 "2021-07-06T19:15:27Z")

</div>

Having the same problem here. Despite Ethernet connection GStreamer occassionally stops:

`mopidy[1508]: ERROR [MainThread] mopidy.audio.gst GStreamer error: A network error occurred, or the server closed the connection unexpectedly.`

> [@mczerski](#):
>
> mopidy should handle it and try to restart the stream playback

I totally agree. Why doesn’t Mopidy by itself restart the stream?
