[Troubleshooting] Linux Spotify

Solved!
Reply

[Troubleshooting] Linux Spotify

Dreadlord
Community Legend

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.

 

If this solved your issue - Mark it as a solution!
Twitter | Website |
What's a Spotify Rock Star, and how do I become one?



12 ACCEPTED SOLUTIONS
Solution!

Dreadlord
Community Legend

Hey @corvusd,

 

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

Link to the package can be found here.

If this solved your issue - Mark it as a solution!
Twitter | Website |
What's a Spotify Rock Star, and how do I become one?



View solution in original post

Solution!

Dreadlord
Community Legend

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

If this solved your issue - Mark it as a solution!
Twitter | Website |
What's a Spotify Rock Star, and how do I become one?



View solution in original post

Solution!

Dreadlord
Community Legend

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!

 

If this solved your issue - Mark it as a solution!
Twitter | Website |
What's a Spotify Rock Star, and how do I become one?



View solution in original post

Solution!

osornios
Rock Star 24
Rock Star 24

@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.

osorniosRock Star 24
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

View solution in original post

Solution!

ramedeiros
Regular

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-...

 

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://github.com/ramedeiros/spotify_libraries/archive/master.zip

 

Or direct from the terminal: 

 

git clone https://github.com/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-Ubu...

View solution in original post

Solution!

jooon
Spotify
Spotify

@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.

 

View solution in original post

Solution!

jooon
Spotify
Spotify

@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.

 

View solution in original post

Solution!

dowcet
Casual Listener

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.

View solution in original post

Solution!

ndrededu
Regular
Solution!

gvl
Regular

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?

View solution in original post

Solution!

jooon
Spotify
Spotify

@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.

 

View solution in original post

Solution!

durin
Roadie

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

 

View solution in original post

151 Replies

dowcet
Casual Listener

I'd been using http://play.spotify.com/ in Firefox on Ubuntu 14.04 just fine for a long while. Suddenly in the last week or so, it has stopped working. I get a message to install Adobe Flash.

In my /var/log/apt/history.log file, I notice that flashplugin-installer was recently upgraded from 11.2.202.632ubuntu0.14.04.1 to 11.2.202.635ubuntu0.14.04.1.

Is that the likely source of the problem, and is there anything I can do?

Dreadlord
Community Legend

Hello @dowcet,

 

Can you check that you have Flash enabled?

Here is how to do so:

  1. Open up firefox and browse
    about:config
  2. Click "I'll be careful" if prompt pops up
  3. Find plugin.state.flash 
    1. If the value is set to 1 let me know
    2. If the value is set to 0, change it to 1

Let me know how it goes : )

 

If this solved your issue - Mark it as a solution!
Twitter | Website |
What's a Spotify Rock Star, and how do I become one?



Solution!

dowcet
Casual Listener

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.

View solution in original post

corvusd
Regular

Hi community and devs,

 

Sorry for the off-topic.


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?

 

Thanks advance,


David Gámiz Jiménez

 

Solution!

jooon
Spotify
Spotify

@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.

 

View solution in original post

0815name
Regular

Is it possible to make a switch for the notifications? Making them persistent or not. Because Gnome has built in mpris 2 support in the Notifications and when im looking in my notify panel i get double informed about the current track. So the best solution for me is to make them not persistent.

Here is a Screenshot about the "problem".

 

Bildschirmfoto vom 2016-10-17 18-34-56.png

jooon
Spotify
Spotify
@0815name wrote:

Is it possible to make a switch for the notifications? Making them persistent or not.


There already is a switch to enable/disable notifications. I always have them disabled, because I feel they are quite pointless, when I see the artist - track title in the top menu bar on any screen whenever I want because of mpris. I run gnome with some mpris extension that enables this.

 

It may be possible to change what you call persistence of notifications. There is something about them being transient or not and a client might also able to remove notifications it has previously sent. Right now, I think we are just sending a default notification. What happens with it depends on the desktop environment. In Unity, it slides in, top-right corner and then goes away itself after a while. There is also no list where it can still be left, like there is in gnome for you. Anyway, it might be possible to fix. I will look into it.

corvusd
Regular

Thanks jooon for the quick and complete response. 😄

Means that no official support, and that never was.

But what if there is support from the community, like yours and that of others.

I hope at least yours, which is what makes it great the free software community, is never finished.

Thank you very much! :D

jalefkowit
Casual Listener

Does anyone else experience crashes when using the Discover Weekly playlist in the Linux desktop client? I've been hitting them fairly frequently lately, which is weird because it's been very stable for me in just about every other scenario. It just segfaults periodically when playing back the Discover playlist. Clearing the app's cache doesn't seem to have any effect.


Here's my info in the suggested support-post template format:

  1. Your device and operating system: Desktop PC running 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: Desktop client segfaults periodically when playing back songs from the Discover Weekly playlist. Occurs both when playing in shuffle and non-shuffle modes. Appears to be related to particular songs -- e.g. sometimes it will play for a while and then crash, while other times it crashes right away if you start playback from a different song. I have not been able to identify a pattern in the songs that cause crashes, though.
  5. Steps to reproduce the issue:
    • Start the Spotify desktop client
    • Load the Discover Weekly playlist
    • Hit "play"
    • Wait for crash
  6. Attach the spotify-dump.txt:  Attached.

jalefkowit
Casual Listener

Update on my issue described above: it appears to be a case of the client crashing when it hits a song in the Discover playlist that I happen to have as a local file. So it's not so much a problem with the playlist as it is with local file playback.

 

I found this thread from last December elsewhere in the forum that claims to have a fix for crashes when playing back local files, but it as it involves installing a bunch of .deb packages from a random website I'm not really comfortable trying it for security reasons. If that's the official solution for local file playback, it'd be better if the instructions showed how to get the necessary packages from packages.ubuntu.com, packages.debian.org or some other official repository.

durin
Roadie

@jalefkowit wrote:

I found this thread from last December elsewhere in the forum that claims to have a fix for crashes when playing back local files, but it as it involves installing a bunch of .deb packages from a random website I'm not really comfortable trying it for security reasons. If that's the official solution for local file playback, it'd be better if the instructions showed how to get the necessary packages from packages.ubuntu.com, packages.debian.org or some other official repository.


Try this to add the official Ubuntu Trusty repository and install the required packages. https://community.spotify.com/t5/Help-Desktop-Linux-Windows-Web/Linux-Local-files-do-not-play-on-Ubu...

 

Other option is to find the required packages from packages.ubuntu.com or packages.debian.org

 

And the last option is to disable the local file playback from the Spotify settings.

jalefkowit
Casual Listener

@durin wrote:

Try this to add the official Ubuntu Trusty repository and install the required packages. https://community.spotify.com/t5/Help-Desktop-Linux-Windows-Web/Linux-Local-files-do-not-play-on-Ubu...

Thanks for the pointer! I figured the packages were probably in the official repos somewhere. I grabbed them from the trusty release via packages.ubuntu.com and now local file playback appears to work.

It'd be better if Spotify didn't require me to go hunting for outdated packages to use that feature, of course, but I will take what I can get. 😄

draconicrose
Regular

Hello everyone. I've been told to post here so, could anyone please take a look at https://community.spotify.com/t5/Help-Desktop-Linux-Windows-Web/Spotify-crashes-on-start-Linux-Mint-...? Thanks.

eiGhee4j
Casual Listener

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?

Solution!

jooon
Spotify
Spotify

@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.

 

View solution in original post

eiGhee4j
Casual Listener


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


This worked, thanks.

roman_blanco
Newbie
  1. Lenovo Thinkpad X240, Fedora 23 64bit / Acer Aspire V5, Fedora 23 64bit
  2. Premium Account
  3. Spotify Version 1.0.29.92.g67727800
  4. Navigation arrows are misaligned
  5. Appears on every page

After the last update, navigation arrows are misaligned, see screenshots:

 

Before:

Screenshot from 2016-05-31 09-01-19.png

 

After:

Screenshot from 2016-05-31 09-25-30.png

 

willypuzzle
Casual Listener

I have spotify on linux ubuntu 16.04. It works properly but sometimes it fail to play some song (generaly after a pause or I navigated through spotify links). Simply the play buttons doesn't work for that sound anymore and I have to restart spotify.

 

I've started spotify by terminal a got these messages:

 

13:04:36.225 I [audio_player_queue_impl.cpp:826 ] Flush driver: 0x00003f3c97252a50
13:04:36.226 D [gaia_manager.cpp:941 ] GAIA: current state ID updated to -143172072
13:04:36.226 I [sliding_window_prefetch_strategy.cpp:212] Prefetch: looks like new context - resetting window size to 1

Solution!

ramedeiros
Regular

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-...

 

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://github.com/ramedeiros/spotify_libraries/archive/master.zip

 

Or direct from the terminal: 

 

git clone https://github.com/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-Ubu...

View solution in original post

maxthoursie
Newbie

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.

jooon
Spotify
Spotify

 

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

SUGGESTED POSTS