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 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.
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:
Sorry for the long post, but I hope this helps other Arch & Spotify users like me :)