raspotify: Stops playing after x songs
Hey! So let me start by saying this the most convenient solution to use spotify connect on an rpi, thank you!!
The issue I’ve run into, is that it stops playing after x tracks. So it will finish playing the track, and then stop until I service raspotify restart . Here’s what I get for service raspotify status :
Loaded: loaded (/lib/systemd/system/raspotify.service; enabled)
Active: active (running) since Wed 2017-06-28 11:05:01 UTC; 20min ago
Process: 1670 ExecStartPre=/bin/chown raspotify:raspotify /var/cache/raspotify (code=exited, status=0/SUCCESS)
Process: 1667 ExecStartPre=/bin/mkdir -p 0755 /var/cache/raspotify (code=exited, status=0/SUCCESS)
Main PID: 1673 (librespot)
CGroup: /system.slice/raspotify.service
├─1673 /usr/bin/librespot --name raspotify (raspberrypi) --backend alsa --cache /var/cache/raspotify --bitrate 160
└─1686 /usr/bin/pulseaudio --start --log-target=syslog
Jun 28 11:05:10 raspberrypi librespot[1673]: INFO:librespot::player: Track "A Jealous Heart Never Rests" loaded
Jun 28 11:05:11 raspberrypi pulseaudio[1686]: [pulseaudio] server-lookup.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Jun 28 11:05:11 raspberrypi pulseaudio[1686]: [pulseaudio] main.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Jun 28 11:05:11 raspberrypi pulseaudio[1686]: [pulseaudio] bluez4-util.c: org.bluez.Manager.GetProperties() failed: org.freedesktop.DBus.Error.UnknownMethod: Method "GetProperties" with signature "" on interface "org.bluez.Manager" doesn't exist
Jun 28 11:06:31 raspberrypi librespot[1673]: INFO:librespot::player: Loading track "Playing with Fire"
Jun 28 11:06:32 raspberrypi librespot[1673]: INFO:librespot::player: Track "Playing with Fire" loaded
Jun 28 11:06:35 raspberrypi librespot[1673]: INFO:librespot::player: Loading track "Friday Fish Fry - Maribou State & Pedestrian Remix - Radio Edit"
Jun 28 11:06:35 raspberrypi librespot[1673]: INFO:librespot::player: Track "Friday Fish Fry - Maribou State & Pedestrian Remix - Radio Edit" loaded
Jun 28 11:10:46 raspberrypi librespot[1673]: INFO:librespot::player: Loading track "Waves"
Jun 28 11:10:46 raspberrypi librespot[1673]: INFO:librespot::player: Track "Waves" loaded
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 30 (7 by maintainers)
Commits related to this issue
- Disable use of cache by default. Possibly fixes issue #3. — committed to dtcooper/raspotify by dtcooper 7 years ago
Hi, I just wanted to leave some feedback that is hopefully helpful.
I was having this exact issue on a very recent deployment off the default raspbian image on a first gen pi with the latest raspotify installed (installed about a week ago).
Following some advice I found on a different project, I uninstalled pulseaudio, and have not had the issue since. Works perfectly now, at least for the last 48 hours anyway. YMMV
Hi again,
I can confirm @kreague solution. The problem is the interaction with pulseaudio.
Really annoying issue. Kind of defeats the whole purpose of raspotify.
I don’t have
/etc/pulse/default.paso I can’t try the fix @niko-tinWhat about the rest of us poor souls who absolutely have to use
pulseaudio? Any chance to get this issue fixed?For me audio stops after about 3 songs and I’m not sure why. I disabled audio cache, but it’s still happening. On my Android Spotify client it still tells me the song is playing and if I request the service status it tells me the song is loaded and yet no audio. Any more suggestions? How did you guys fix this?
[EDIT] After running librespot in --verbose mode I find that it probably has something to do with how librespot fetches the file chunks. You can see that it actually loads the first chunk (0), but then requests 1, 67 and 66, and says “yeah, it’s done now” before actually requesting and receiving all the middle chunks. It actually fetches the file after, but at that point it already started playing nothing for some odd reason. I’d take it up with librespot were it not that the dev just announced that he’s quitting librespot 😦
@higab85, @staubrein et al., you might like to try the latest version. Install by,