[Troubleshooting] Linux Spotify

Having trouble with Spotify on your Desktop app? Here’s what to try first.

  • Search the Community

Someone might have asked your question on the Community before.
So type your issue into the search box and have a look.

  • Basic troubleshooting

Go through these steps one at a time. They can help you solve most issues on your own.


1. Clear Spotify cache
killall spotify
rm -rf $HOME/.cache/spotify/Storage

2 Check this thread for troubleshooting connection issues.

3 Ask a friend or family member to sign into Spotify on your Desktop. See if the issue is persisting on their account too. If yes, the issue is the device and can likely be solved with more troubleshooting.
4. Change settings within the app: Sync quality, Stream Quality, Gapless Playback, Crossfade. See if a different combination of these settings makes a difference.


  • Advanced troubleshooting 

1. Is spotify starting normally?

spotify

1. Can you play a sound?

aplay /usr/share/sounds/alsa/Front_Center.wav

2. Is the system recognizing your sound card?

aplay -l

3. Is Spotify running on prefered sound card? Change between sound cards in gnome/unity control center.

unity-control-center sound
gnome-control-center sound

 

4. Nothing works so far? Report your issue!

spotify >$HOME/spotify-dump.txt 2>&1

   or

 

strace spotify > $HOME/spotify-dump 2>&1
  • Report your issue

We’ll need as much information as you can provide. So filling in this template is helpful:


=== START OF TEMPLATE ===

  1. Your device and operating system:
  2. Type of Spotify account you have (Free/ Premium):
  3. The app version of Spotify you’re using:
  4. Brief description of the issue:
  5. Steps to reproduce the issue:

 

  • First I did this
  • Then I did that
  • I also did this

6. Attach the spotify-dump.txt ( $HOME/spotify-dump.txt ) from Advanced troubleshooting 4.

=== END OF TEMPLATE ===

 

Known issues : 

 

Error while loading shared libraries: libgcrypt.so.11 - fix debian / fix ubuntu.

Spotify on Linux doesn't play local mp3 files - fix.

 

Tips :

Add Spotify's testing repository:

echo deb http://repository.spotify.com testing non-free | sudo tee /etc/apt/sources.list.d/spotify.list

Install Spotify 0.9.17

sudo apt-get install spotify-client-0.9.17

  

Some information and template is taken from here.

Linux is not officialy supported by Spotify.

 

Child Item
Child Item
Child Item

Accepted answers

Hey @corvusd,

 

Can you upgrade your client to 1.19 and see if the issue persists?

Link to the package can be found here.

Hey @corvusd,

 

This package is part of the testing repository, so some things may still not work and come up with later patches.

Here is how to add the testing repo:

 

echo deb http://repository.spotify.com testing non-free | sudo tee /etc/apt/sources.list.d/spotify.list

Hello everyone,

 

Just a quick heads up that you can still install the old version ( 0.9.17 ) of Spotify via the repository if the 1.24 client is not working well for you.

 

 

sudo apt-get install spotify-client-0.9.17

Hope this helps!

 

@vazerick I'd recommend downgrading to a previous version, until they iron out some stuff in the current version. I'm using 0.9.11.27 and feels much better with Cinnamon.

Hi, I have installed ubuntu-restricted-extras, ffmpeg, libavcodec, livavutil, libavformat, zenity but doesn't work.

 

😕

 

  1. Your device and operating system: Intel® Core™ i3 CPU M 330 @ 2.13GHz × 4, 4GB, 64bit, Ubuntu 16.04 LTS
  2. Type of Spotify account you have (Free/ Premium): Free
  3. The app version of Spotify you’re using: 1.0.28.89.gf959d4ce
  4. Brief description of the issue: Local files do not play on Ubuntu 16.04

Spotify finds the songs, but don't play and close the app. 

 

 

=======================================================

Solved after read this post: https://community.spotify.com/t5/Help-Desktop-Linux-Windows-Web/Can-t-play-local-files-with-current-version-of-ffmpeg/m-p/106615/highlight/true#M7964

 

So, I decided publish the solution.

 

1º) Install some packs: ubuntu-restricted-extras, ffmpeg, libavcodec, livavutil, libavformat, zenity.

 

sudo apt install ubuntu-restricted-extras ffmpeg libavcodec-extra libavcodec-extra57 libavutil55 libavformat57 zenity -y

New version to packs: libavformat57 libavcodec-extra57 libavcodec-extra libavutil55 

 

 

2º) Download some archives: (I put all in the github repository)

 

--> Download the package: https://****/ramedeiros/spotify_libraries/archive/master.zip

 

Or direct from the terminal: 

 

git clone https://****/ramedeiros/spotify_libraries.git

3º) Put all the files in to /usr/lib/x86_64-linux-gnu/ with root privileges.

 

cd spotify_libraries
sudo cp lib* /usr/lib/x86_64-linux-gnu/

4º) Execute: ldconfig

 

sudo ldconfig

5º) If show any problem with link, make new links.

 

e.g.: "/sbin/ldconfig.real: /usr/lib/x86_64-linux-gnu/libavutil.so.52 it's not a symbolic link"

So, execute command:

 

sudo ln -frs /usr/lib/x86_64-linux-gnu/libavutil.so.52.6.100 /usr/lib/x86_64-linux-gnu/libavutil.so.52
sudo ln -frs /usr/lib/x86_64-linux-gnu/libavformat.so.54.36.100 /usr/lib/x86_64-linux-gnu/libavformat.so.54
sudo ln -frs /usr/lib/x86_64-linux-gnu/libavcodec.so.54.71.100 /usr/lib/x86_64-linux-gnu/libavcodec.so.54

 

And so on...

 

 Original link: https://community.spotify.com/t5/Help-Desktop-Linux-Windows-Web/Linux-Local-files-do-not-play-on-Ubuntu-16-04-SOLVED/td-p/1343831


@eiGhee4j wrote:

I just updated to 1.0.32.94.g8a839395 and scrolling has become extremely sluggish and I also get screen tearing while scrolling. I believe this is related to smooth scrolling which was shipped in chromium recently but which can be disabled there. Can you please provide an option to disable smooth scrolling in Spotify?


Very likely related.

 

Some of the chromium options are available in Spotify as well, but since there is no chrome://flags/ page you have to set it from the command line.

 

spotify --disable-smooth-scrolling

 

It is unlikely that this will become a toggle in the settings menu.

 


@corvusd wrote:

This important linux website is inform that spotify support is end.
http://www.omgubuntu.co.uk/2016/08/spotify-web-player-desktop-integration-ubuntu

 

This forum is alive this months back... I can't understand what happens. Is true that situation of the not support? 


Spotify has never supported the Linux client, so support for it has not ended, but it has also never started. For a long time, the Linux advice was "Run the Windows client with Wine". A few years ago, the native Linux client was released. It shared a lot of code with the Windows/Mac client. Last year, a new version of the native Linux client was released. It shares almost all code with the Windows/Mac client.

 

I think that the word support means different things for different people. What I mean with Linux client not supported is:

 

  1. The customer service team at Spotify does not answer Linux desktop related questions. The customer service team is the one building the FAQ at https://support.spotify.com and they are answering questions at https://twitter.com/spotifycares and https://www.facebook.com/SpotifyCares/ and here on the community forum.
  2. A new feature that breaks the Linux client, will not hold back Windows/Mac release.
  3. There is not a team of developers focusing only on the Linux related features of client.

@we do however have a few dedicated helpers here in the forum, thanks @Dreadlord and all others answering Linux questions! Even asking questions help, because it will usually bring people googling for the same problem here and maybe help them, seeing others with the same problem.

 

If code changes that affect the Linux specific parts, care is taken, not to break it. However, if the Linux client ends up being very buggy, and can't be released at the same time as the Windows/Mac version, there is usually enough attention inside the company to help bring it back on its feet again.

 

I have been working very slowly triaging and fixing bugs and implementing new linux specific features on my hackdays. A hackday is basically one day every other week when you can dig in and work on other things you normally don't work with, to learn new things, help others, and in my case, make that tiny change you always wanted, that never get prioritized enough. I find it quite fun.

 

Spotiweb looks cool! Nice integration with the web player.

 

The value is set for 2 actually... Apparently that means "always active".

I installed SpotiWeb, which worked fine right away, and now the Web Player is working in Firefox again as well. Mysterious, but problem solved I guess.

I'm powering off my Lubuntu machine with a physical power button (shutdown -P) and Spotify doesn't save the last volume level setting. iirc the shutdown sequence sends a signal (SIGTERM ?) to all running processes telling them to die and it seems that Spotify doesn't save the volume when it exits afer catching that signal. Anyone knows if there is a signal I can send during shutdown to make Spotify save the volume level before it exits? This machine doesn't have a monitor attached to it, so can't close the app interactively. Perhaps I can add a shutdown hook to close it via the windowing system basically simulating a mouse click. Any other ideas?


@mfonville wrote:

The latest version of spotify for Debian/Ubuntu is missing its dependency on libatomic1. If that dependency is not installed, starting Spotify will fail with:

 

spotify: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory

Please fix by adding the dependency to the package


Thanks for the report. I quickly tried to push through a new build. It should be fixed in 1.0.64.407.

 

The repository information in your /etc/apt/sources.list.d/spotidy.list file isn't correct and the other commands fail because you haven't actually installed the spotify client yet.

 

Check that the /etc/apt/sources.list.d/spotify.list contais the following line

deb http://repository.spotify.com stable non-free

and then run

sudo apt-get update

to update the repository information and then

sudo apt-get install spotify-client

to actually install Spotify.

The complete installation procedure is:

# 1. Add the Spotify repository signing key to be able to verify downloaded packages
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys BBEBDCB318AD50EC6865090613B00F1FD2C19886

# 2. Add the Spotify repository
echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list

# 3. Update list of available packages
sudo apt-get update

# 4. Install Spotify
sudo apt-get install spotify-client

 

All comments

  1. Your device and operating system: OS: Zorin OS 12.2 x86_64
  2. Type of Spotify account you have (Free/ Premium): Premium
  3. The app version of Spotify you’re using: Spotify version 1.0.64.407.g9bd02c2d, Copyright (c) 2017, Spotify Ltd
  4. Brief description of the issue: Startup and Window Behavior is blank as shown in the screenshot above. Also unable to minimize to tray.
  5. Steps to reproduce the issue: Start the Spotify client and go into advanced settings to adjust the minimize to tray behavior

I'm having a similar error on Lubuntu 15.10 where I can't load Spotify once it's installed. The program worked no problem for months then one day that was it. Now nothing is working and it's the only program I'm having a problem loading. I've cleaned my machine,etc [I think it's the kernel myself] and I'll need to upgrade sooner or later. 

 

Here is a video of my issue:
https://youtu.be/aHl0GQlY6S4

Starting with spotify 1.0.64 the "--force-device-scale-factor=1.5" for
hidpi displays has no effect anymore. Is there any workaround?

Hi,

I'm hitting an issue that occurs when running spotify in a window manager such as i3 or openbox but not in a full desktop environment, e.g. GNOME 3.26 or KDE 5.  Parts of the UI become unresponsive when a song starts playing.

 

  1. Your device and operating system: OS: Fedora 27 x86_64 - this has also occurred in Fedora 26 x86_64.
  2. Type of Spotify account you have (Free/ Premium): Premium
  3. The app version of Spotify you’re using: Spotify version 1.0.64.407.g9bd02c2d, Copyright (c) 2017, Spotify Ltd
  4. Brief description of the issue: Parts of the UI such as the media buttons, page links and progress bar become unresponsive for approx 25 seconds when a song is started or resumed playback.
    This occurs only when running under a WM but not when running under a full desktop environment.
  5. Steps to reproduce the issue: Start the Spotify client under either the i3 or openbox environments and start playing a song, then try to pause the song once playback has started or select another song.

I've included strace logs of spotify when running under i3 4.14 and when running under GNOME 3.26.

with the new update from a few weeks ago i'm getting a massive memory leak while trying to use the Spotify client on Linux Mint 18 [64 bit]

its taking up over 5 gigs of memory and cripling my system

 

any ideas how i can stop this?

I have problem when i install spotify in debian 9. I installed  inlibavcodec57, libssl1.0.2 .   i think if you can edit/build code please remove version in dependency list. 

 

detail

 

apt-get install spotify-client

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
spotify-client : Depends: libssl1.0.0 but it is not installable
Recommends: libavcodec54 but it is not installable or
libavcodec-extra-54 but it is not installable
Recommends: libavformat54 but it is not installable
Recommends: zenity but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Hi, 

 

When I go to add the key I get the following error: gpg: keyserver receive failed: No keyserver available. 

 

My distro is  Xubuntu 17.10

 

Thanks for any assistance. 

Hey @Smashme

 

Check this thread out. They have updated the signing key, maybe you have an old one.

 

Hope it helps. 🙂

This answer still works in Ubuntu 17.04

You do want to copy the shared libraries with the `-d` flag to `cp` to preserve the links, so you don't have to recreate them.

 

Spotify 1.0.69 in the testing repository now (soon stable) can dynamically load different versions of libcrypto.so (from the libssl* packages).

when using Lubuntu 17.10 Spotify doesn't let me open up the 'settings' in the drop-down menu

 

any ideas?

It's a bug but the developers are already aware.

all the other solutions didn't work for me.
spotify was unbearably slow

 

by chance I found a solution that works for me

 

LIBGL_ALWAYS_SOFTWARE=1 spotify

 

it also works with snap

LIBGL_ALWAYS_SOFTWARE=1 snap run spotify

Your device and operating system: XPS 13 9350 with Debian 9

Type of Spotify account you have (Free/ Premium): Premium

The app version of Spotify you’re using: 1.0.69 // 1.0.70 (both I tried).

Brief description of the issue: I recently installed Debian 9 on my laptop coming from a Fedora that gave me a lot of problems recently, including one where spotify did work sometimes but when not, said that there was no internet conection and gave me a error code: 4 (Internet worked well).

 

I installed debian 9 and the first time gave me the same error but then started working ok. Until today that there was no way to get it working again. I tried to delete the spotify cache but I ended deleting by mistake all the content from the file /.cache/spotify/ so after a restart, spotify was just trying to load but didn't load anything, the wheel of loading appeared for ever. Tried to reinstall with purge spotify-client and install spotify-client. This time I could introduce my username and password but I got loading screen again. I tried to install deb files from http://repository.spotify.com/pool/non-free/s/spotify-client/ but with both I had same results. There's no way to get it working. I tried restarting the computer a few times between installations.

Steps to reproduce the issue:

Install Spotify.

Delete entire content of folder .cache/spotify

Execute Spotify

Infinite loading screen

6. Attach the spotify-dump.txt ( $HOME/spotify-dump.txt ) from Advanced troubleshooting 4.

 

P.D: I went home and it seems it started working again. In college it appeared again the same error. (Error code 4). In my home works fine. Doesn't know what's happenning.

 

Is it normal the deb repo is behind the snap package? Is the dep repo no longer supported? The snap is at 1.0.70 but the deb repo is at 1.0.six.nine. Apparently I can't say that number...

Take a look HERE.

So there are 2 packages. How does one install the newer 1.0.70? sudo apt-get install spotify-client defaults to 1.0.six.nine.

1.0.**bleep**.336 is in stable repository and 1.0.70.399 is in testing repository.

So first you have to add the testing repository.

 

Add the following line to file /etc/apt/sources.list.d/spotify.list

deb http://repository.spotify.com testing non-free

Then update apt with 

sudo apt-get update

Then you can install the testing version with

sudo apt-get install -t testing spotify-client

 

Linux mint - no taskbar, no window options, cannot close, minimize, maximize. 

Implement minimize or close on system tray in Linux, why not implemented this?

Hi,

 

I have two linux laptop. One is my media center and the other is the one I used around the house. In addition I have an android phone. Both have a spotify app installed.

 

If I start playing on one laptop, I see it on the android phone but I don't see it on the other laptop.

 

Then if I start playing on the second laptop, the two of us are playing differents songs. In addition the android phone lost the first laptop and see the second one.

 

Finally if I stop playing on the second laptop, after some times, the android phone sees the first one which has disappeared previously.

 

Same happens when I use the web API to get the list of players. I also test it using the web player and the same happens

 

The two laptops have differents IPs. There is no firewall running inside the network and they are on the same network.

 

Both laptops have the same version of the spotify app (the last stable one :1.0.72.117.g6bd7cc73 ) and the issue was already there with the previous one.

 

Any idea ?

  1. Your device and operating system: Dell Inspiron 7559 - OS: Ubuntu 16.04.4 LTS
  2. Type of Spotify account you have (Free/ Premium): Premium
  3. The app version of Spotify you’re using: 1.0.72.117.g6bd7cc73-35
  4. Brief description of the issue: Spotify doesn't launhc.
  5. Steps to reproduce the issue:Run command 'spotify' in terminal.Produces this message:Gtk-Message: Failed to load module "overlay-scrollbar"
    Gtk-Message: Failed to load module "gail"
    Gtk-Message: Failed to load module "atk-bridge"

    (spotify:3396): Gtk-WARNING **: cannot open display: :0

I have tried installing a package called libgcrypt11 but that had no effect. Thanks!

 

Ok, it launched now. I haven't changed a thing.

Filtering a playlist doesn't work for me.  Does it work for you folks?

 

edit: What about the compose key?  Does it work for you folks?

  1. Your device and operating system: Ubuntu 18.04 - Gnome 3.28.1
  2. Type of Spotify account you have (Free/ Premium): Free
  3. The app version of Spotify you’re using: Snap latest version
  4. Brief description of the issue: Spotify broke when I upgraded to the 396.24.02 Nvidia driver.
  5. Steps to reproduce the issue: Install Nvidia 396.24.02 from the graphics-drivers ppa.

 

    sudo add-apt-repository ppa:graphics-drivers/ppa

    sudo apt update

    sudo apt install nvidia-driver-396

 

 https://pastebin.com/t34FscC4

confirmed here. Spotify window opens, but never fills with content, just hangs.

 

#  echo $XDG_SESSION_DESKTOP
KDE

 

# cat /etc/lsb-release |grep DISTRIB_DESCRIPTION
DISTRIB_DESCRIPTION="Ubuntu 18.04 LTS

 

# snap list spotify  
Name     Version                 Rev  Tracking  Developer  Notes
spotify  1.0.80.474.gef6b503e-7  16   stable    spotify    -

# glxinfo |grep "OpenGL core profile version string"
OpenGL core profile version string: 4.6.0 NVIDIA 396.24.02

 

#  nvidia-smi -L
GPU 0: Quadro K620 (UUID: GPU-37f1ca95-4b19-bd4a-3bae-ffc85d9001b8)

 

EDIT: Workaround is to start without GPU Acceleration:

# snap run spotify --disable-gpu

I'm on a Samsung Chromebook plus, which now has support for android apps. Is there any way I can get the spotify desktop version on it? It has an ARM processor.

 


@fyrkrans wrote:

Filtering a playlist doesn't work for me.  Does it work for you folks?

 

edit: What about the compose key?  Does it work for you folks?



No, filtering is not possible. This issue is related to the fact that mouse selection is badly broken (try for istance to click on Settings in drop-down menu under your account...). This is the most relevant bug imho.

It seems to be badly broken, yes.  (It works for me, if I click like a zillion times on the search bar and type on the keyboard at the same time.)

Child Item
Child Item