Spotify breaks all the time

Hi there,

for quite some time I have the problem that Spotify breaks after some time.

I’m running tumbleweed with gnome. I installed spotify as flatpak, because that’s the only option the software center offers so I recon that’s the recommended way. At first everything is fine, but after some weeks it just doesn’t start any more. Just nothing happens. Even running it from command line using /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=spotify --file-forwarding com.spotify.Client @@u %U @@ doesn’t show anything.

The only way I found to fix it is to reinstall spotify every time this happens.

Any idea why that is?

Cheers

Do you update your flatpaks regularly?

yes, using the gnome software center

Ok, I’ve run into this, apparently there are some cache files that spotify makes upon each and every startup. When spotify refuses to launch, it may be because these cache files are not removed and are blocking the creation of new cache files from Spotify.

To remedy this, check the following directory: ls ~/.var/app/com.spotify.Client/cache/spotify/ and see if it contains anything. If it does, do the following:
rm -rf .var/app/com.spotify.Client/cache/spotify/SingletonCookie .var/app/com.spotify.Client/cache/spotify/SingletonSocket .var/app/com.spotify.Client//cache/spotify/SingletonLock

The above command will remove the Singleton cache files that may be blocking the launch. After removing, logout and login again (can’t hurt) and try launching spotify. If that doesn’t work, see if the Singleton cache files are stored somewhere else (I installed the spotify flatpak globally (installed with sudo password). If you installed the application as a local user (no sudo password), these files could be somewhere else and you could use the find commandline tool to find them.

1 Like

I don’t use Spotify, but maybe “installing” it by using the PWA could help you?

Thanks for the help. For me it worked without logging out and in again

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.