volumio / Volumio2

Volumio 2 - Audiophile Music Player
http://volumio.org
Other
1.37k stars 316 forks source link

webradio: playback stops randomly #1639

Open moritzmhmk opened 5 years ago

moritzmhmk commented 5 years ago

The webradio does stop playback after some time (the UI does NOT reflect that - i.e. the button is still the stop rectangle). Pressing stop and than play will make the stream play again.

Using journalctl I found volumio wpa_supplicant[778]: wlan0: WPA: Group rekeying completed with xx:xx:xx:xx:xx:xx [GTK=CCMP]. Sometimes it takes a few minutes to appear after the stream stopping - not sure if it is related but I never have this message without the stream stopping.

xipmix commented 5 years ago

The message you quote indicates some kind of wireless network issue. Do you have music in a local network share connected to your volumio, also via wireless? If that also stops randomly with the message above that suggests it's an issue intrinsic to the wireless. Is it possible to use an ethernet cable to connect your volumio to your home router - if you do that does the problem go away?

moritzmhmk commented 5 years ago

The same problems occurred when using ethernet. I found after some debugging that my router has those small drops roughly every 10 minutes. In the end I found that another device caused this - removing the static IP and using DHCP on that device fixed this (for whatever reason). Volumio while not responsible for the drops does not handle them (at least for the webradio) and will just hang instead of either continuing playback or actually going in a non-playing mode. I fixed this for now by installing mpd_watchdog

TL; DR The Internet drops are not caused by volumio but the webradio player does not handle drops. Can be sort of fixed with mpd_watchdog.

elcuevero commented 5 years ago

@moritzmhmk not interested in hijacking this, but could you post instructions on how to install mpd_watchdog? tried this but got a gpg key error:

wget -q -O - http://apt.kemmer.co.at/tkem.gpg | sudo apt-key add - sudo wget -q -O /etc/apt/sources.list.d/tkem.list http://apt.kemmer.co.at/tkem.list sudo apt-get update && sudo apt-get install mpd-watchdog

moritzmhmk commented 5 years ago

I didn't install it with apt but instead cloned the repo and executed the script.