mopidy-spotify: Error connecting with spotify - UNABLE_TO_CONTACT_SERVER: 8

Hello,

I had mopidy-spotify playing without problems, and yesterday the music stopped. I went to Mopidy-Iris and now every time I try to play some music I get the error message saying “Mopidy: Failed to add some tracks”.

Since then I tried already doing multiple things, I checked my subscription (its a family plan with a valid subscription) and updated the credit card that was expiring at the end of this month.

Generated full new tokens, client secrets, etc (even tried with a new login).

And in my mopidy journal, I’m getting the messages:

Feb 26 10:24:01 mopidy[1119]: ERROR [SpotifyEventLoop] spotify.session Spotify login error: <ErrorType.UNABLE_TO_CONTACT_SERVER: 8> Feb 26 10:24:06 mopidy[1119]: INFO [SpotifyBackend-6] mopidy_spotify.lookup Failed to lookup 'spotify:track:4RbKBuzAMn0e3dNpxH5Fql': Session must be logged in and online to load objects: <ConnectionState.LOGGED_OUT: 0>

After some googling what I found was related to the subscription (which I check and seems fine), and with the connected Facebook, which my account isn’t connected to any Facebook.

Has anyone had this problem solved?

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 7
  • Comments: 19 (2 by maintainers)

Most upvoted comments

I’m also affected by the issue since yesterday and I’ve reported it to @SpotifyCares on Twitter just in case (haven’t got an answer yet though).

After a bit of investigation, it seems that the connection to the ap.spotify.com selected access point host fails. Debug logs with strace:

# First we try to connect on port 4070 -> timeout
  libspotify log message: 12:16:01.935 I [ap:1752] Connecting to AP ap.spotify.com:4070
connect(15, {sa_family=AF_INET, sin_port=htons(4070), sin_addr=inet_addr("104.154.126.74")}, 16) = -1 EINPROGRESS (Operation now in progress)

# Then on port 443 -> timeout
libspotify log message: 12:16:06.942 I [ap:1752] Connecting to AP ap.spotify.com:443
connect(15, {sa_family=AF_INET, sin_port=htons(443), sin_addr=inet_addr("104.199.64.124")}, 16) = -1 EINPROGRESS (Operation now in progress)

# Then on port 80 -> timeout
libspotify log message: 12:16:11.950 I [ap:1752] Connecting to AP ap.spotify.com:80
connect(15, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("104.199.65.134")}, 16) = -1 EINPROGRESS (Operation now in progress)

# Eventually we get a connection failure triggered by libspotify
ERROR    2020-02-26 12:16:16,964 [3544371:SpotifyEventLoop] spotify.session
  Spotify login error: <ErrorType.UNABLE_TO_CONTACT_SERVER: 8>

libspotify is closed source so I can’t investigate further what’s going on and how the AP hosts are selected. @jodal @kingosticks any clue?

Not working for me too in France.

ERROR    2020-02-26 15:32:08,713 [7605:SpotifyEventLoop] spotify.session
  Spotify login error: <ErrorType.UNABLE_TO_CONTACT_SERVER: 8>