Skip to content

u/Avtrkrb

In this archive from Dec 2020 to Dec 2020

0
posts
1
comments
0
media
2
score

Top comments

Hey yagarea! I had the exact same issue as you, but I've resolved it yesterday. I'm a hardcore user of Arch Linux, I've got about 6 devices running Arch (x86_64 & ARM) & Spotify broke for me in all Arch devices where I had it installed when I redeployed PiHole. (I like to block ads, but even if you don't want to block ads, this should still workout for you if you do it properly.)

I tried the NetworkManager tip which butwhatabout_ suggested, but sadly that didn't workout for me.

FYI: The issue is not with libcurl, infact it doesn't even matter.

Here's the problem that I faced.

Mine is a 200Mbps connection & strangely the speed dropped to 2Mbps after deploying PiHole. I dug a bit deeper since this was a big bummer for me in addition to Spotify not working. Then I realized what was wrong.

I had setup Quad9 as my upstream DNS & sadly, Quad9 is damn slow for me with my new ISP. The queries which PiHole allowed to passthrough were being queried to Quad9 which for me was slow/timingout. This resulted in the slower speeds.

I always install Spotify from AUR. This version checks for connectivity from the /usr/lib/NetworkManager/conf.d/20-connectivity.conf file as rightly pointed out by butwhatabout_ . Changing that to disabled however broke NetWorkManager for me & I wouldn't want to do that again since I was testing this out in my work laptop.

NetworkManager pings http://www.archlinux.org/check_network_status.txt for connectivity checks. Since Quad9 is slower for me with my new setup, it was always timing out & PiHole was always responding with the cached lists for Arch's connectivity checks. However, Spotify is not content with this & always showed Offline.

I discovered this awesome repo to check DNS performances for your connection https://github.com/cleanbrowsing/dnsperftest. Shoutout to cleanbrowsing for this helpful tool.

I ran their script & as I assumed, Quad9 DNS was timingout on me. The best results that I had was with Cloudflare DNS & then Google.

I then replaced Quad9 with Cloudflare in my PiHole config, redeployed my PiHole k8s deployment & voila! everything works as it should. Spotify works right off the bat in all my Arch devices, in my Android & FireTV Stick.

Now my speedtests show 340Mbps for my 200Mbps connection XD ;p. I'm listening to my fav tunes in Spotify as I write this post infact.

To Summarize:

  1. Use https://github.com/cleanbrowsing/dnsperftest to figure out which is the fastest DNS for you.
  2. Switch your upstream DNS in PiHole/router to the one that fastest for you.
  3. Groove to Spotify !

Sorry for the long post, but I hope this helps other Arch & Spotify users like me :)

2 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.