#1306·spotifyd

Connection reset by peer (os error 104)

Author: ghostCreated Oct 15, 2024Updated Aug 3, 2026
Labelsbug

Description Every time I start spotifyd, it plays for about an hour or two and then goes from the play state to idle. When I check journalctl, it says "subscription terminated." followed by "Connection reset by peer". After that, it starts the authentication process again. I'm not exactly sure what to do or what could be causing this.

To Reproduce

  1. Launch spotifyd with
/usr/local/bin/spotifyd --no-daemon --config-path /home/pi/.config/spotifyd/spotifyd.conf --cache-path /home/pi/.cache/spotifyd/
  1. Start playing
  2. Playstate goes from playing to idle in random intervals

Logs

Click to show logs
Oct 15 07:32:38 raspberrypi spotifyd[1024]: subscription terminated
Oct 15 07:32:38 raspberrypi spotifyd[1024]: Connection reset by peer (os error 104)
Oct 15 07:32:38 raspberrypi spotifyd[1024]: Ignoring blacklisted access point ap-gew4.                                                                                                                                                             spotify.com:4070
Oct 15 07:32:38 raspberrypi spotifyd[1024]: Ignoring blacklisted access point ap-gew4.                                                                                                                                                             spotify.com:443
Oct 15 07:32:38 raspberrypi spotifyd[1024]: Ignoring blacklisted access point ap-gew4.                                                                                                                                                             spotify.com:80
Oct 15 07:32:38 raspberrypi spotifyd[1024]: Connecting to AP "ap-gew1.spotify.com:443"
Oct 15 07:32:38 raspberrypi spotifyd[1024]: Authenticated as "xxxx" !
Oct 15 07:32:38 raspberrypi spotifyd[1024]: Mixing with softvol and volume control: Lo                                                                                                                                                             g(60.0)
Oct 15 07:32:38 raspberrypi spotifyd[1024]: Converting with ditherer: tpdf
Oct 15 07:32:38 raspberrypi spotifyd[1024]: Using AlsaSink with format: S16

Compilation flags

  • dbus_mpris
  • dbus_keyring
  • alsa_backend
  • portaudio_backend
  • pulseaudio_backend
  • rodio_backend

Versions (please complete the following information):

  • OS: Raspberry Pi OS (64-bit)